]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Uncomment Firefox .progress styles; fixes #18536 18536/head
authorChris Rebert <code@chrisrebert.com>
Thu, 24 Dec 2015 05:45:04 +0000 (22:45 -0700)
committerChris Rebert <code@chrisrebert.com>
Thu, 24 Dec 2015 06:19:44 +0000 (23:19 -0700)
[skip sauce]
[skip validator]

scss/_progress.scss

index c1a65fb9b3713f5cc35f5f9a458eae1a5122cf77..1687288adbf1c6f816774783c51f64fb35754ac9 100644 (file)
   // Remove right-hand border of value bar from IE10+/Edge
   border: 0;
 }
+.progress[value]::-moz-progress-bar {
+  background-color: $progress-bar-color;
+  border-top-left-radius: $border-radius;
+  border-bottom-left-radius: $border-radius;
+}
 .progress[value]::-webkit-progress-value {
   background-color: $progress-bar-color;
   border-top-left-radius: $border-radius;
   border-bottom-left-radius: $border-radius;
 }
+// Tweaks for empty progress bar
+.progress[value="0"]::-moz-progress-bar {
+  min-width: 2rem;
+  color: $gray-light;
+  background-color: transparent;
+  background-image: none;
+}
+// Tweaks for full progress bar
+.progress[value="100"]::-moz-progress-bar {
+  border-top-right-radius: $border-radius;
+  border-bottom-right-radius: $border-radius;
+}
 .progress[value="100"]::-webkit-progress-value {
   border-top-right-radius: $border-radius;
   border-bottom-right-radius: $border-radius;
   @include border-radius($border-radius);
   @include box-shadow(inset 0 .1rem .1rem rgba(0,0,0,.1));
 }
-
-// Firefox styles must be entirely separate or it busts Webkit styles.
-//
-// Commented out for now because linter.
-//
-// $-moz-document url-prefix() {
-//   .progress[value] {
-//     background-color: $progress-bg;
-//     .border-radius($border-radius);
-//     .box-shadow(inset 0 .1rem .1rem rgba(0,0,0,.1));
-//   }
-//   .progress[value]::-moz-progress-bar {
-//     background-color: $progress-bar-color;
-//     border-top-left-radius: $border-radius;
-//     border-bottom-left-radius: $border-radius;
-//   }
-//   .progress[value="0"]::-moz-progress-bar {
-//     color: $gray-light;
-//     min-width: 2rem;
-//     background-color: transparent;
-//     background-image: none;
-//   }
-//   .progress[value="100"]::-moz-progress-bar {
-//     border-top-right-radius: $border-radius;
-//     border-bottom-right-radius: $border-radius;
-//   }
-// }
+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));
+}
 
 // IE9 hacks to accompany custom markup. We don't need to scope this via media queries, but I feel better doing it anyway.
 @media screen and (min-width:0\0) {