]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Shorten if notations so that property order can be applied
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Thu, 19 Dec 2019 10:18:05 +0000 (11:18 +0100)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 12 Feb 2020 17:45:54 +0000 (19:45 +0200)
scss/_carousel.scss
scss/_dropdown.scss
scss/mixins/_buttons.scss

index fb4ed894d3548c9aa662a8c0935f3f5045f929fd..84ffd6cea1d1cea03e5c251d08bda9cca90397e0 100644 (file)
 }
 .carousel-control-prev {
   left: 0;
-  @if $enable-gradients {
-    background-image: linear-gradient(90deg, rgba($black, .25), rgba($black, .001));
-  }
+  background-image: if($enable-gradients, linear-gradient(90deg, rgba($black, .25), rgba($black, .001)), null);
 }
 .carousel-control-next {
   right: 0;
-  @if $enable-gradients {
-    background-image: linear-gradient(270deg, rgba($black, .25), rgba($black, .001));
-  }
+  background-image: if($enable-gradients, linear-gradient(270deg, rgba($black, .25), rgba($black, .001)), null);
 }
 
 // Icons for within
index 4bfa8ac9dfc365e4ff23970d89bface4cace7cfe..8a7572828de70d2aad3d9b63d645a63a14a46665 100644 (file)
     pointer-events: none;
     background-color: transparent;
     // Remove CSS gradients if they're enabled
-    @if $enable-gradients {
-      background-image: none;
-    }
+    background-image: if($enable-gradients, none, null);
   }
 }
 
index 8dc2c882a78d0eefc7ce3e1d9e2e9485e0cc9df2..92fe214d14aea3e170b470428f07224919a91530 100644 (file)
@@ -43,9 +43,8 @@
   .show > &.dropdown-toggle {
     color: $active-color;
     background-color: $active-background;
-    @if $enable-gradients {
-      background-image: none; // Remove the gradient for the pressed/active state
-    }
+    // Remove CSS gradients if they're enabled
+    background-image: if($enable-gradients, none, null);
     border-color: $active-border;
 
     &:focus {
   &.disabled {
     color: $color;
     background-color: $background;
-    border-color: $border;
     // Remove CSS gradients if they're enabled
-    @if $enable-gradients {
-      background-image: none;
-    }
+    background-image: if($enable-gradients, none, null);
+    border-color: $border;
   }
 }