Newer
Older
@use 'styles/settings.scss' as s;
@use 'styles/functions.scss' as fn;

Planoetscher Daniel (Student Com20)
committed
.circular-progress {

Planoetscher Daniel (Student Com20)
committed
display: flex;
justify-content: center;
font-size: 14px;
@each $key,
$color in s.$themeLightMap {
&.color-#{$key} {
svg {
path {
stroke: url('#gradient-#{$key}');
}
linearGradient#gradient-#{$key} {
stop {
&:last-child {
stop-color: $color !important;
}
&:first-child {
stop-color: fn.getFrom(s.$themeDarkMap, $key) !important;
}
}
}
}
}
}
svg {
width: 70px;
height: 70px;
path {
stroke-width: 8;
stroke-linecap: round;
stroke: url(#gradient);
fill: none;
}
circle {
fill: none;
}
.label {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
line-height: 1;

Planoetscher Daniel (Student Com20)
committed
font-weight: s.$weight-bold;
display: flex;
margin: 0 !important;