Comparing between bootstrap-flex, bootstrap-grid, and bootstrap-reboot: similarities and distinctions

The latest iteration of Bootstrap (current version as of the time this question was posed is

<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0b6964647f787f796a7a45f757b757b766a776f762b606">[email protected]</a>
) introduces 3 new files in addition to the standard one:

  1. bootstrap-flex.css
  2. bootstrap-grid.css
  3. bootstrap-reboot.css
  4. bootstrap.css

Do the first 3 files serve as extensions to bootstrap.css (#4)?

It is conceivable that bootstrap-flex utilizes the functionalities of CSS Flexbox, bootstrap-grid may be based on an older approach, but what purpose does bootstrap-reboot serve?

Which of these files should be included (particularly when using ng-bootstrap with Angular 2)?

Answer №1

Check out the repository:

custom-bootstrap.scss

Customized Bootstrap with Flexbox

Includes all imports from the main Bootstrap project, but with the flexbox variable enabled.

grid-only-bootstrap.scss

Bootstrap Grid components only

Contains necessary variables and mixins for the standard grid system, without flexbox, and includes predefined classes like .col-4-sm.

reboot-bootstrap.scss

Bootstrap Reboot styles only

Consists of Normalize and a customized Reboot reset.

main-bootstrap.scss

The core Bootstrap library

Yes, the first 3 files are optional when using Bootstrap.

The minimal requirement is main-bootstrap.css, as it already includes reboot-bootstrap.

Switch to grid-only-bootstrap for solely the grid system.

Opt for custom-bootstrap to utilize Bootstrap with Flexbox features. It's essentially main-bootstrap.css with Flexbox capabilities.

Answer №2

According to @Nhan, the -reboot, -flex, and -grid files are extensions of the primary bootstrap.css. If you choose to use one of them, that particular file is all you need to include.

In relation to the ng-bootstrap aspect of your inquiry, I am also utilizing it and have opted to only include the bootstrap.min file. This decision was made because I do not anticipate utilizing flexbox and require more than just the grid styles.

Hopefully, this shed some light on what is specifically essential within the context of your query.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Removing page scrolling in Bootstrap 5: A step-by-step guide

I would like to ensure that only the card-body block is scrollable. Currently, the page does a bit of scrolling when the card-body block overflows (resulting in 2 scroll bars). The lorem text was added as an example of an overflow. The desired outcome is d ...

What is causing the unexpected expansion of the initial column in this table?

Can you figure out why the first column in this sample table is so much wider than the others? <html> <head> <style type="text/css"> table,th, td,{ width:100%; border: 4px solid; border-collapse:collapse; ...

IE11 not running Angular code inline as expected

Currently in the process of developing an AngularJS application, I came across a strange issue that I have never encountered before. It may be a simple fix, but I am unsure of the exact terminology to search for the right solution, so I apologize in advanc ...

Learning to utilize collection data from Firestore in Ionic Angular involves a few key steps

Angular CLI: 13.0.4 ionic --version => 6.20.2 Hey there! I'm fairly new to working with Ionic, Angular, and Firebase. I've set up my Firebase Firestore database, created a collection, and populated it with data. However, I'm struggling t ...

Unique: "Unique styling for Ionic on emulator versus web localhost"

My perception of CSS codes in browsers versus emulators differs. I believe that currently, CSS codes only work properly in browsers. For instance, I attempted to change -ion-background-color for .md body and iosbody. However, the emulator still displays t ...

Unable to display image in Angular 2

Hey there, I'm facing a simple problem. I'm having trouble displaying images in my Angular 2 app. This is how I am trying to add an image: <img alt="logo" [src]="'./images/logo.png'"> Do I need to install any specific package ...

Safari does not support SVG fill pattern, unlike Firefox and Chrome

Having an issue with Safari 6.1.5 not displaying a pattern in an SVG rectangle. After simplifying the code, here is the test case: <html> <head> <style> .patterned { fill: url("#myid") none; stroke:blue} ...

Troubleshooting Problems with Adjusting Left Margin Using JQuery

function adjust_width() { $('#cont').toggle(function(){ $('#cont').animate({marginLeft:'0%'}); },function(){ $('#cont').animate({marginLeft:'18.4%'}); }); } The code above is in ...

Tips for implementing resizable Material-UI Dialogs

I'm working on a project that involves creating a dialog box that can be resized and dragged. While I found steps in the Material-UI Dialog documentation on how to make it draggable, I'm still looking for information on how to make it resizable. ...

Tips for accessing jQuery UI tab elements and adjusting visibility for specific panels

How can I retrieve the panel numbers of jQuery UI tabs and adjust their visibility using CSS? I am looking to identify the panel numbers of each tab and control the visibility of certain tabs. <div id="tabs"> <ul> <li><a href="#"> ...

Guide on retrieving an ArrayList() from intricate function in Angular

Simplicity is the key to my question. Let's take a look at this Angular method: getAllOrdersHeaders(){ this.getAllOrdersIds().subscribe(idList=>{ idList.forEach(id=>{ this.ordersCollection.doc(id).collection('metadata&apo ...

Displaying nested data on an Angular 8 table

Hello everyone, I am currently dealing with an HTTP response from a MongoDB and extracting values like: loadOrders(){ this.orderService.getOrders() .subscribe((data:any[])=>{ this.orders=data; } ); } In the orders-li ...

The eventsource property binding in Ionic 2 calendar does not correctly refresh the view

As a newcomer to the world of Ionic, Angular, and TypeScript, I am currently working on developing a calendar that allows users to set appointments (events) and make edits or deletions to them. To achieve this functionality, I have implemented a modal for ...

Determining the visible dimensions of an iframe

Is there a way to determine the visual size inside an iframe using JavaScript or jQuery? In this scenario, only a portion of the iframe is displayed. The iframe itself has dimensions of 300x300, but it is being limited by a div to 300x100. <div style= ...

A unique technique for creating a stunning visual effect with images using

Can anyone help me with this issue: Check out this animated GIF The images in my project are overlapping when scrolling! How can I achieve a similar effect for my images? Is there a tutorial or plugin available for this? Here is the current code sn ...

Troubleshooting issue with Angular-CLI and Cordova plugin integration

While attempting to build an Angular 4 app using ng-build, I encountered an error when trying to access device.uuid: /navigation.component.ts (14,5): Cannot find name 'device'. Every plugin referenced in TS files is triggering this error. I a ...

The term 'Signal' in Angular is typically used as a type, but in this context, it is being treated as a value.ts(2693)

Using angular version 17.2.0, I am facing an issue in my service import { Injectable } from '@angular/core'; import { Signal, ReadOnlySignal } from '@angular/core'; @Injectable({ providedIn: 'root' // Service available thro ...

Designate material for a particular table header element

Is there a method to pass content within a td-element to a specific th-element? I am working with a dynamic table and need to associate the content correctly under each table header. I have implemented pagination for the rows in the table. Currently, all ...

How to Customize Bootstrap Colors Globally in Angular 4 Using Code

I am interested in developing a dynamic coloring system using Angular. I have set up a service with four predefined strings: success, info, warning, and danger, each assigned default color codes. My goal is to inject this service at the root of my applicat ...

Validator for ngModel in Angular 2 conveniently located within the component

Trying to simplify the process of implementing a custom validator logic for ngModel, I have a pre-defined model (interface) that already stores all necessary data. Why go through the trouble of creating an identical schema with FormControls when the requir ...