mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
eb361fa6c1
* remove obvi comments * proper fix for #21801 - ensures .progress-bar text is vertically centered should the height of the .progress-bar change by matching the line-height and height values - we can't use flexbox here because the inner text of an element doesn't count as a flex item
30 lines
743 B
SCSS
30 lines
743 B
SCSS
@keyframes progress-bar-stripes {
|
|
from { background-position: $progress-height 0; }
|
|
to { background-position: 0 0; }
|
|
}
|
|
|
|
.progress {
|
|
display: flex;
|
|
overflow: hidden; // force rounded corners by cropping it
|
|
font-size: $progress-font-size;
|
|
line-height: $progress-height;
|
|
text-align: center;
|
|
background-color: $progress-bg;
|
|
@include border-radius($progress-border-radius);
|
|
}
|
|
|
|
.progress-bar {
|
|
height: $progress-height;
|
|
line-height: $progress-height;
|
|
color: $progress-bar-color;
|
|
background-color: $progress-bar-bg;
|
|
}
|
|
|
|
.progress-bar-striped {
|
|
@include gradient-striped();
|
|
background-size: $progress-height $progress-height;
|
|
}
|
|
|
|
.progress-bar-animated {
|
|
animation: progress-bar-stripes $progress-bar-animation-timing;
|
|
}
|