36 lines
692 B
JavaScript
36 lines
692 B
JavaScript
export default {
|
|
css: ({ dt }) => `
|
|
.p-knob-range {
|
|
fill: none;
|
|
transition: stroke 0.1s ease-in;
|
|
}
|
|
|
|
.p-knob-value {
|
|
animation-name: p-knob-dash-frame;
|
|
animation-fill-mode: forwards;
|
|
fill: none;
|
|
}
|
|
|
|
.p-knob-text {
|
|
font-size: 1.3rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.p-knob svg {
|
|
border-radius: ${dt('rounded.base')};
|
|
outline-color: transparent;
|
|
transition: outline-color ${dt('transition.duration')};
|
|
}
|
|
.p-knob svg:focus-visible {
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
outline-offset: ${dt('focus.ring.offset')};
|
|
}
|
|
|
|
@keyframes p-knob-dash-frame {
|
|
100% {
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|
|
`
|
|
};
|