| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- // COMMON
- // -----------------------------------------------------------------------------
- /* Progress bar overwrite style */
- .progress-bar {
- background: $color-primary;
- }
- .progress {
- .progress-bar {
- box-shadow: none;
- border-radius: 4px;
- }
- }
- // DARK
- // -----------------------------------------------------------------------------
- /* Progress bar default style */
- .progress {
- background: $pb-default;
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4) inset;
- }
- // LIGHT
- // -----------------------------------------------------------------------------
- /* Progress bar light style */
- .progress.light {
- background: #f6f7f8;
- @include background(linear-gradient($pb-light-line, $pb-light-line 10%, $pb-light 11%));
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
- }
- // ROUNDEDNESS
- // -----------------------------------------------------------------------------
- /* Progress bar roundness generic */
- .progress-squared {
- &,
- & .progress-bar {
- border-radius: 0 !important;
- }
- }
- // SIZES
- // -----------------------------------------------------------------------------
- /* Progress bar sizes */
- .progress-xs {
- height: $pb-xs;
- &,
- & .progress-bar {
- border-radius: $pb-xs;
- }
- .progress-bar {
- direction: ltr !important;
- text-indent: -9999px;
- }
- &.progress-half-rounded {
- &,
- & .progress-bar {
- border-radius: floor($pb-xs / 3);
- }
- }
- &.progress-striped {
- .progress-bar {
- background-size: 15px 15px;
- }
- }
- }
- .progress-sm {
- border-radius: $pb-sm;
- height: $pb-sm;
- &,
- & .progress-bar {
- border-radius: $pb-sm;
- }
- .progress-bar {
- font-size: 10px;
- line-height: $pb-sm;
- }
- &.progress-half-rounded {
- &,
- & .progress-bar {
- border-radius: floor($pb-sm / 3);
- }
- }
- &.progress-striped {
- .progress-bar {
- background-size: 20px 20px;
- }
- }
- }
- .progress-md {
- border-radius: $pb-md;
- height: $pb-md;
- &,
- & .progress-bar {
- border-radius: $pb-md;
- }
- .progress-bar {
- font-size: 11px;
- line-height: $pb-md;
- }
- &.progress-half-rounded {
- &,
- & .progress-bar {
- border-radius: floor($pb-md / 3);
- }
- }
- &.progress-striped {
- .progress-bar {
- background-size: 25px 25px;
- }
- }
- }
- .progress-lg {
- border-radius: $pb-lg;
- height: $pb-lg;
- &,
- & .progress-bar {
- border-radius: $pb-lg;
- }
- .progress-bar {
- line-height: $pb-lg;
- }
- &.progress-half-rounded {
- &,
- & .progress-bar {
- border-radius: floor($pb-lg / 3);
- }
- }
- &.progress-striped {
- .progress-bar {
- background-size: 30px 30px;
- }
- }
- }
- .progress-xl {
- border-radius: $pb-xl;
- height: $pb-xl;
- &,
- & .progress-bar {
- border-radius: $pb-xl;
- }
- .progress-bar {
- line-height: $pb-xl;
- }
- &.progress-half-rounded {
- &,
- & .progress-bar {
- border-radius: floor($pb-xl / 3);
- }
- }
- &.progress-striped {
- .progress-bar {
- background-size: 35px 35px;
- }
- }
- }
- // STATES
- // -----------------------------------------------------------------------------
- /* Progress bar states */
- @each $state in $states {
- .progress {
- .progress-bar-#{nth($state,1)} {
- background-color: #{nth($state,2)};
- }
- }
- }
- // CIRCULAR BAR
- // -----------------------------------------------------------------------------
- .circular-bar {
- margin-bottom: 25px;
- .circular-bar-chart {
- position: relative;
- }
- strong {
- display: block;
- font-weight: 600;
- font-size: 18px;
- line-height: 30px;
- position: absolute;
- top: 35%;
- width: 80%;
- left: 10%;
- text-align: center;
- }
- label {
- display: block;
- font-weight: 100;
- font-size: 17px;
- line-height: 20px;
- position: absolute;
- top: 50%;
- width: 80%;
- left: 10%;
- text-align: center;
- }
- }
|