21 lines
2.1 KiB
SCSS
21 lines
2.1 KiB
SCSS
:host { display: block; width: min(20rem, calc(100vw - 1rem)); max-width: calc(100vw - 1rem); min-width: 0; color: var(--issste-text); }
|
|
.panel-shell { display: flex; flex-direction: column; width: 100%; max-height: min(58dvh, 32rem); min-height: 0; overflow: hidden; color: inherit; background: var(--issste-surface); border: 1px solid var(--issste-border); border-radius: var(--issste-radius); box-shadow: 0 8px 28px rgb(8 24 57 / 24%); opacity: 1; transform: scale(1); transform-origin: left center; transition: opacity 180ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1); }
|
|
@starting-style { .panel-shell { opacity: 0; transform: scale(.97); } }
|
|
:host(.panel-closing) { pointer-events: none; }
|
|
:host(.panel-closing) .panel-shell { opacity: 0; transform: scale(.97); }
|
|
.panel-list { flex: 0 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: .35rem .5rem; }
|
|
ul { list-style: none; margin: 0; padding: 0; }
|
|
li + li { margin-top: .1rem; }
|
|
li button { display: flex; width: 100%; min-height: 44px; height: auto; justify-content: flex-start; padding: .15rem .2rem; text-align: start; white-space: normal; line-height: 1.35; color: inherit; }
|
|
.option-label { display: block; width: 100%; min-width: 0; padding: .4rem; box-sizing: border-box; border-radius: .35rem; overflow-wrap: anywhere; transition: transform 180ms ease, background-color 180ms ease; }
|
|
button:focus-visible { outline: 2px solid var(--issste-accent); outline-offset: -2px; }
|
|
.panel-list:has(button:focus-visible) button:not(:focus-visible) .option-label { transform: scale(.99); }
|
|
button:focus-visible .option-label { transform: scale(1.02); background: color-mix(in srgb, var(--issste-accent) 14%, transparent); }
|
|
@media (hover: hover) and (pointer: fine) {
|
|
.panel-list:has(button:hover) button:not(:hover):not(:focus-visible) .option-label { transform: scale(.99); }
|
|
button:hover .option-label { transform: scale(1.02); background: color-mix(in srgb, var(--issste-accent) 14%, transparent); }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.panel-shell, .option-label { transition: none; transform: none !important; }
|
|
}
|