mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #5667 - Remove base option from theme config
This commit is contained in:
parent
6d688ef675
commit
0979dde96d
438 changed files with 10872 additions and 11957 deletions
|
@ -1,5 +1,39 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const theme = ({ 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;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const classes = {
|
||||
root: ({ props }) => ['p-knob p-component', { 'p-disabled': props.disabled }],
|
||||
range: 'p-knob-range',
|
||||
|
@ -9,5 +43,6 @@ const classes = {
|
|||
|
||||
export default BaseStyle.extend({
|
||||
name: 'knob',
|
||||
theme,
|
||||
classes
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue