mirror of https://github.com/twbs/bootstrap.git
fix(review)
This commit is contained in:
parent
faab259d50
commit
129115f7e1
|
@ -1,30 +1,5 @@
|
||||||
@if $enable-debugger-classes {
|
@if $enable-debugger-classes {
|
||||||
.#{$prefix}grid-debug {
|
%grid-debug {
|
||||||
&::before {
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
z-index: 2000;
|
|
||||||
padding: $spacer * .5 $spacer;
|
|
||||||
font-family: $font-family-base;
|
|
||||||
color: $black;
|
|
||||||
background-color: $white;
|
|
||||||
border-radius: 0 0 4px; // stylelint-disable-line property-disallowed-list
|
|
||||||
@include font-size($h1-font-size);
|
|
||||||
}
|
|
||||||
|
|
||||||
@each $breakpoint, $value in $grid-breakpoints {
|
|
||||||
@include media-breakpoint-up($breakpoint) {
|
|
||||||
&::before {
|
|
||||||
content: "#{$breakpoint}";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[class^="container"],
|
|
||||||
&[class^="container"],
|
|
||||||
.row,
|
|
||||||
&.row {
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
|
@ -40,5 +15,38 @@
|
||||||
opacity: .3;
|
opacity: .3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.#{$prefix}debug-grids {
|
||||||
|
&::before {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 2000;
|
||||||
|
padding: .5em 1em;
|
||||||
|
font-family: $font-family-base;
|
||||||
|
color: $black;
|
||||||
|
background-color: $white;
|
||||||
|
border-radius: 0 0 4px; // stylelint-disable-line property-disallowed-list
|
||||||
|
@include font-size(var(--#{$prefix}debug-label-font-size, $h1-font-size));
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $breakpoint, $value in $grid-breakpoints {
|
||||||
|
@include media-breakpoint-up($breakpoint) {
|
||||||
|
&::before {
|
||||||
|
content: "#{$breakpoint}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[class^="container"],
|
||||||
|
&[class^="container"],
|
||||||
|
.row,
|
||||||
|
&.row {
|
||||||
|
@extend %grid-debug;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.#{$prefix}debug-grid-cols {
|
||||||
|
@extend %grid-debug;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue