2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.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 {
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
.p-knob svg:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes p-knob-dash-frame {
|
|
|
|
100% {
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|