]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
_progress.scss: makes bars 100% height, centers labels horizontally & vertically
authorDave <davethegr8@users.noreply.github.com>
Fri, 26 May 2017 17:48:57 +0000 (10:48 -0700)
committerMark Otto <markd.otto@gmail.com>
Fri, 11 Aug 2017 05:50:59 +0000 (22:50 -0700)
scss/_progress.scss

index f7491a64b29189fb45020e9c6fe8fb50a8e7d453..1be34c439766c5e25c73651557ac4aa7c3f59fc2 100644 (file)
@@ -1,32 +1,37 @@
+// Progress animations
 @keyframes progress-bar-stripes {
   from { background-position: $progress-height 0; }
   to { background-position: 0 0; }
 }
 
+// Basic progress bar
 .progress {
   display: flex;
+  align-items: center;
   overflow: hidden; // force rounded corners by cropping it
   font-size: $progress-font-size;
+  height: $progress-height;
   line-height: $progress-height;
-  text-align: center;
   background-color: $progress-bg;
   @include border-radius($progress-border-radius);
-  @include box-shadow($progress-box-shadow);
 }
 
 .progress-bar {
-  height: $progress-height;
-  line-height: $progress-height;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  height: 100%;
   color: $progress-bar-color;
   background-color: $progress-bar-bg;
-  @include transition($progress-bar-transition);
 }
 
+// Striped
 .progress-bar-striped {
   @include gradient-striped();
   background-size: $progress-height $progress-height;
 }
 
+// Animated
 .progress-bar-animated {
   animation: progress-bar-stripes $progress-bar-animation-timing;
 }