2026-05-21 12:30:37 -04:00
|
|
|
/* form-controls.css ─ label/input/select/textarea/hint/toggle */
|
|
|
|
|
|
|
|
|
|
.wd-label {
|
|
|
|
|
display: block;
|
|
|
|
|
font: 600 11px/1 var(--font);
|
|
|
|
|
letter-spacing: 0.08em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--text-tertiary);
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wd-input, .wd-select, .wd-textarea {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 32px;
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
background: var(--bg-deep);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
font: 400 13px/1 var(--font);
|
|
|
|
|
color: var(--text-primary);
|
web-ui(wave 2): token cleanups from wave-1 code review
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).
2026-05-21 13:08:02 -04:00
|
|
|
transition: border-color var(--dur-fast) var(--ease-out-quart);
|
2026-05-21 12:30:37 -04:00
|
|
|
}
|
|
|
|
|
.wd-textarea { height: auto; min-height: 80px; padding: 8px 10px; line-height: 1.5; resize: vertical; }
|
|
|
|
|
.wd-input:focus, .wd-select:focus, .wd-textarea:focus {
|
|
|
|
|
border-color: var(--accent-border);
|
|
|
|
|
outline: 2px solid var(--accent-subtle);
|
|
|
|
|
outline-offset: 1px;
|
|
|
|
|
}
|
|
|
|
|
.wd-input:disabled, .wd-select:disabled, .wd-textarea:disabled {
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
}
|
|
|
|
|
.wd-input::placeholder, .wd-textarea::placeholder {
|
|
|
|
|
color: var(--text-tertiary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wd-hint {
|
|
|
|
|
font: 400 11px/1.5 var(--font);
|
|
|
|
|
color: var(--text-tertiary);
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
}
|
|
|
|
|
.wd-hint code {
|
|
|
|
|
font-family: var(--font-mono);
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
background: var(--bg-surface);
|
|
|
|
|
padding: 1px 4px;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wd-form-group { display: flex; flex-direction: column; }
|
|
|
|
|
.wd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
|
|
|
|
.wd-form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
|
|
|
|
|
|
|
|
|
|
/* Toggle switch — 34x18 */
|
|
|
|
|
.wd-toggle {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
.wd-toggle input {
|
|
|
|
|
position: absolute;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
width: 0; height: 0;
|
|
|
|
|
}
|
|
|
|
|
.wd-toggle-track {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 34px;
|
|
|
|
|
height: 18px;
|
|
|
|
|
background: var(--bg-hover);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 999px;
|
web-ui(wave 2): token cleanups from wave-1 code review
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).
2026-05-21 13:08:02 -04:00
|
|
|
transition: background 200ms var(--ease-out-quart);
|
2026-05-21 12:30:37 -04:00
|
|
|
}
|
|
|
|
|
.wd-toggle-track::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 2px; left: 2px;
|
|
|
|
|
width: 12px; height: 12px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: var(--text-secondary);
|
web-ui(wave 2): token cleanups from wave-1 code review
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).
2026-05-21 13:08:02 -04:00
|
|
|
transition: transform 200ms var(--ease-out-quart),
|
|
|
|
|
background 200ms var(--ease-out-quart);
|
2026-05-21 12:30:37 -04:00
|
|
|
}
|
|
|
|
|
.wd-toggle input:checked ~ .wd-toggle-track {
|
|
|
|
|
background: var(--accent);
|
|
|
|
|
border-color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
.wd-toggle input:checked ~ .wd-toggle-track::after {
|
|
|
|
|
transform: translateX(16px);
|
|
|
|
|
background: oklch(98% 0.005 266);
|
|
|
|
|
}
|
|
|
|
|
.wd-toggle-label { font: 400 13px/1 var(--font); color: var(--text-secondary); }
|