2014-01-03 13:32:13 -05:00
|
|
|
//
|
|
|
|
// Progress bars
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
2014-01-23 21:49:29 -05:00
|
|
|
// Bar animations
|
|
|
|
// -------------------------
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-23 21:49:29 -05:00
|
|
|
// WebKit
|
2014-01-03 13:32:13 -05:00
|
|
|
@-webkit-keyframes progress-bar-stripes {
|
|
|
|
from { background-position: 40px 0; }
|
|
|
|
to { background-position: 0 0; }
|
|
|
|
}
|
|
|
|
|
2014-01-23 21:49:29 -05:00
|
|
|
// Spec and IE10+
|
2014-01-03 13:32:13 -05:00
|
|
|
@keyframes progress-bar-stripes {
|
|
|
|
from { background-position: 40px 0; }
|
|
|
|
to { background-position: 0 0; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-23 21:49:29 -05:00
|
|
|
// Bar itself
|
|
|
|
// -------------------------
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
// Outer container
|
|
|
|
.progress {
|
|
|
|
overflow: hidden;
|
2014-01-23 21:49:29 -05:00
|
|
|
height: $line-height-computed;
|
|
|
|
margin-bottom: $line-height-computed;
|
|
|
|
background-color: $progress-bg;
|
|
|
|
border-radius: $border-radius-base;
|
2014-01-03 13:32:13 -05:00
|
|
|
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
|
|
|
}
|
|
|
|
|
|
|
|
// Bar of progress
|
2014-01-23 21:49:29 -05:00
|
|
|
.progress-bar {
|
|
|
|
float: left;
|
2014-01-03 13:32:13 -05:00
|
|
|
width: 0%;
|
|
|
|
height: 100%;
|
2014-01-23 21:49:29 -05:00
|
|
|
font-size: $font-size-small;
|
|
|
|
line-height: $line-height-computed;
|
|
|
|
color: $progress-bar-color;
|
2014-01-03 13:32:13 -05:00
|
|
|
text-align: center;
|
2014-01-23 21:49:29 -05:00
|
|
|
background-color: $progress-bar-bg;
|
2014-01-03 13:32:13 -05:00
|
|
|
@include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
|
|
|
@include transition(width .6s ease);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Striped bars
|
2014-01-23 21:49:29 -05:00
|
|
|
.progress-striped .progress-bar {
|
|
|
|
@include gradient-striped();
|
|
|
|
background-size: 40px 40px;
|
2014-01-03 13:32:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Call animation for the active one
|
2014-01-23 21:49:29 -05:00
|
|
|
.progress.active .progress-bar {
|
|
|
|
@include animation(progress-bar-stripes 2s linear infinite);
|
2014-01-03 13:32:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-23 21:49:29 -05:00
|
|
|
// Variations
|
|
|
|
// -------------------------
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-23 21:49:29 -05:00
|
|
|
.progress-bar-success {
|
|
|
|
@include progress-bar-variant($progress-bar-success-bg);
|
2014-01-03 13:32:13 -05:00
|
|
|
}
|
|
|
|
|
2014-01-23 21:49:29 -05:00
|
|
|
.progress-bar-info {
|
|
|
|
@include progress-bar-variant($progress-bar-info-bg);
|
2014-01-03 13:32:13 -05:00
|
|
|
}
|
|
|
|
|
2014-01-23 21:49:29 -05:00
|
|
|
.progress-bar-warning {
|
|
|
|
@include progress-bar-variant($progress-bar-warning-bg);
|
2014-01-03 13:32:13 -05:00
|
|
|
}
|
|
|
|
|
2014-01-23 21:49:29 -05:00
|
|
|
.progress-bar-danger {
|
|
|
|
@include progress-bar-variant($progress-bar-danger-bg);
|
2014-01-03 13:32:13 -05:00
|
|
|
}
|