Files
webawesome/source/css/progress-bars.css
Cory LaViska afa95589eb 1.0.0-beta14
2017-08-13 15:41:38 -04:00

107 lines
2.5 KiB
CSS

/*! Progress Bars */
:root {
--progress-font-size: var(--input-font-size);
--progress-font-size-small: var(--input-font-size-small);
--progress-font-size-big: var(--input-font-size-big);
--progress-height: var(--input-height);
--progress-height-small: var(--input-height-small);
--progress-height-big: var(--input-height-big);
--progress-color: var(--color-white);
--progress-bg-color: var(--component-bg-color);
--progress-bar-bg-color: var(--state-primary);
--progress-border-radius: var(--component-border-radius);
--progress-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
--progress-speed-change: .2s;
--progress-speed-indeterminate: 1.5s;
}
@keyframes progress-indeterminate {
0% {
left: -50%;
}
100% {
left: 100%;
}
}
.progress {
position: relative;
width: 100%;
height: var(--progress-height);
line-height: var(--progress-height);
font-size: var(--progress-font-size);
background-color: var(--progress-bg-color);
border-radius: var(--progress-border-radius);
display: block;
overflow: hidden;
margin-bottom: 1rem;
box-shadow: var(--progress-box-shadow);
}
.progress-bar {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
text-align: center;
color: var(--progress-color);
background-color: var(--progress-bar-bg-color);
transition: var(--progress-speed-change) width;
user-select: none;
cursor: default;
}
.progress-small {
font-size: var(--progress-font-size-small);
height: var(--progress-height-small);
line-height: var(--progress-height-small);
}
.progress-big {
font-size: var(--progress-font-size-big);
height: var(--progress-height-big);
line-height: var(--progress-height-big);
}
.progress-indeterminate .progress-bar {
width: 50% !important;
animation: progress-indeterminate linear var(--progress-speed-indeterminate) infinite;
}
/* Variations */
.progress-secondary .progress-bar {
background-color: var(--state-secondary);
}
.progress-success .progress-bar {
background-color: var(--state-success);
}
.progress-info .progress-bar {
background-color: var(--state-info);
}
.progress-warning .progress-bar {
background-color: var(--state-warning);
}
.progress-danger .progress-bar {
background-color: var(--state-danger);
}
.progress-light {
background-color: var(--state-dark);
}
.progress-light .progress-bar {
color: var(--state-dark);
background-color: var(--state-light);
}
.progress-dark .progress-bar {
color: var(--state-light);
background-color: var(--state-dark);
}