aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave <[email protected]>2017-05-26 10:48:57 -0700
committerMark Otto <[email protected]>2017-08-10 22:50:59 -0700
commitc2c06bc5816629dc7b921e3b50e55c533c5f943f (patch)
treef435785fcf125cb941b89ef1bce89e6dadf897fa
parent0bb9fd20823d47055832364daa4c914d677267c4 (diff)
downloadbootstrap-c2c06bc5816629dc7b921e3b50e55c533c5f943f.tar.xz
bootstrap-c2c06bc5816629dc7b921e3b50e55c533c5f943f.zip
_progress.scss: makes bars 100% height, centers labels horizontally & vertically
-rw-r--r--scss/_progress.scss15
1 files changed, 10 insertions, 5 deletions
diff --git a/scss/_progress.scss b/scss/_progress.scss
index f7491a64b..1be34c439 100644
--- a/scss/_progress.scss
+++ b/scss/_progress.scss
@@ -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;
}