@geoffcox/sterling-svelte-themes
Version:
A modern theme for the sterling-svelte component library.
34 lines (30 loc) • 771 B
CSS
.sterling-list-item {
background-color: transparent;
box-sizing: border-box;
color: var(--stsv-common__color);
cursor: pointer;
margin: 0;
padding: 0.5em;
position: relative;
outline: none;
text-overflow: ellipsis;
transition:
background-color 250ms,
color 250ms,
border-color 250ms;
white-space: nowrap;
}
.sterling-list-item:not(.disabled):not(.selected):hover {
background-color: var(--stsv-button__background-color--hover);
color: var(--stsv-button__color--hover);
}
.sterling-list-item.selected {
background-color: var(--stsv-button__background-color--active);
color: var(--stsv-button__color--active);
}
@media (prefers-reduced-motion) {
.sterling-list-item,
.sterling-list-item::after {
transition: none;
}
}