mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-17 14:54:30 +01:00
Minor Sass cleanup and consistency changes. (#23959)
This commit is contained in:
parent
0705ee8070
commit
5cec8e0de6
@ -147,8 +147,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include media-breakpoint-up($next) {
|
@include media-breakpoint-up($next) {
|
||||||
flex-direction: row;
|
flex-flow: row nowrap;
|
||||||
flex-wrap: nowrap;
|
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
|
||||||
.navbar-nav {
|
.navbar-nav {
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
@for $i from 0 through ($columns - 1) {
|
@for $i from 0 through ($columns - 1) {
|
||||||
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
|
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
|
||||||
.offset#{$infix}-#{$i} {
|
.offset#{$infix}-#{$i} {
|
||||||
@include make-col-offset($i, $columns)
|
@include make-col-offset($i, $columns);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
// }
|
// }
|
||||||
// @else {
|
// @else {
|
||||||
// scss-lint:disable Indentation
|
// scss-lint:disable Indentation
|
||||||
&:hover { @content }
|
&:hover { @content; }
|
||||||
// scss-lint:enable Indentation
|
// scss-lint:enable Indentation
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
@ -17,12 +17,14 @@
|
|||||||
|
|
||||||
@mixin hover-focus {
|
@mixin hover-focus {
|
||||||
@if $enable-hover-media-query {
|
@if $enable-hover-media-query {
|
||||||
&:focus { @content }
|
&:focus {
|
||||||
@include hover { @content }
|
@content;
|
||||||
|
}
|
||||||
|
@include hover { @content; }
|
||||||
} @else {
|
} @else {
|
||||||
&:focus,
|
&:focus,
|
||||||
&:hover {
|
&:hover {
|
||||||
@content
|
@content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -31,14 +33,14 @@
|
|||||||
@if $enable-hover-media-query {
|
@if $enable-hover-media-query {
|
||||||
&,
|
&,
|
||||||
&:focus {
|
&:focus {
|
||||||
@content
|
@content;
|
||||||
}
|
}
|
||||||
@include hover { @content }
|
@include hover { @content; }
|
||||||
} @else {
|
} @else {
|
||||||
&,
|
&,
|
||||||
&:focus,
|
&:focus,
|
||||||
&:hover {
|
&:hover {
|
||||||
@content
|
@content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -47,14 +49,14 @@
|
|||||||
@if $enable-hover-media-query {
|
@if $enable-hover-media-query {
|
||||||
&:focus,
|
&:focus,
|
||||||
&:active {
|
&:active {
|
||||||
@content
|
@content;
|
||||||
}
|
}
|
||||||
@include hover { @content }
|
@include hover { @content; }
|
||||||
} @else {
|
} @else {
|
||||||
&:focus,
|
&:focus,
|
||||||
&:active,
|
&:active,
|
||||||
&:hover {
|
&:hover {
|
||||||
@content
|
@content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,5 +2,10 @@
|
|||||||
@include bg-variant('.bg-#{$color}', $value);
|
@include bg-variant('.bg-#{$color}', $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-white { background-color: $white !important; }
|
.bg-white {
|
||||||
.bg-transparent { background-color: transparent !important; }
|
background-color: $white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-transparent {
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user