css • Bootstrap 5 - martindubenet/wed-dev-design GitHub Wiki
[ Bootstrap v.5 ][ Bootstrap v.4.4 ][ Grid & Breakpoints ]
Bootstrap v.5
Start a new Bootstrap project from scratch: https://github.com/twbs/bootstrap-npm-starter#usage
- Documentation : https://getbootstrap.com/docs/5.1/
- File structure : https://getbootstrap.com/docs/5.1/customize/sass/#file-structure
- Grid breakpoints : https://getbootstrap.com/docs/5.1/layout/breakpoints
- Grid breakpoints medias queries : https://getbootstrap.com/docs/5.1/layout/breakpoints/#media-queries
Whats new and worth mentioning
One more default breakpoints
Available breakpoints values now includes a xxl
sets to 1400px by default for those who loads the compiled CSS from the CDN.
CSS variables
https://getbootstrap.com/docs/5.1/customize/css-variables/
Starting from v5 all Bootstrap custom properties are prefixed with
bs-
to avoid conflicts with third party CSS.
var(--bs-primary)
,var(--bs-secondary)
,var(--bs-danger)
,var(--bs-info)
,var(--bs-success)
,var(--bs-warning)
,var(--bs-white)
,var(--bs-light)
,var(--bs-gray)
,var(--bs-gray-dark)
,var(--bs-dark)
,var(--bs-blue)
,var(--bs-indigo)
,var(--bs-purple)
,var(--bs-pink)
,var(--bs-red)
,var(--bs-orange)
,var(--bs-yellow)
,var(--bs-green)
,var(--bs-teal)
,var(--bs-cyan)
.
Utility classes
- Background
- Borders
- Colors
- Display
- Flex
d-flex
,d-md-flex
,d-inline-flex
.flex-row
,flex-row-reverse
,flex-column
,flex-md-column
.justify-content-center
,justify-content-md-start
.align-content-around
,align-content-stretch
.align-items-center
,align-items-stretch
.align-self-stretch
.flex-fill
.flex-grow-0
,flex-md-shrink-1
.flex-nowrap
,flex-wrap-reverse
.order-first
,order-md-last
,order-xl-0
.
- Float
- Interactions
- Opacity
- Overflow
- Position
- Shadows
- Sizing
- Spacing
- Text
- Vertical-align
- Visibility