2014-08-05 00:17:43 +02:00
|
|
|
/*csslint empty-rules: false, important: true*/
|
|
|
|
|
2012-06-29 06:46:45 +02:00
|
|
|
//
|
|
|
|
// Progress bars
|
|
|
|
// --------------------------------------------------
|
2012-01-08 00:52:57 +01:00
|
|
|
|
|
|
|
|
2014-07-09 10:39:34 +02:00
|
|
|
//
|
|
|
|
// Progress animations
|
|
|
|
//
|
2012-01-08 00:52:57 +01:00
|
|
|
|
2014-06-24 17:08:16 +02:00
|
|
|
@-webkit-keyframes progress-bar-stripes {
|
2014-07-09 10:39:34 +02:00
|
|
|
from { background-position: @line-height-computed 0; }
|
2014-06-24 17:08:16 +02:00
|
|
|
to { background-position: 0 0; }
|
|
|
|
}
|
|
|
|
|
2011-11-26 19:41:17 +01:00
|
|
|
@keyframes progress-bar-stripes {
|
2014-07-09 10:39:34 +02:00
|
|
|
from { background-position: @line-height-computed 0; }
|
2012-03-15 18:11:17 +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
|
|
|
|
//
|
2012-01-08 00:52:57 +01:00
|
|
|
|
2011-11-26 19:41:17 +01:00
|
|
|
.progress {
|
2014-07-09 10:39:34 +02:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
2013-05-10 02:20:46 +02:00
|
|
|
height: @line-height-computed;
|
|
|
|
margin-bottom: @line-height-computed;
|
2014-07-09 10:39:34 +02:00
|
|
|
}
|
|
|
|
.progress[value] {
|
|
|
|
// Reset the default appearance
|
|
|
|
appearance: none;
|
|
|
|
// Remove Firefox and Opera border
|
|
|
|
border: 0;
|
|
|
|
// IE10 uses `color` to set the bar background-color
|
|
|
|
color: #0074d9;
|
|
|
|
}
|
|
|
|
.progress[value]::-webkit-progress-bar {
|
|
|
|
background-color: #eee;
|
2014-07-09 01:25:01 +02:00
|
|
|
.border-radius(@border-radius-base);
|
2014-07-09 10:39:34 +02:00
|
|
|
.box-shadow(inset 0 .1rem .1rem rgba(0,0,0,.1));
|
|
|
|
}
|
|
|
|
.progress[value]::-webkit-progress-value::before {
|
|
|
|
content: attr(value);
|
|
|
|
}
|
|
|
|
.progress[value]::-webkit-progress-value {
|
|
|
|
background-color: #0074d9;
|
|
|
|
border-top-left-radius: @border-radius-base;
|
|
|
|
border-bottom-left-radius: @border-radius-base;
|
|
|
|
}
|
|
|
|
.progress[value="0"]::-webkit-progress-value {
|
|
|
|
color: @gray-light;
|
|
|
|
min-width: 2rem;
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
.progress[value="100"]::-webkit-progress-value {
|
|
|
|
border-top-right-radius: @border-radius-base;
|
|
|
|
border-bottom-right-radius: @border-radius-base;
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
|
|
|
|
2014-07-09 10:39:34 +02:00
|
|
|
// Firefox styles must be entirely separate or it busts Webkit styles.
|
2014-08-05 00:17:43 +02:00
|
|
|
/* Commented out for now because linter.
|
2014-07-09 10:39:34 +02:00
|
|
|
@-moz-document url-prefix() {
|
|
|
|
.progress[value] {
|
|
|
|
background-color: #eee;
|
|
|
|
.border-radius(@border-radius-base);
|
|
|
|
.box-shadow(inset 0 .1rem .1rem rgba(0,0,0,.1));
|
|
|
|
}
|
|
|
|
.progress[value]::-moz-progress-bar {
|
|
|
|
background-color: #0074d9;
|
|
|
|
border-top-left-radius: @border-radius-base;
|
|
|
|
border-bottom-left-radius: @border-radius-base;
|
|
|
|
}
|
|
|
|
.progress[value="0"]::-moz-progress-bar {
|
|
|
|
color: @gray-light;
|
|
|
|
min-width: 2rem;
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
.progress[value="100"]::-moz-progress-bar {
|
|
|
|
border-top-right-radius: @border-radius-base;
|
|
|
|
border-bottom-right-radius: @border-radius-base;
|
|
|
|
}
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
2014-08-05 00:17:43 +02:00
|
|
|
*/
|
2014-07-09 10:39:34 +02:00
|
|
|
// IE9 hacks to accompany custom markup. We don't need to scope this via media queries, but I feel better doing it anyway.
|
|
|
|
@media screen and (~"min-width:0\0") {
|
|
|
|
.progress {
|
|
|
|
background-color: #eee;
|
|
|
|
.border-radius(@border-radius-base);
|
|
|
|
.box-shadow(inset 0 .1rem .1rem rgba(0,0,0,.1));
|
|
|
|
}
|
|
|
|
.progress-bar {
|
|
|
|
display: inline-block;
|
|
|
|
height: @line-height-computed;
|
|
|
|
text-indent: -999rem; // Simulate hiding of value as in native `<progress>`
|
|
|
|
background-color: #0074d9;
|
|
|
|
border-top-left-radius: @border-radius-base;
|
|
|
|
border-bottom-left-radius: @border-radius-base;
|
|
|
|
}
|
|
|
|
.progress[width^="0"] {
|
|
|
|
color: @gray-light;
|
|
|
|
min-width: 2rem;
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
.progress[width="100%"] {
|
|
|
|
border-top-right-radius: @border-radius-base;
|
|
|
|
border-bottom-right-radius: @border-radius-base;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-19 07:35:05 +02:00
|
|
|
//
|
2014-07-09 10:39:34 +02:00
|
|
|
// Striped
|
|
|
|
//
|
|
|
|
|
|
|
|
.progress-striped[value]::-webkit-progress-value {
|
|
|
|
#gradient > .striped();
|
|
|
|
background-size: @line-height-computed @line-height-computed;
|
|
|
|
}
|
|
|
|
.progress-striped[value]::-moz-progress-bar {
|
2013-08-21 05:46:01 +02:00
|
|
|
#gradient > .striped();
|
2014-07-09 10:39:34 +02:00
|
|
|
background-size: @line-height-computed @line-height-computed;
|
|
|
|
}
|
|
|
|
@media screen and (~"min-width:0\0") {
|
|
|
|
.progress-bar-striped {
|
|
|
|
#gradient > .striped();
|
|
|
|
background-size: @line-height-computed @line-height-computed;
|
|
|
|
}
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
|
|
|
|
2014-07-09 10:39:34 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Animated
|
2014-06-19 07:35:05 +02:00
|
|
|
//
|
2014-07-09 10:39:34 +02:00
|
|
|
|
|
|
|
.progress-animated[value]::-webkit-progress-value {
|
2014-07-08 11:04:48 +02:00
|
|
|
animation: progress-bar-stripes 2s linear infinite;
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
2014-07-09 10:39:34 +02:00
|
|
|
.progress-animated[value]::-moz-progress-bar {
|
|
|
|
animation: progress-bar-stripes 2s linear infinite;
|
|
|
|
}
|
|
|
|
@media screen and (~"min-width:0\0") {
|
|
|
|
.progress-animated .progress-bar-striped {
|
|
|
|
animation: progress-bar-stripes 2s linear infinite;
|
2014-03-05 01:55:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-01-08 00:52:57 +01:00
|
|
|
|
2014-07-09 10:39:34 +02:00
|
|
|
//
|
2013-02-02 01:21:38 +01:00
|
|
|
// Variations
|
2014-07-09 10:39:34 +02:00
|
|
|
//
|
2012-01-08 00:52:57 +01:00
|
|
|
|
2014-07-09 10:39:34 +02:00
|
|
|
.progress-success {
|
|
|
|
.progress-variant(@progress-bar-success-bg);
|
2012-01-08 00:52:57 +01:00
|
|
|
}
|
2014-07-09 10:39:34 +02:00
|
|
|
.progress-info {
|
|
|
|
.progress-variant(@progress-bar-info-bg);
|
2013-08-15 20:56:07 +02:00
|
|
|
}
|
2014-07-09 10:39:34 +02:00
|
|
|
.progress-warning {
|
|
|
|
.progress-variant(@progress-bar-warning-bg);
|
2012-02-24 11:23:04 +01:00
|
|
|
}
|
2014-07-09 10:39:34 +02:00
|
|
|
.progress-danger {
|
|
|
|
.progress-variant(@progress-bar-danger-bg);
|
2012-02-24 11:23:04 +01:00
|
|
|
}
|