Promoted 14 new tokens (--accent-hover, --signal-{good,bad,warn}-hover,
--accent-bright, --thumb-black, --overlay, --shadow, --ease-out-{quart,expo},
--dur-{fast,normal,slide}, --z-topbar) and substituted every raw oklch /
cubic-bezier / hardcoded z-index occurrence in the 12 primitive files.
cubic-bezier appearances dropped from 8 files to 0 (only in tokens.css).
Bundle byte count: 138 KB -> 139 KB. Visual regression: zero (smoke page
still renders identically).
53 lines
1.3 KiB
CSS
53 lines
1.3 KiB
CSS
/* field-group.css ─ titled section with optional inner tabs.
|
|
* Generalized from the codec-block pattern in recorders.html. */
|
|
|
|
.wd-field-group {
|
|
border: 1px solid var(--border-faint);
|
|
border-radius: 6px;
|
|
background: var(--bg-panel);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.wd-field-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 36px;
|
|
padding: 0 14px;
|
|
background: var(--bg-surface);
|
|
border-bottom: 1px solid var(--border-faint);
|
|
}
|
|
.wd-field-group-title {
|
|
font: 600 11px/1 var(--font);
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.wd-tabs {
|
|
display: flex;
|
|
height: 32px;
|
|
background: var(--bg-deep);
|
|
border-bottom: 1px solid var(--border-faint);
|
|
}
|
|
.wd-tab {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: 0;
|
|
border-bottom: 2px solid transparent;
|
|
font: 500 11px/1 var(--font);
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--text-tertiary);
|
|
cursor: pointer;
|
|
transition: color var(--dur-fast) var(--ease-out-quart),
|
|
border-color var(--dur-fast) var(--ease-out-quart);
|
|
}
|
|
.wd-tab:hover { color: var(--text-secondary); }
|
|
.wd-tab.is-active {
|
|
color: var(--accent);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
.wd-tab-panel { display: none; padding: 14px; }
|
|
.wd-tab-panel.is-active { display: block; }
|