0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-20 17:54:23 +01:00

Remove unrelated properties from gradient-bg mixin

This commit is contained in:
Martijn Cuppens 2019-12-19 10:31:24 +01:00 committed by XhmikosR
parent c32209eb8a
commit 1bc2d65b29

View File

@ -3,12 +3,9 @@
@mixin gradient-bg($color, $foreground: null) {
@if $enable-gradients {
@if $foreground {
background-color: $color;
background-image: $foreground, linear-gradient(180deg, mix($body-bg, $color, 15%), $color);
background-repeat: no-repeat;
background-size: 1em, auto;
} @else {
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x;
background-image: linear-gradient(180deg, mix($body-bg, $color, 15%), $color);
}
} @else {
background-color: $color;