1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
twbs--bootstrap/less/progress-bars.less

88 lines
1.9 KiB
Text
Raw Normal View History

2012-06-29 00:46:45 -04:00
//
// Progress bars
// --------------------------------------------------
// Bar animations
// -------------------------
// WebKit
@-webkit-keyframes progress-bar-stripes {
from { background-position: 40px 0; }
to { background-position: 0 0; }
}
// Spec and IE10+
2011-11-26 13:41:17 -05:00
@keyframes progress-bar-stripes {
2012-03-15 13:11:17 -04:00
from { background-position: 40px 0; }
to { background-position: 0 0; }
}
// Bar itself
// -------------------------
// Outer container
2011-11-26 13:41:17 -05:00
.progress {
overflow: hidden;
height: @line-height-computed;
margin-bottom: @line-height-computed;
background-color: @progress-bg;
border-radius: @progress-border-radius;
2013-01-16 18:19:55 -05:00
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
}
// Bar of progress
.progress-bar {
2013-01-16 18:19:55 -05:00
float: left;
width: 0%;
2012-07-02 17:21:26 -04:00
height: 100%;
font-size: @font-size-small;
line-height: @line-height-computed;
color: @progress-bar-color;
2012-01-24 23:30:26 -05:00
text-align: center;
background-color: @progress-bar-bg;
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
.transition(width .6s ease);
}
// Striped bars
//
2014-06-19 05:09:35 -04:00
// `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the
// `.progress-bar-striped` class, which you just add to an existing
// `.progress-bar`.
.progress-striped .progress-bar,
.progress-bar-striped {
#gradient > .striped();
background-size: 40px 40px;
}
// Call animation for the active one
//
2014-06-19 05:09:35 -04:00
// `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the
// `.progress-bar.active` approach.
.progress.active .progress-bar,
.progress-bar.active {
2013-10-26 08:11:59 -04:00
.animation(progress-bar-stripes 2s linear infinite);
}
// Variations
// -------------------------
.progress-bar-success {
2013-07-07 18:06:16 -04:00
.progress-bar-variant(@progress-bar-success-bg);
}
2013-08-15 14:56:07 -04:00
.progress-bar-info {
.progress-bar-variant(@progress-bar-info-bg);
}
.progress-bar-warning {
2013-07-07 18:06:16 -04:00
.progress-bar-variant(@progress-bar-warning-bg);
}
2013-08-15 14:56:07 -04:00
.progress-bar-danger {
.progress-bar-variant(@progress-bar-danger-bg);
}