mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-10 22:24:19 +01:00
b226766b62
* Remove comment that duplicated some code * Use transition mixin whenever possible * Create a new function to reduce duplication * Use the new `breakpoint-infix` method
19 lines
626 B
SCSS
19 lines
626 B
SCSS
//
|
|
// Display utilities
|
|
//
|
|
|
|
|
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
@include media-breakpoint-up($breakpoint) {
|
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
|
|
.d#{$infix}-none { display: none !important; }
|
|
.d#{$infix}-inline { display: inline !important; }
|
|
.d#{$infix}-inline-block { display: inline-block !important; }
|
|
.d#{$infix}-block { display: block !important; }
|
|
.d#{$infix}-table { display: table !important; }
|
|
.d#{$infix}-table-cell { display: table-cell !important; }
|
|
.d#{$infix}-flex { display: flex !important; }
|
|
}
|
|
}
|