40 lines
963 B
CSS
40 lines
963 B
CSS
.list {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
outline: none;
|
|
}
|
|
|
|
.item {
|
|
display: flex;
|
|
gap: var(--space-4);
|
|
align-items: center;
|
|
|
|
/* The row fills the virtualizer's band, or its fill is shorter than the band and sticks to the
|
|
top edge — the same defect the table cells had. */
|
|
height: 100%;
|
|
border-block: var(--row-fill-inset) solid transparent;
|
|
padding-inline: var(--space-2);
|
|
border-radius: var(--radius-control);
|
|
background-clip: padding-box;
|
|
}
|
|
|
|
/* A row that leads somewhere is obliged to show it. For a list without onSelect the cursor is not
|
|
changed: otherwise it promises an action that does not exist (the Ф-7 norm). */
|
|
.selectable .item {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.item[data-hovered] {
|
|
background-color: var(--color-raised);
|
|
}
|
|
|
|
.item[data-focus-visible] {
|
|
outline: 1px solid var(--color-accent);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
.empty {
|
|
padding: var(--space-4) var(--space-2);
|
|
color: var(--color-text-secondary);
|
|
}
|