mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
48 lines
917 B
TypeScript
48 lines
917 B
TypeScript
import { css } from 'lit';
|
|
import componentStyles from '../../styles/component.styles';
|
|
|
|
export default css`
|
|
${componentStyles}
|
|
|
|
:host {
|
|
--track-color: var(--sl-color-gray-200);
|
|
--indicator-color: var(--sl-color-primary-500);
|
|
|
|
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;
|
|
}
|
|
`;
|