2019-07-18 14:22:11 +00:00
|
|
|
//
|
|
|
|
// Component: Progress Bar
|
|
|
|
//
|
2015-10-31 21:00:16 +00:00
|
|
|
|
|
|
|
//General CSS
|
2016-10-22 19:32:28 +00:00
|
|
|
.progress {
|
2015-10-31 21:00:16 +00:00
|
|
|
@include box-shadow(none);
|
2016-10-22 19:32:28 +00:00
|
|
|
@include border-radius($progress-bar-border-radius);
|
2019-06-28 08:02:07 +00:00
|
|
|
|
|
|
|
// Vertical bars
|
|
|
|
&.vertical {
|
|
|
|
display: inline-block;
|
|
|
|
height: 200px;
|
|
|
|
margin-right: 10px;
|
|
|
|
position: relative;
|
|
|
|
width: 30px;
|
|
|
|
|
|
|
|
> .progress-bar {
|
|
|
|
bottom: 0;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
//Sizes
|
|
|
|
&.sm,
|
|
|
|
&.progress-sm {
|
|
|
|
width: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.xs,
|
|
|
|
&.progress-xs {
|
|
|
|
width: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.xxs,
|
|
|
|
&.progress-xxs {
|
|
|
|
width: 3px;
|
|
|
|
}
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
|
2018-03-17 17:07:55 +00:00
|
|
|
.progress-group {
|
2019-10-29 08:22:51 +00:00
|
|
|
margin-bottom: map-get($spacers, 2);
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
2016-10-22 19:32:28 +00:00
|
|
|
// size variation
|
2015-10-31 21:00:16 +00:00
|
|
|
.progress-sm {
|
|
|
|
height: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-xs {
|
|
|
|
height: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-xxs {
|
|
|
|
height: 3px;
|
|
|
|
}
|
|
|
|
|
2016-10-22 19:32:28 +00:00
|
|
|
// Remove margins from progress bars when put in a table
|
2015-10-31 21:00:16 +00:00
|
|
|
.table {
|
2019-07-18 14:22:11 +00:00
|
|
|
tr > td {
|
|
|
|
.progress {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
}
|
2020-09-23 14:08:15 +00:00
|
|
|
|
2021-04-13 12:24:31 +00:00
|
|
|
@include dark-mode () {
|
2020-09-23 14:08:15 +00:00
|
|
|
.progress {
|
|
|
|
background: lighten($dark, 7.5%);
|
|
|
|
}
|
|
|
|
}
|