2019-01-15 01:51:11 +01:00
|
|
|
// Disable animation if transitions are disabled
|
|
|
|
@if $enable-transitions {
|
|
|
|
@keyframes progress-bar-stripes {
|
|
|
|
from { background-position: $progress-height 0; }
|
|
|
|
to { background-position: 0 0; }
|
|
|
|
}
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
|
|
|
|
2011-11-26 19:41:17 +01:00
|
|
|
.progress {
|
2016-12-29 23:56:28 +01:00
|
|
|
display: flex;
|
2017-05-26 20:21:02 +02:00
|
|
|
height: $progress-height;
|
2016-11-27 03:46:46 +01:00
|
|
|
overflow: hidden; // force rounded corners by cropping it
|
2019-02-07 23:32:05 +01:00
|
|
|
@include font-size($progress-font-size);
|
2015-12-21 18:52:03 +01:00
|
|
|
background-color: $progress-bg;
|
2016-07-20 03:01:25 +02:00
|
|
|
@include border-radius($progress-border-radius);
|
2017-11-27 18:31:11 +01:00
|
|
|
@include box-shadow($progress-box-shadow);
|
2015-12-10 23:29:54 +01:00
|
|
|
}
|
2017-01-21 21:32:38 +01:00
|
|
|
|
2016-12-29 23:56:28 +01:00
|
|
|
.progress-bar {
|
2017-05-26 19:48:57 +02:00
|
|
|
display: flex;
|
2017-11-06 18:57:25 +01:00
|
|
|
flex-direction: column;
|
2017-05-26 20:11:10 +02:00
|
|
|
justify-content: center;
|
2016-12-29 23:56:28 +01:00
|
|
|
color: $progress-bar-color;
|
2017-11-06 18:57:25 +01:00
|
|
|
text-align: center;
|
2018-02-12 01:46:54 +01:00
|
|
|
white-space: nowrap;
|
2016-12-29 23:56:28 +01:00
|
|
|
background-color: $progress-bar-bg;
|
2017-11-06 21:02:42 +01:00
|
|
|
@include transition($progress-bar-transition);
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
|
|
|
|
2016-12-29 23:56:28 +01:00
|
|
|
.progress-bar-striped {
|
2014-12-02 23:02:35 +01:00
|
|
|
@include gradient-striped();
|
2016-12-29 23:56:28 +01:00
|
|
|
background-size: $progress-height $progress-height;
|
2015-12-10 23:29:54 +01:00
|
|
|
}
|
2012-01-08 00:52:57 +01:00
|
|
|
|
2019-01-15 01:51:11 +01:00
|
|
|
@if $enable-transitions {
|
|
|
|
.progress-bar-animated {
|
|
|
|
animation: progress-bar-stripes $progress-bar-animation-timing;
|
|
|
|
|
2019-03-21 14:59:02 +01:00
|
|
|
@if $enable-prefers-reduced-motion-media-query {
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
animation: none;
|
|
|
|
}
|
2019-01-15 01:51:11 +01:00
|
|
|
}
|
|
|
|
}
|
2012-02-24 11:23:04 +01:00
|
|
|
}
|