mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-03 15:24:19 +01:00
d6b0f45fb7
Conflicts: Gruntfile.js dist/css/bootstrap-theme.css dist/css/bootstrap-theme.css.map dist/css/bootstrap-theme.min.css dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css docs/_includes/components/dropdowns.html docs/_includes/components/media.html docs/_includes/components/navs.html docs/_includes/components/progress-bars.html docs/_includes/components/responsive-embed.html docs/_includes/css/buttons.html docs/_includes/css/forms.html docs/_includes/css/less.html docs/_includes/css/overview.html docs/_includes/css/responsive-utilities.html docs/_includes/customizer-variables.html docs/_includes/getting-started/browser-device-support.html docs/_includes/getting-started/grunt.html docs/_includes/getting-started/template.html docs/_includes/header.html docs/_includes/js/alerts.html docs/_includes/js/buttons.html docs/_includes/js/carousel.html docs/_includes/js/collapse.html docs/_includes/js/dropdowns.html docs/_includes/js/modal.html docs/_includes/js/popovers.html docs/_includes/js/scrollspy.html docs/_includes/js/tabs.html docs/_includes/js/tooltips.html docs/_includes/nav/components.html docs/_includes/nav/getting-started.html docs/_layouts/default.html docs/about.html docs/assets/css/docs.min.css docs/assets/css/src/docs.css docs/assets/js/customize.min.js docs/assets/js/docs.min.js docs/assets/js/raw-files.min.js docs/browser-bugs.html docs/components.html docs/components/navbar.md docs/css.html docs/dist/css/bootstrap-theme.css docs/dist/css/bootstrap-theme.css.map docs/dist/css/bootstrap-theme.min.css docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css docs/examples/blog/index.html docs/examples/carousel/index.html docs/examples/cover/index.html docs/examples/dashboard/index.html docs/examples/grid/index.html docs/examples/jumbotron-narrow/index.html docs/examples/jumbotron/index.html docs/examples/justified-nav/index.html docs/examples/navbar-fixed-top/index.html docs/examples/navbar-static-top/index.html docs/examples/navbar/index.html docs/examples/non-responsive/index.html docs/examples/offcanvas/index.html docs/examples/signin/index.html docs/examples/starter-template/index.html docs/examples/sticky-footer-navbar/index.html docs/examples/sticky-footer/index.html docs/examples/theme/index.html docs/examples/tooltip-viewport/index.html docs/getting-started.html docs/javascript.html docs/migration.html less/_animation.less less/_modal.less less/_navbar.less less/_variables.less less/glyphicons.less less/navs.less less/panels.less less/progress-bars.less
167 lines
4.1 KiB
Plaintext
167 lines
4.1 KiB
Plaintext
/*csslint empty-rules: false, important: true*/
|
|
|
|
//
|
|
// Progress bars
|
|
// --------------------------------------------------
|
|
|
|
|
|
//
|
|
// Progress animations
|
|
//
|
|
|
|
@-webkit-keyframes progress-bar-stripes {
|
|
from { background-position: @line-height-computed 0; }
|
|
to { background-position: 0 0; }
|
|
}
|
|
|
|
@keyframes progress-bar-stripes {
|
|
from { background-position: @line-height-computed 0; }
|
|
to { background-position: 0 0; }
|
|
}
|
|
|
|
|
|
//
|
|
// Basic progress bar
|
|
//
|
|
|
|
.progress {
|
|
display: block;
|
|
width: 100%;
|
|
height: @line-height-computed;
|
|
margin-bottom: @line-height-computed;
|
|
}
|
|
.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;
|
|
.border-radius(@border-radius-base);
|
|
.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="100"]::-webkit-progress-value {
|
|
border-top-right-radius: @border-radius-base;
|
|
border-bottom-right-radius: @border-radius-base;
|
|
}
|
|
|
|
// Firefox styles must be entirely separate or it busts Webkit styles.
|
|
//
|
|
// Commented out for now because linter.
|
|
//
|
|
// @-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;
|
|
// }
|
|
// }
|
|
|
|
// 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;
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Striped
|
|
//
|
|
|
|
.progress-striped[value]::-webkit-progress-value {
|
|
#gradient > .striped();
|
|
background-size: @line-height-computed @line-height-computed;
|
|
}
|
|
.progress-striped[value]::-moz-progress-bar {
|
|
#gradient > .striped();
|
|
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;
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Animated
|
|
//
|
|
|
|
.progress-animated[value]::-webkit-progress-value {
|
|
animation: progress-bar-stripes 2s linear infinite;
|
|
}
|
|
.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;
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Variations
|
|
//
|
|
|
|
.progress-success {
|
|
.progress-variant(@progress-bar-success-bg);
|
|
}
|
|
.progress-info {
|
|
.progress-variant(@progress-bar-info-bg);
|
|
}
|
|
.progress-warning {
|
|
.progress-variant(@progress-bar-warning-bg);
|
|
}
|
|
.progress-danger {
|
|
.progress-variant(@progress-bar-danger-bg);
|
|
}
|