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-rating {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.25rem;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:55:28 +00:00
|
|
|
.p-rating-option {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
|
|
|
outline-color: transparent;
|
|
|
|
border-radius: 50%;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:55:28 +00:00
|
|
|
.p-rating-option.p-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
|
|
|
}
|
|
|
|
|
|
|
|
.p-rating-icon {
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('rating.icon.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
font-size: 1rem;
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
}
|
|
|
|
|
2024-04-07 10:55:28 +00:00
|
|
|
.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-option:hover .p-rating-icon {
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('rating.icon.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-07 10:55:28 +00:00
|
|
|
.p-rating-option-active .p-rating-icon {
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('rating.icon.active.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|