primevue-mirror/components/lib/themes/primeone/base/rating/index.js

41 lines
1009 B
JavaScript
Raw Normal View History

export default {
css: ({ dt }) => `
.p-rating {
position: relative;
display: flex;
align-items: center;
gap: 0.25rem;
}
.p-rating-item {
display: inline-flex;
align-items: center;
cursor: pointer;
outline-color: transparent;
border-radius: 50%;
cursor: pointer;
}
.p-rating-item.p-focus-visible {
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
outline-offset: ${dt('focus.ring.offset')};
}
.p-rating-icon {
2024-03-13 18:50:24 +00:00
color: ${dt('rating.icon.color')};
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
font-size: 1rem;
width: 1rem;
height: 1rem;
}
.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-item:hover .p-rating-icon {
2024-03-13 18:50:24 +00:00
color: ${dt('rating.icon.hover.color')};
}
.p-rating-item-active .p-rating-icon {
2024-03-13 18:50:24 +00:00
color: ${dt('rating.icon.active.color')};
}
`
};