mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
Remove redundant media queries (#21220)
This commit is contained in:
parent
b1e8d60348
commit
94be2d2254
@ -8,15 +8,13 @@
|
|||||||
$min: breakpoint-min($breakpoint, $grid-breakpoints);
|
$min: breakpoint-min($breakpoint, $grid-breakpoints);
|
||||||
|
|
||||||
@if $min {
|
@if $min {
|
||||||
@media (min-width: $min) {
|
.d-#{$breakpoint}-none { display: none !important; }
|
||||||
.d-#{$breakpoint}-none { display: none !important; }
|
.d-#{$breakpoint}-inline { display: inline !important; }
|
||||||
.d-#{$breakpoint}-inline { display: inline !important; }
|
.d-#{$breakpoint}-inline-block { display: inline-block !important; }
|
||||||
.d-#{$breakpoint}-inline-block { display: inline-block !important; }
|
.d-#{$breakpoint}-block { display: block !important; }
|
||||||
.d-#{$breakpoint}-block { display: block !important; }
|
.d-#{$breakpoint}-table { display: table !important; }
|
||||||
.d-#{$breakpoint}-table { display: table !important; }
|
.d-#{$breakpoint}-table-cell { display: table-cell !important; }
|
||||||
.d-#{$breakpoint}-table-cell { display: table-cell !important; }
|
.d-#{$breakpoint}-flex { display: flex !important; }
|
||||||
.d-#{$breakpoint}-flex { display: flex !important; }
|
|
||||||
}
|
|
||||||
} @else {
|
} @else {
|
||||||
.d-none { display: none !important; }
|
.d-none { display: none !important; }
|
||||||
.d-inline { display: inline !important; }
|
.d-inline { display: inline !important; }
|
||||||
|
@ -4,11 +4,9 @@
|
|||||||
|
|
||||||
@if $min {
|
@if $min {
|
||||||
// everything else
|
// everything else
|
||||||
@media (min-width: $min) {
|
.float-#{$breakpoint}-left { @include float-left; }
|
||||||
.float-#{$breakpoint}-left { @include float-left; }
|
.float-#{$breakpoint}-right { @include float-right; }
|
||||||
.float-#{$breakpoint}-right { @include float-right; }
|
.float-#{$breakpoint}-none { @include float-none; }
|
||||||
.float-#{$breakpoint}-none { @include float-none; }
|
|
||||||
}
|
|
||||||
} @else {
|
} @else {
|
||||||
// xs
|
// xs
|
||||||
.float-left { @include float-left; }
|
.float-left { @include float-left; }
|
||||||
|
@ -21,20 +21,18 @@
|
|||||||
|
|
||||||
@if $min {
|
@if $min {
|
||||||
// everything else
|
// everything else
|
||||||
@media (min-width: $min) {
|
.#{$abbrev}-#{$breakpoint}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides
|
||||||
.#{$abbrev}-#{$breakpoint}-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides
|
.#{$abbrev}t-#{$breakpoint}-#{$size} { #{$prop}-top: $length-y !important; }
|
||||||
.#{$abbrev}t-#{$breakpoint}-#{$size} { #{$prop}-top: $length-y !important; }
|
.#{$abbrev}r-#{$breakpoint}-#{$size} { #{$prop}-right: $length-x !important; }
|
||||||
.#{$abbrev}r-#{$breakpoint}-#{$size} { #{$prop}-right: $length-x !important; }
|
.#{$abbrev}b-#{$breakpoint}-#{$size} { #{$prop}-bottom: $length-y !important; }
|
||||||
.#{$abbrev}b-#{$breakpoint}-#{$size} { #{$prop}-bottom: $length-y !important; }
|
.#{$abbrev}l-#{$breakpoint}-#{$size} { #{$prop}-left: $length-x !important; }
|
||||||
.#{$abbrev}l-#{$breakpoint}-#{$size} { #{$prop}-left: $length-x !important; }
|
.#{$abbrev}x-#{$breakpoint}-#{$size} {
|
||||||
.#{$abbrev}x-#{$breakpoint}-#{$size} {
|
#{$prop}-right: $length-x !important;
|
||||||
#{$prop}-right: $length-x !important;
|
#{$prop}-left: $length-x !important;
|
||||||
#{$prop}-left: $length-x !important;
|
}
|
||||||
}
|
.#{$abbrev}y-#{$breakpoint}-#{$size} {
|
||||||
.#{$abbrev}y-#{$breakpoint}-#{$size} {
|
#{$prop}-top: $length-y !important;
|
||||||
#{$prop}-top: $length-y !important;
|
#{$prop}-bottom: $length-y !important;
|
||||||
#{$prop}-bottom: $length-y !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} @else {
|
} @else {
|
||||||
// xs
|
// xs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user