2021-07-10 00:45:44 +00:00
|
|
|
import { css } from 'lit';
|
|
|
|
import componentStyles from '../../styles/component.styles';
|
|
|
|
|
|
|
|
export default css`
|
|
|
|
${componentStyles}
|
|
|
|
|
|
|
|
:host {
|
2021-08-06 12:32:46 +00:00
|
|
|
--track-color: rgb(var(--sl-color-neutral-500) / 15%);
|
2021-08-05 12:27:58 +00:00
|
|
|
--indicator-color: rgb(var(--sl-color-primary-500));
|
2021-07-10 00:45:44 +00:00
|
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-ring {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-ring__image {
|
|
|
|
transform: rotate(-90deg);
|
|
|
|
transform-origin: 50% 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-ring__track {
|
|
|
|
stroke: var(--track-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-ring__indicator {
|
|
|
|
stroke: var(--indicator-color);
|
|
|
|
transition: 0.35s stroke-dashoffset, 0.35s stroke;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-ring__label {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
text-align: center;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
`;
|