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