]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add $progress-box-shadow variable 18822/head
authorChris Rebert <code@chrisrebert.com>
Sat, 9 Jan 2016 22:59:08 +0000 (14:59 -0800)
committerChris Rebert <code@chrisrebert.com>
Sat, 9 Jan 2016 22:59:08 +0000 (14:59 -0800)
[skip sauce]
[skip validator]

scss/_progress.scss
scss/_variables.scss

index 2670606e0cf79628a173454442ee9f30f4512294..d0dc2023d0e6c28e763a0c7258d2ee87b2c69a99 100644 (file)
 .progress[value]::-webkit-progress-bar {
   background-color: $progress-bg;
   @include border-radius($border-radius);
-  @include box-shadow(inset 0 .1rem .1rem rgba(0,0,0,.1));
+  @include box-shadow($progress-box-shadow);
 }
 base::-moz-progress-bar, // Absurd-but-syntactically-valid selector to make these styles Firefox-only
 .progress[value] {
   background-color: $progress-bg;
   @include border-radius($border-radius);
-  @include box-shadow(inset 0 .1rem .1rem rgba(0,0,0,.1));
+  @include box-shadow($progress-box-shadow);
 }
 
 // IE9 hacks to accompany custom markup. We don't need to scope this via media queries, but I feel better doing it anyway.
@@ -73,7 +73,7 @@ base::-moz-progress-bar, // Absurd-but-syntactically-valid selector to make thes
   .progress {
     background-color: $progress-bg;
     @include border-radius($border-radius);
-    @include box-shadow(inset 0 .1rem .1rem rgba(0,0,0,.1));
+    @include box-shadow($progress-box-shadow);
   }
   .progress-bar {
     display: inline-block;
index 6c3e725c208eb279fdaa1a16a0039ec660166ebe..b85ab50b19001cac5dc613ce72bffdbeec944ccf 100644 (file)
@@ -575,6 +575,7 @@ $alert-danger-border:         $state-danger-border !default;
 $progress-bg:                 #eee !default;
 $progress-bar-color:          #0074d9 !default;
 $progress-border-radius:      $border-radius !default;
+$progress-box-shadow:         inset 0 .1rem .1rem rgba(0,0,0,.1) !default;
 
 $progress-bar-bg:             $brand-primary !default;
 $progress-bar-success-bg:     $brand-success !default;