2012-06-29 06:46:45 +02:00
|
|
|
//
|
|
|
|
// Progress bars
|
|
|
|
// --------------------------------------------------
|
2012-01-08 00:52:57 +01:00
|
|
|
|
|
|
|
|
2013-02-02 01:21:38 +01:00
|
|
|
// Bar animations
|
|
|
|
// -------------------------
|
2012-01-08 00:52:57 +01:00
|
|
|
|
|
|
|
// Webkit
|
2011-11-26 19:41:17 +01:00
|
|
|
@-webkit-keyframes progress-bar-stripes {
|
2012-03-15 18:11:17 +01:00
|
|
|
from { background-position: 40px 0; }
|
|
|
|
to { background-position: 0 0; }
|
2011-11-26 19:41:17 +01:00
|
|
|
}
|
|
|
|
|
2012-01-28 23:20:27 +01:00
|
|
|
// Firefox
|
2012-01-28 21:43:19 +01:00
|
|
|
@-moz-keyframes progress-bar-stripes {
|
2012-03-15 18:11:17 +01:00
|
|
|
from { background-position: 40px 0; }
|
|
|
|
to { background-position: 0 0; }
|
2012-01-28 21:43:19 +01:00
|
|
|
}
|
2011-11-26 19:41:17 +01:00
|
|
|
|
2012-03-24 18:53:27 +01:00
|
|
|
// Opera
|
|
|
|
@-o-keyframes progress-bar-stripes {
|
|
|
|
from { background-position: 0 0; }
|
|
|
|
to { background-position: 40px 0; }
|
|
|
|
}
|
|
|
|
|
2013-08-05 17:11:13 +02:00
|
|
|
// Spec and IE10+
|
2011-11-26 19:41:17 +01:00
|
|
|
@keyframes progress-bar-stripes {
|
2012-03-15 18:11:17 +01:00
|
|
|
from { background-position: 40px 0; }
|
|
|
|
to { background-position: 0 0; }
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-02 01:21:38 +01:00
|
|
|
// Bar itself
|
|
|
|
// -------------------------
|
2012-01-08 00:52:57 +01:00
|
|
|
|
|
|
|
// Outer container
|
2011-11-26 19:41:17 +01:00
|
|
|
.progress {
|
2012-01-28 05:17:03 +01:00
|
|
|
overflow: hidden;
|
2013-05-10 02:20:46 +02:00
|
|
|
height: @line-height-computed;
|
|
|
|
margin-bottom: @line-height-computed;
|
2013-02-02 01:21:38 +01:00
|
|
|
background-color: @progress-bg;
|
2012-11-30 23:45:25 +01:00
|
|
|
border-radius: @border-radius-base;
|
2013-01-17 00:19:55 +01:00
|
|
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Bar of progress
|
2013-02-02 01:21:38 +01:00
|
|
|
.progress-bar {
|
2013-01-17 00:19:55 +01:00
|
|
|
float: left;
|
2012-01-08 00:52:57 +01:00
|
|
|
width: 0%;
|
2012-07-02 23:21:26 +02:00
|
|
|
height: 100%;
|
2013-04-24 00:41:06 +02:00
|
|
|
font-size: @font-size-small;
|
2013-07-26 14:04:15 +02:00
|
|
|
color: @progress-bar-color;
|
2012-01-25 05:30:26 +01:00
|
|
|
text-align: center;
|
2013-02-02 01:21:38 +01:00
|
|
|
background-color: @progress-bar-bg;
|
2012-01-08 00:52:57 +01:00
|
|
|
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
|
|
|
.transition(width .6s ease);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Striped bars
|
2013-02-02 01:21:38 +01:00
|
|
|
.progress-striped .progress-bar {
|
|
|
|
#gradient > .striped(@progress-bar-bg);
|
2012-01-18 08:52:49 +01:00
|
|
|
.background-size(40px 40px);
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Call animation for the active one
|
2013-02-02 01:21:38 +01:00
|
|
|
.progress.active .progress-bar {
|
2012-01-08 00:52:57 +01:00
|
|
|
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
|
|
|
-moz-animation: progress-bar-stripes 2s linear infinite;
|
2012-03-24 18:53:27 +01:00
|
|
|
-ms-animation: progress-bar-stripes 2s linear infinite;
|
|
|
|
-o-animation: progress-bar-stripes 2s linear infinite;
|
2012-01-08 00:52:57 +01:00
|
|
|
animation: progress-bar-stripes 2s linear infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-02 01:21:38 +01:00
|
|
|
// Variations
|
|
|
|
// -------------------------
|
2012-01-08 00:52:57 +01:00
|
|
|
|
|
|
|
// Danger (red)
|
2013-02-02 01:21:38 +01:00
|
|
|
.progress-bar-danger {
|
2013-07-08 00:06:16 +02:00
|
|
|
.progress-bar-variant(@progress-bar-danger-bg);
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Success (green)
|
2013-02-02 01:21:38 +01:00
|
|
|
.progress-bar-success {
|
2013-07-08 00:06:16 +02:00
|
|
|
.progress-bar-variant(@progress-bar-success-bg);
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
2012-02-24 11:23:04 +01:00
|
|
|
|
|
|
|
// Warning (orange)
|
2013-02-02 01:21:38 +01:00
|
|
|
.progress-bar-warning {
|
2013-07-08 00:06:16 +02:00
|
|
|
.progress-bar-variant(@progress-bar-warning-bg);
|
2012-02-24 11:23:04 +01:00
|
|
|
}
|
2013-02-02 01:21:38 +01:00
|
|
|
|
|
|
|
// Info (teal)
|
|
|
|
.progress-bar-info {
|
2013-07-08 00:06:16 +02:00
|
|
|
.progress-bar-variant(@progress-bar-info-bg);
|
2012-02-24 11:23:04 +01:00
|
|
|
}
|