Skip to content

Commit

Permalink
Minor Sass cleanup and consistency changes. (#23959)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 17, 2017
1 parent 0705ee8 commit 5cec8e0
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 21 deletions.
3 changes: 1 addition & 2 deletions scss/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@
}

@include media-breakpoint-up($next) {
flex-direction: row;
flex-wrap: nowrap;
flex-flow: row nowrap;
justify-content: flex-start;

.navbar-nav {
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ $custom-radio-indicator-border-radius: 50% !default;
$custom-radio-indicator-icon-checked: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3E%3C/svg%3E"), "#", "%23") !default;

$custom-select-padding-y: .375rem !default;
$custom-select-padding-x: .75rem !default;
$custom-select-height: $input-height !default;
$custom-select-padding-x: .75rem !default;
$custom-select-height: $input-height !default;
$custom-select-indicator-padding: 1rem !default; // Extra padding to account for the presence of the background-image based indicator
$custom-select-line-height: $input-btn-line-height !default;
$custom-select-color: $input-color !default;
Expand Down
4 changes: 2 additions & 2 deletions scss/mixins/_grid-framework.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
width: 100%;
min-height: 1px; // Prevent columns from collapsing when empty
padding-right: ($gutter / 2);
padding-left: ($gutter / 2);
padding-left: ($gutter / 2);
}

@each $breakpoint in map-keys($breakpoints) {
Expand Down Expand Up @@ -56,7 +56,7 @@
@for $i from 0 through ($columns - 1) {
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
.offset#{$infix}-#{$i} {
@include make-col-offset($i, $columns)
@include make-col-offset($i, $columns);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions scss/mixins/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
margin-right: auto;
margin-left: auto;
padding-right: ($grid-gutter-width / 2);
padding-left: ($grid-gutter-width / 2);
padding-left: ($grid-gutter-width / 2);
}


Expand All @@ -24,7 +24,7 @@
display: flex;
flex-wrap: wrap;
margin-right: ($grid-gutter-width / -2);
margin-left: ($grid-gutter-width / -2);
margin-left: ($grid-gutter-width / -2);
}

@mixin make-col-ready() {
Expand All @@ -35,7 +35,7 @@
width: 100%;
min-height: 1px; // Prevent collapsing
padding-right: ($grid-gutter-width / 2);
padding-left: ($grid-gutter-width / 2);
padding-left: ($grid-gutter-width / 2);
}

@mixin make-col($size, $columns: $grid-columns) {
Expand Down
22 changes: 12 additions & 10 deletions scss/mixins/_hover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,22 @@
// }
// @else {
// scss-lint:disable Indentation
&:hover { @content }
&:hover { @content; }
// scss-lint:enable Indentation
// }
}


@mixin hover-focus {
@if $enable-hover-media-query {
&:focus { @content }
@include hover { @content }
&:focus {
@content;
}
@include hover { @content; }
} @else {
&:focus,
&:hover {
@content
@content;
}
}
}
Expand All @@ -31,14 +33,14 @@
@if $enable-hover-media-query {
&,
&:focus {
@content
@content;
}
@include hover { @content }
@include hover { @content; }
} @else {
&,
&:focus,
&:hover {
@content
@content;
}
}
}
Expand All @@ -47,14 +49,14 @@
@if $enable-hover-media-query {
&:focus,
&:active {
@content
@content;
}
@include hover { @content }
@include hover { @content; }
} @else {
&:focus,
&:active,
&:hover {
@content
@content;
}
}
}
9 changes: 7 additions & 2 deletions scss/utilities/_background.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
@include bg-variant('.bg-#{$color}', $value);
}

.bg-white { background-color: $white !important; }
.bg-transparent { background-color: transparent !important; }
.bg-white {
background-color: $white !important;
}

.bg-transparent {
background-color: transparent !important;
}

0 comments on commit 5cec8e0

Please sign in to comment.