Commit c2c06bc5 authored by Dave's avatar Dave Committed by Mark Otto
Browse files

_progress.scss: makes bars 100% height, centers labels horizontally & vertically

parent 0bb9fd20
Showing with 10 additions and 5 deletions
+10 -5
// Progress animations
@keyframes progress-bar-stripes { @keyframes progress-bar-stripes {
from { background-position: $progress-height 0; } from { background-position: $progress-height 0; }
to { background-position: 0 0; } to { background-position: 0 0; }
} }
// Basic progress bar
.progress { .progress {
display: flex; display: flex;
align-items: center;
overflow: hidden; // force rounded corners by cropping it overflow: hidden; // force rounded corners by cropping it
font-size: $progress-font-size; font-size: $progress-font-size;
height: $progress-height;
line-height: $progress-height; line-height: $progress-height;
text-align: center;
background-color: $progress-bg; background-color: $progress-bg;
@include border-radius($progress-border-radius); @include border-radius($progress-border-radius);
@include box-shadow($progress-box-shadow);
} }
.progress-bar { .progress-bar {
height: $progress-height; display: flex;
line-height: $progress-height; justify-content: center;
align-items: center;
height: 100%;
color: $progress-bar-color; color: $progress-bar-color;
background-color: $progress-bar-bg; background-color: $progress-bar-bg;
@include transition($progress-bar-transition);
} }
// Striped
.progress-bar-striped { .progress-bar-striped {
@include gradient-striped(); @include gradient-striped();
background-size: $progress-height $progress-height; background-size: $progress-height $progress-height;
} }
// Animated
.progress-bar-animated { .progress-bar-animated {
animation: progress-bar-stripes $progress-bar-animation-timing; animation: progress-bar-stripes $progress-bar-animation-timing;
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment