aboutsummaryrefslogtreecommitdiffstats
path: root/bower_components/bootstrap/less/progress-bars.less
diff options
context:
space:
mode:
Diffstat (limited to 'bower_components/bootstrap/less/progress-bars.less')
-rw-r--r--bower_components/bootstrap/less/progress-bars.less29
1 files changed, 27 insertions, 2 deletions
diff --git a/bower_components/bootstrap/less/progress-bars.less b/bower_components/bootstrap/less/progress-bars.less
index 76c87be..3ac52a2 100644
--- a/bower_components/bootstrap/less/progress-bars.less
+++ b/bower_components/bootstrap/less/progress-bars.less
@@ -48,16 +48,41 @@
}
// Striped bars
-.progress-striped .progress-bar {
+//
+// `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the
+// `.progress-bar-striped` class, which you just add to an existing
+// `.progress-bar`.
+.progress-striped .progress-bar,
+.progress-bar-striped {
#gradient > .striped();
background-size: 40px 40px;
}
// Call animation for the active one
-.progress.active .progress-bar {
+//
+// `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the
+// `.progress-bar.active` approach.
+.progress.active .progress-bar,
+.progress-bar.active {
.animation(progress-bar-stripes 2s linear infinite);
}
+// Account for lower percentages
+.progress-bar {
+ &[aria-valuenow="1"],
+ &[aria-valuenow="2"] {
+ min-width: 30px;
+ }
+
+ &[aria-valuenow="0"] {
+ color: @gray-light;
+ min-width: 30px;
+ background-color: transparent;
+ background-image: none;
+ box-shadow: none;
+ }
+}
+
// Variations