mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 09:24:24 +04:00
144 lines
2.1 KiB
SCSS
144 lines
2.1 KiB
SCSS
@keyframes progress-indeterminate {
|
|
0% {
|
|
right: 100%;
|
|
left: -35%;
|
|
}
|
|
|
|
100%,
|
|
60% {
|
|
right: -90%;
|
|
left: 100%;
|
|
}
|
|
}
|
|
|
|
/**
|
|
Progress
|
|
*/
|
|
.progress {
|
|
position: relative;
|
|
width: 100%;
|
|
line-height: $progress-height;
|
|
appearance: none;
|
|
|
|
&::-webkit-progress-bar {
|
|
background: var(--#{$prefix}progress-bg);
|
|
}
|
|
|
|
&::-webkit-progress-value {
|
|
background-color: var(--#{$prefix}primary);
|
|
}
|
|
|
|
&::-moz-progress-bar {
|
|
background-color: var(--#{$prefix}primary);
|
|
}
|
|
|
|
&::-ms-fill {
|
|
background-color: var(--#{$prefix}primary);
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
.progress-sm {
|
|
height: 0.25rem;
|
|
}
|
|
|
|
.progress-lg {
|
|
height: 0.75rem;
|
|
}
|
|
|
|
.progress-xl {
|
|
height: 1rem;
|
|
}
|
|
|
|
/**
|
|
Progress bar
|
|
*/
|
|
.progress-bar {
|
|
height: 100%;
|
|
@include transition(width $transition-time, background $transition-time);
|
|
}
|
|
|
|
.progress-bar-indeterminate {
|
|
&:after,
|
|
&:before {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
content: '';
|
|
background-color: inherit;
|
|
will-change: left, right;
|
|
}
|
|
|
|
&:before {
|
|
animation: progress-indeterminate 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
}
|
|
}
|
|
|
|
.progress-separated {
|
|
.progress-bar {
|
|
box-shadow: 0 0 0 2px var(--#{$prefix}card-bg, var(--#{$prefix}bg-surface));
|
|
}
|
|
}
|
|
|
|
/**
|
|
Progressbg
|
|
*/
|
|
.progressbg {
|
|
position: relative;
|
|
padding: 0.25rem 0.5rem;
|
|
display: flex;
|
|
}
|
|
|
|
.progressbg-text {
|
|
position: relative;
|
|
z-index: 1;
|
|
@include text-truncate;
|
|
}
|
|
|
|
.progressbg-progress {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 0;
|
|
height: 100%;
|
|
background: transparent;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.progressbg-value {
|
|
font-weight: var(--#{$prefix}font-weight-medium);
|
|
margin-left: auto;
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
/**
|
|
Progress steps
|
|
*/
|
|
.progress-steps {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
width: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.progress-steps-item {
|
|
flex: 1 1 0;
|
|
min-height: 0.25rem;
|
|
margin-top: 0;
|
|
color: inherit;
|
|
text-align: center;
|
|
cursor: default;
|
|
background-color: var(--tblr-border-color);
|
|
border-radius: var(--#{$prefix}border-radius-pill);
|
|
|
|
@at-root a#{&} {
|
|
cursor: pointer;
|
|
}
|
|
}
|