116 lines
2.5 KiB
CSS
116 lines
2.5 KiB
CSS
/* Shared disclosure header: [16px leading] gap 6 [title 13/24] at the default
|
||
size. The Settings font-size preference moves the row through the
|
||
body-published axis: title size follows the secondary tier
|
||
(--dsh-content-font-size-secondary: one step under the body — setting −1 at
|
||
≤14, setting −2 above), and the row height, leading box, and glyph edge
|
||
shift by the body px delta so the icon keeps its optical share of the
|
||
line. */
|
||
|
||
.root {
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: 100%;
|
||
min-width: 0;
|
||
}
|
||
|
||
.header {
|
||
display: flex;
|
||
align-items: center;
|
||
min-width: 0;
|
||
}
|
||
|
||
.header[data-has-accessory] {
|
||
gap: 8px;
|
||
}
|
||
|
||
.header[data-has-accessory] .row {
|
||
flex: 0 1 auto;
|
||
}
|
||
|
||
.row {
|
||
flex: 1 1 auto;
|
||
position: relative;
|
||
overflow: hidden;
|
||
display: flex;
|
||
align-items: center;
|
||
height: calc(24px + var(--dsh-content-font-delta, 0px));
|
||
min-width: 0;
|
||
color: var(--dsw-alias-label-tertiary);
|
||
transition: color 100ms ease;
|
||
}
|
||
|
||
.row[data-expandable] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
@media (hover: hover) {
|
||
.row:hover {
|
||
color: var(--dsw-alias-label-secondary);
|
||
}
|
||
}
|
||
|
||
.leading {
|
||
position: relative;
|
||
flex: none;
|
||
width: calc(16px + var(--dsh-content-font-delta, 0px));
|
||
height: calc(16px + var(--dsh-content-font-delta, 0px));
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
margin-right: 6px;
|
||
padding: 0;
|
||
border: none;
|
||
background: none;
|
||
color: inherit;
|
||
}
|
||
|
||
/* Flow-row glyphs render at 14px inside the 16px box; the CSS edge overrides
|
||
each svg's own width/height attributes so every registered icon scales
|
||
without a per-callsite size prop. StateDot (its svg carries data-state)
|
||
stays at its fixed figma size — it is a status mark, not text furniture. */
|
||
.leading svg:not([data-state]) {
|
||
width: calc(14px + var(--dsh-content-font-delta, 0px));
|
||
height: calc(14px + var(--dsh-content-font-delta, 0px));
|
||
}
|
||
|
||
button.leading {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.iconIdle {
|
||
display: inline-flex;
|
||
opacity: 1;
|
||
transition: opacity 100ms ease;
|
||
}
|
||
|
||
.chevronHover {
|
||
position: absolute;
|
||
inset: 0;
|
||
margin: auto;
|
||
opacity: 0;
|
||
transition: opacity 100ms ease;
|
||
}
|
||
|
||
@media (hover: hover) {
|
||
.row:hover .iconIdle {
|
||
opacity: 0;
|
||
}
|
||
|
||
.row:hover .chevronHover {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
.title {
|
||
flex: none;
|
||
font-size: var(--dsh-content-font-size-secondary, 13px);
|
||
line-height: calc(24px + var(--dsh-content-font-delta, 0px));
|
||
color: inherit;
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.row {
|
||
transition: none;
|
||
}
|
||
}
|