@geoffcox/sterling-svelte-themes
Version:
A modern theme for the sterling-svelte component library.
50 lines (43 loc) • 1.23 kB
CSS
.sterling-tree {
background-color: var(--stsv-common__background-color);
border-color: var(--stsv-common__border-color);
border-radius: 0;
border-style: solid;
border-width: var(--stsv-common__border-width);
box-sizing: border-box;
color: var(--stsv-common__color);
height: 100%;
overflow-x: hidden;
overflow-y: auto;
margin: 0;
transition:
background-color 250ms,
color 250ms,
border-color 250ms;
}
.sterling-tree:not(.disabled):hover {
border-color: var(--stsv-input__border-color--hover);
color: var(--stsv-input__color--hover);
}
.sterling-tree:not(.disabled).using-keyboard:focus-within {
border-color: var(--stsv-button__border-color--focus);
color: var(--stsv-input__color--focus);
outline-color: var(--stsv-common__outline-color);
outline-offset: 0;
outline-style: solid;
outline-width: var(--stsv-common__outline-width);
}
/* ----- container - a layout panel that grows with the items ----- */
.sterling-tree .container {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
position: relative;
}
/* ----- media queries ----- */
@media (prefers-reduced-motion) {
.sterling-tree,
.sterling-tree .container::after {
transition: none;
}
}