mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-24 03:03:42 +00:00
Shorten if notations so that property order can be applied
This commit is contained in:
parent
dc64ff3314
commit
f54b83073d
3 changed files with 7 additions and 16 deletions
|
|
@ -111,15 +111,11 @@
|
||||||
}
|
}
|
||||||
.carousel-control-prev {
|
.carousel-control-prev {
|
||||||
left: 0;
|
left: 0;
|
||||||
@if $enable-gradients {
|
background-image: if($enable-gradients, linear-gradient(90deg, rgba($black, .25), rgba($black, .001)), null);
|
||||||
background-image: linear-gradient(90deg, rgba($black, .25), rgba($black, .001));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.carousel-control-next {
|
.carousel-control-next {
|
||||||
right: 0;
|
right: 0;
|
||||||
@if $enable-gradients {
|
background-image: if($enable-gradients, linear-gradient(270deg, rgba($black, .25), rgba($black, .001)), null);
|
||||||
background-image: linear-gradient(270deg, rgba($black, .25), rgba($black, .001));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Icons for within
|
// Icons for within
|
||||||
|
|
|
||||||
|
|
@ -166,9 +166,7 @@
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
// Remove CSS gradients if they're enabled
|
// Remove CSS gradients if they're enabled
|
||||||
@if $enable-gradients {
|
background-image: if($enable-gradients, none, null);
|
||||||
background-image: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,8 @@
|
||||||
.show > &.dropdown-toggle {
|
.show > &.dropdown-toggle {
|
||||||
color: $active-color;
|
color: $active-color;
|
||||||
background-color: $active-background;
|
background-color: $active-background;
|
||||||
@if $enable-gradients {
|
// Remove CSS gradients if they're enabled
|
||||||
background-image: none; // Remove the gradient for the pressed/active state
|
background-image: if($enable-gradients, none, null);
|
||||||
}
|
|
||||||
border-color: $active-border;
|
border-color: $active-border;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
|
|
@ -62,11 +61,9 @@
|
||||||
&.disabled {
|
&.disabled {
|
||||||
color: $color;
|
color: $color;
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
border-color: $border;
|
|
||||||
// Remove CSS gradients if they're enabled
|
// Remove CSS gradients if they're enabled
|
||||||
@if $enable-gradients {
|
background-image: if($enable-gradients, none, null);
|
||||||
background-image: none;
|
border-color: $border;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue