2014-07-09 10:39:34 +02:00
|
|
|
// Progress animations
|
2011-11-26 19:41:17 +01:00
|
|
|
@keyframes progress-bar-stripes {
|
2016-12-29 23:56:28 +01:00
|
|
|
from { background-position: $progress-height 0; }
|
2016-02-06 21:28:18 +01:00
|
|
|
to { background-position: 0 0; }
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
|
|
|
|
2014-07-09 10:39:34 +02:00
|
|
|
// Basic progress bar
|
2011-11-26 19:41:17 +01:00
|
|
|
.progress {
|
2016-12-29 23:56:28 +01:00
|
|
|
display: flex;
|
2016-11-27 03:46:46 +01:00
|
|
|
overflow: hidden; // force rounded corners by cropping it
|
2016-12-29 23:56:28 +01:00
|
|
|
font-size: $progress-font-size;
|
|
|
|
line-height: $progress-height;
|
|
|
|
text-align: center;
|
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);
|
2015-12-10 23:29:54 +01:00
|
|
|
}
|
2016-12-29 23:56:28 +01:00
|
|
|
.progress-bar {
|
|
|
|
height: $progress-height;
|
|
|
|
color: $progress-bar-color;
|
|
|
|
background-color: $progress-bar-bg;
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
|
|
|
|
2014-07-09 10:39:34 +02:00
|
|
|
// Striped
|
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
|
|
|
|
2014-07-09 10:39:34 +02:00
|
|
|
// Animated
|
2016-12-29 23:56:28 +01:00
|
|
|
.progress-bar-animated {
|
|
|
|
animation: progress-bar-stripes $progress-bar-animation-timing;
|
2012-02-24 11:23:04 +01:00
|
|
|
}
|