Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

slides: one field look for every chrome input, select and textarea (#729)

nyblnetde84b37ebb22
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f07a1ca2..60c41820 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2432,6 +2432,11 @@ jobs:
# primary in both themes, and N language rebuilds leaving one set of
# window/document listeners and bar observers.
run: node scripts/test-slides-topbar-browser.mjs
+ - name: One field look in Chromium
+ # Every chrome text field, select and textarea (each element kind's
+ # panel, About, the save-as dialogs, Share, comments) has the shared
+ # field look and amber focus ring in both themes, never the UA's dress.
+ run: node scripts/test-slides-fields-browser.mjs
- name: A password-protected deck opens in Chromium
# One password gate and no loader failure card (1.2.0–1.2.8 showed
# three gates under "every loader path was refused"); wrong then right
diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md
index bd08c33e..a0e81480 100644
--- a/docs/DECISIONS.md
+++ b/docs/DECISIONS.md
@@ -10435,6 +10435,43 @@ choices are dash's and are recorded because a later change could undo them:
`recoveryLooksOlder` is read against the workbook AS LOADED, because dash
stamps `modified` on every edit.
+
+## 2026-10-17 — the suite's one field look, set in slides
+
+Every text field, select and textarea in an app's chrome wears one look. The
+rule is the `THE FIELD` block in `slides/src/styles.css`; dash, spaces and type
+copy that block as it stands rather than restyling fields one by one:
+
+- the selector is `:where(…)` over every `input` except checkbox, radio,
+ range, file, colour, button types and hidden, plus `select` and `textarea`;
+ colour inputs get the same border, fill and radius from their own block;
+- 1px solid `--line` border, `--field` fill, `--ink` text, 6px radius,
+ `font: inherit` at 12.5px, 26px tall (border-box, `padding: 0 6px`);
+ textareas are `height: auto` with `padding: 6px 8px` and `line-height: 1.5`;
+- focus is `:focus-visible` → `outline: 2px solid var(--accent-ink);
+ outline-offset: -1px`. The ring sits on the border, so a scroll container
+ cannot clip it.
+
+Two choices here could be undone by accident:
+
+- **Zero specificity, no class.** A field that needs a class to look right
+ comes out in the browser's dress the day someone forgets it. That had
+ happened five times in slides: in dark theme those fields had the browser's
+ `#3b3b3b` fill, and About's theme select had the whole UA look (square, grey
+ `#767676` border, 19px tall). Context rules now only SIZE a field (width,
+ flex, monospace font); they never restate its look.
+- **Two deliberate exceptions, by class.** The deck title is a ghost field (no
+ box at rest, the field's border on hover, its fill once focused). The
+ password gate is its own card on the dark boot splash. Anything else that
+ overrides the look needs a reason recorded here.
+
+`scripts/test-slides-fields-browser.mjs` walks the panel for every element
+kind, the slide panel, About, Replace from JSON, Export images, Encrypt with
+password, the Share popover and the comment popover, in both themes, and fails
+on any field that differs. It plants a field with its author styles reverted
+to prove that the check catches the browser's dress.
+
+
## 2026-10-17 — dash adopts the suite's one field look
Dash copies slides' `THE FIELD` block as written, into `dash/src/styles.css`
diff --git a/scripts/test-slides-fields-browser.mjs b/scripts/test-slides-fields-browser.mjs
new file mode 100644
index 00000000..e71f6e63
--- /dev/null
+++ b/scripts/test-slides-fields-browser.mjs
@@ -0,0 +1,226 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+// Every text field, select and textarea in slides' chrome wears the ONE field look.
+//
+// npm run build:single --prefix slides && node scripts/test-slides-fields-browser.mjs
+//
+// WHAT THIS PROVES, measured in the packaged document, in light AND dark theme:
+// 1. every visible field — the properties panel for each element kind, the
+// slide panel, About, Replace from JSON, Export images, Encrypt with
+// password, the Share popover, the comment popover — has a 1px SOLID
+// border in the computed --line colour, a --field fill, a 6px radius, and
+// (single-line fields) a 26px height. The browser's own dress is a 2px
+// INSET border with square corners, and in dark theme a #3b3b3b fill: five
+// slides fields had that fill, and About's theme select had all of it;
+// 2. a focused field shows the amber ring: a 2px solid --accent-ink outline;
+// 3. each surface really opened — a floor on how many fields it shows — so a
+// menu that silently failed to open cannot pass by having no fields;
+// 4. the check itself works: a field with its author styles reverted (the
+// browser's dress) is planted in the page and must be flagged.
+// The rule under test is the `THE FIELD` block in slides/src/styles.css, the
+// reference dash, spaces and type copy.
+const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright')
+
+let checks = 0
+let failures = 0
+function ok(cond, msg) {
+ checks++
+ if (!cond) { failures++; console.log(` FAIL ${msg}`) } else console.log(` ok ${msg}`)
+}
+
+const SHELL = new URL('../slides/dist-single/Bento_Slides.bento.html', import.meta.url).href
+const PNG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=='
+// one slide per element kind, so each kind's properties panel gets walked
+const KINDS = {
+ text: { type: 'text', html: 'Hello' },
+ rect: { type: 'shape', shape: 'rect', fill: '#88aaff' },
+ line: { type: 'shape', shape: 'line', fill: '#333333', h: 4 },
+ image: { type: 'image', src: PNG },
+ chart: { type: 'chart', option: { xAxis: { type: 'category', data: ['a', 'b'] }, yAxis: { type: 'value' }, series: [{ type: 'bar', data: [1, 2] }] } },
+ pie: { type: 'chart', option: { series: [{ type: 'pie', data: [{ name: 'a', value: 1 }, { name: 'b', value: 2 }] }] } },
+ table: { type: 'table', columns: [{ w: 1 }, { w: 1 }], header: true, style: { borderColor: '#d0d7e2', borderWidth: 1 }, rows: [{ cells: [{ html: 'a' }, { html: 'b' }] }, { cells: [{ html: '1' }, { html: '2' }] }] },
+ media: { type: 'media', kind: 'video', src: 'x.mp4' },
+ svg: { type: 'svg', svg: '<svg viewBox="0 0 10 10"><rect width="10" height="10"/></svg>' },
+ code: { type: 'code', code: 'let a = 1', lang: 'js' },
+}
+const NAMES = Object.keys(KINDS)
+
+// Every visible field on the page, with what the rule governs. Native widgets
+// (checkbox, radio, range, file) keep the platform look and are skipped.
+function measure(scope) {
+ const root = getComputedStyle(document.documentElement)
+ const probe = document.createElement('div')
+ document.body.appendChild(probe)
+ const resolve = (v) => { probe.style.color = v; return getComputedStyle(probe).color }
+ const tok = { line: resolve(root.getPropertyValue('--line')), field: resolve(root.getPropertyValue('--field')), ring: resolve(root.getPropertyValue('--accent-ink')) }
+ probe.remove()
+ const out = []
+ for (const el of document.querySelectorAll('input, textarea, select')) {
+ const r = el.getBoundingClientRect()
+ const s = getComputedStyle(el)
+ if (!r.width || !r.height || s.visibility === 'hidden') continue
+ const type = el.tagName === 'INPUT' ? el.type : el.tagName.toLowerCase()
+ if (['checkbox', 'radio', 'range', 'file', 'hidden'].includes(type)) continue
+ // the deliberate exceptions: the ghost deck title (boxless at rest) and
+ // the password gate, which is its own card on the boot splash
+ if (el.matches('.ed-title, .ed-pwcard input')) continue
+ const sides = ['Top', 'Right', 'Bottom', 'Left']
+ const name = (el.className && `.${String(el.className).trim().split(/\s+/)[0]}`) || el.closest('[class]')?.className.split(' ')[0] || ''
+ out.push({
+ id: `${type} ${name}${el.placeholder ? ` "${el.placeholder}"` : ''}`.trim(),
+ type,
+ styles: sides.map((x) => s[`border${x}Style`]),
+ widths: sides.map((x) => s[`border${x}Width`]),
+ colors: sides.map((x) => s[`border${x}Color`]),
+ bg: s.backgroundColor,
+ radius: s.borderTopLeftRadius,
+ h: +r.height.toFixed(1),
+ planted: el.hasAttribute('data-planted'),
+ inScope: !scope || !!el.closest(scope),
+ })
+ }
+ return { tok, fields: out }
+}
+
+function problems(f, tok) {
+ const p = []
+ if (f.styles.some((x) => x === 'inset' || x === 'outset')) p.push(`${f.styles[0]} border (browser default)`)
+ else if (f.styles.some((x) => x !== 'solid')) p.push(`border ${f.styles.join('/')}`)
+ if (f.widths.some((w) => w !== '1px')) p.push(`border ${f.widths.join('/')}`)
+ if (f.colors.some((c) => c !== tok.line)) p.push(`border ${f.colors[0]} ≠ --line ${tok.line}`)
+ if (f.bg !== tok.field) p.push(`fill ${f.bg} ≠ --field ${tok.field}`)
+ if (f.radius !== '6px') p.push(`radius ${f.radius}`)
+ if (f.type !== 'textarea' && Math.abs(f.h - 26) > 0.5) p.push(`height ${f.h}`)
+ return p
+}
+
+// each surface gets a fresh page; `open` brings it up, and `min` is the floor
+// on how many fields it shows INSIDE `scope` — proof the surface opened at
+// all, since the panel's fields are on the page whatever else is open
+const SURFACES = [
+ { name: 'slide panel', scope: '.ed-props', min: 4, open: async () => {} },
+ ...NAMES.map((k, i) => ({ name: `panel: ${k}`, scope: '.ed-props', min: 6, open: async (p) => {
+ await p.evaluate((i) => document.querySelectorAll('.ed-sidebar .ed-thumb')[i].click(), i)
+ await p.waitForTimeout(150)
+ const box = await p.evaluate((k) => {
+ const r = document.querySelector(`.ed-stage-scale [data-el-id="e-${k}"]`).getBoundingClientRect()
+ return { x: r.x + r.width / 2, y: r.y + Math.min(r.height / 2, 20) }
+ }, k)
+ await p.mouse.click(box.x, box.y)
+ await p.waitForFunction((k) => window.bento.selection.includes(`e-${k}`), k)
+ } })),
+ { name: 'About', scope: '.ed-about', min: 5, open: (p) => p.locator('.ed-topbar .ed-logo').click() },
+ { name: 'Replace from JSON', scope: '.ed-about', min: 1, open: (p) => saveAs(p, 'Replace from JSON') },
+ { name: 'Export images', scope: '.bkd-card', min: 3, open: (p) => saveAs(p, 'Export slides as images') },
+ { name: 'Encrypt with password', scope: 'dialog.ed-pwdialog', min: 2, open: (p) => saveAs(p, 'Encrypt with password') },
+ { name: 'Share popover', scope: '.ed-share-pop', min: 1, open: (p) => p.locator('.ed-btn-share').click() },
+ { name: 'comment popover', scope: '.ed-comment-pop', min: 1, open: (p) => p.locator('.ed-stage-scale .ed-comment-marker, .ed-comment-marker').first().click() },
+]
+async function saveAs(p, label) {
+ await p.locator('.ed-split-caret').click()
+ // exact: "Replace from JSON" is also a phrase in another item's description
+ await p.locator('.ed-save-menu').getByText(`${label}…`, { exact: true }).click()
+}
+
+// Every surface the rig visits opens with all collapsed panel sections opened,
+// so fields behind the accordion are measured too.
+const expandAll = (p) => p.evaluate(() => { for (const h of document.querySelectorAll('.ed-sec-toggle.closed')) h.click() })
+
+const browser = await chromium.launch({ executablePath: process.env.CHROME_PATH, headless: true })
+try {
+ for (const theme of ['light', 'dark']) {
+ console.log(`\n${theme} theme\n`)
+ const ctx = await browser.newContext({ viewport: { width: 1440, height: 900 } })
+ await ctx.addInitScript((th) => {
+ try { localStorage.setItem('bento-theme', th); localStorage.setItem('bento-slideshow-started', '1') } catch {}
+ }, theme)
+ await ctx.route(/^https?:/, (r) => r.abort())
+ let doc = null
+ const fresh = async () => {
+ const p = await ctx.newPage()
+ p.on('dialog', (d) => d.dismiss())
+ p.on('pageerror', (e) => ok(false, `no page error (${e.message})`))
+ await p.goto(SHELL)
+ await p.waitForFunction(() => window.bento?.doc && document.querySelector('.ed-topbar .ed-logo'))
+ if (!doc) {
+ doc = JSON.parse(JSON.stringify(await p.evaluate(() => window.bento.doc)))
+ doc.slides = NAMES.map((k, i) => ({
+ id: `s${i}`, background: '#ffffff',
+ comments: i === 0 ? [{ id: 'c1', author: 'A', at: '2026-10-01T00:00:00Z', text: 'hi' }] : undefined,
+ elements: [{ id: `e-${k}`, x: 300, y: 200, w: 500, h: KINDS[k].h || 260, ...KINDS[k] }],
+ }))
+ }
+ const loaded = await p.evaluate((j) => !!window.bento.loadDoc(j), JSON.stringify(doc))
+ if (!loaded) throw new Error('fixture deck did not load')
+ return p
+ }
+
+ const p0 = await fresh()
+ ok(await p0.evaluate(() => document.documentElement.dataset.theme) === (theme), `the page is in ${theme} theme`)
+ await p0.close()
+
+ let total = 0
+ const focusable = []
+ for (const s of SURFACES) {
+ const p = await fresh()
+ let res
+ try {
+ await s.open(p)
+ await p.waitForTimeout(250)
+ await expandAll(p); await p.waitForTimeout(80); await expandAll(p)
+ res = await p.evaluate(measure, s.scope)
+ } catch (e) {
+ ok(false, `${s.name}: opens (${e.message.split('\n')[0]})`)
+ await p.close()
+ continue
+ }
+ const bad = res.fields.map((f) => [f, problems(f, res.tok)]).filter(([, pr]) => pr.length)
+ total += res.fields.length
+ const own = res.fields.filter((f) => f.inScope).length
+ ok(own >= s.min && bad.length === 0,
+ `${s.name}: ${own} field(s) of its own (floor ${s.min}), all ${res.fields.length} on the page in the field look` +
+ bad.map(([f, pr]) => `\n ${f.id}: ${pr.join('; ')}`).join(''))
+ if (s.name === 'panel: chart') focusable.push(p)
+ else await p.close()
+ }
+ ok(total >= 60, `${total} fields measured across ${SURFACES.length} surfaces`)
+
+ // 2. the focus ring, on each kind of field the chart panel carries
+ const p = focusable[0]
+ for (const sel of ['input[type="text"]', 'input[type="number"]', 'select', 'textarea']) {
+ const ring = await p.evaluate((sel) => {
+ const el = [...document.querySelectorAll(`.ed-props ${sel}, .ed-panel ${sel}, ${sel}`)].find((e) => e.getBoundingClientRect().width && !e.matches('.ed-title'))
+ if (!el) return null
+ el.focus({ focusVisible: true })
+ const s = getComputedStyle(el)
+ const probe = document.createElement('div')
+ probe.style.color = getComputedStyle(document.documentElement).getPropertyValue('--accent-ink')
+ document.body.appendChild(probe)
+ const want = getComputedStyle(probe).color
+ probe.remove()
+ return { style: s.outlineStyle, width: s.outlineWidth, color: s.outlineColor, want, focusVisible: el.matches(':focus-visible') }
+ }, sel)
+ ok(ring && ring.focusVisible && ring.style === 'solid' && ring.width === '2px' && ring.color === ring.want,
+ `focused ${sel} shows the amber ring (${ring ? `${ring.width} ${ring.style} ${ring.color}, want ${ring.want}` : 'none found'})`)
+ }
+
+ // 4. the check catches the browser's dress: plant a field whose author
+ // styles are reverted, and it must come back with problems
+ const planted = await p.evaluate(() => {
+ const el = document.createElement('input')
+ el.setAttribute('data-planted', '')
+ el.style.all = 'revert'
+ document.querySelector('.ed-props, .ed-panel, body').appendChild(el)
+ return true
+ }) && (await p.evaluate(measure))
+ const pf = planted.fields.find((f) => f.planted)
+ const pr = pf ? problems(pf, planted.tok) : []
+ ok(pf && pr.some((x) => /browser default|fill|radius/.test(x)), `a browser-dressed field is flagged (${pr.join('; ') || 'not flagged'})`)
+ await p.close()
+ await ctx.close()
+ }
+} finally {
+ await browser.close()
+}
+console.log(`\n${checks - failures}/${checks} checks passed`)
+if (failures) process.exit(1)
diff --git a/slides/src/styles.css b/slides/src/styles.css
index 108ac442..1cd5ec38 100644
--- a/slides/src/styles.css
+++ b/slides/src/styles.css
@@ -106,11 +106,43 @@ select, option, input, textarea, [contenteditable='true'] {
Pair with the color-scheme meta in index.html; the explicit background/color
below keeps contrast even under a force-dark engine that ignores both. */
:root { color-scheme: only light; }
-select, .ed-row input, .ed-row textarea {
+option { background: var(--field); color: var(--ink); }
+
+/* ————— THE FIELD — one look for every text field, select and textarea ———————
+ The suite's reference: dash, spaces and type copy this block as it stands.
+ Every chrome field gets it with no class to remember, so a new field cannot
+ come out in the browser's own dress — the grey inset 2px border, square
+ corners, and in dark theme a #3b3b3b fill nobody chose (five of slides'
+ fields had exactly that, each with its own rule that forgot one property).
+
+ :where() keeps the specificity at ZERO, so a context rule that only sizes a
+ field (width, flex, font-weight) layers on top without restating the look,
+ and a field that is deliberately not a box (the ghost title, the password
+ gate's own card) overrides it with an ordinary class. The ring sits ON the
+ border (offset -1px), so no scroll container can clip it. Checkboxes,
+ radios, ranges and file pickers keep their native controls. Guarded by
+ scripts/test-slides-fields-browser.mjs. */
+:where(input:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='color'], [type='button'], [type='submit'], [type='reset'], [type='image'], [type='hidden']), select, textarea) {
+ box-sizing: border-box;
+ height: 26px;
+ padding: 0 6px;
+ font: inherit;
+ font-size: 12.5px;
+ color: var(--ink);
background: var(--field);
- color: var(--ink-2);
+ border: 1px solid var(--line);
+ border-radius: 6px;
}
-option { background: var(--field); color: var(--ink); }
+:where(textarea) { height: auto; padding: 6px 8px; line-height: 1.5; resize: vertical; }
+:where(input[type='color']) {
+ box-sizing: border-box;
+ height: 26px;
+ padding: 1px 2px;
+ background: var(--field);
+ border: 1px solid var(--line);
+ border-radius: 6px;
+}
+:where(input, select, textarea):focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -1px; }
/* ————— THE DOCUMENT NEVER MIRRORS —————————————————————————————————————————
An Arabic/Hebrew viewer gets an RTL *chrome* (i18n.ts applyDirection sets
@@ -189,18 +221,18 @@ option { background: var(--field); color: var(--ink); }
}
.ed-logo-mark { display: block; border-radius: 5px; }
+/* The deck title is a GHOST field: no box at rest, the shared field's border
+ on hover, its fill and amber ring once focused. Its height is the bar's. */
.ed-title {
- font: inherit;
+ height: auto;
font-size: 14px;
- color: var(--ink);
- border: 1px solid transparent;
- border-radius: 6px;
+ border-color: transparent;
padding: 5px 8px;
width: 220px;
background: transparent;
}
.ed-title:hover { border-color: var(--line); }
-.ed-title:focus { border-color: var(--blue); outline: none; background: var(--field); }
+.ed-title:focus { border-color: var(--line); background: var(--field); }
/* The file this deck is open AS — quieter than the deck title beside it.
Shows the BASE name only: every Bento file ends in ".bento.html", so the
@@ -393,15 +425,7 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
margin-top: 2px;
}
-.ed-row input[type='text'] {
- width: 110px;
- font: inherit;
- font-size: 12.5px;
- padding: 4px 6px;
- border: 1px solid var(--line);
- border-radius: 6px;
- color: var(--ink);
-}
+.ed-row input[type='text'] { width: 110px; }
/* ————— canvas ————— */
@@ -657,52 +681,16 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
color: var(--ink-2);
}
.ed-row > span { flex: none; }
-.ed-row input[type='number'], .ed-row select {
- width: 110px;
- font: inherit;
- font-size: 12.5px;
- padding: 4px 6px;
- border: 1px solid var(--line);
- border-radius: 6px;
- background: var(--field);
- color: var(--ink);
-}
-.ed-row input[type='color'] {
- width: 110px;
- height: 26px;
- padding: 1px 2px;
- border: 1px solid var(--line);
- border-radius: 6px;
- background: var(--field);
-}
+.ed-row input[type='number'], .ed-row select, .ed-row input[type='color'] { width: 110px; }
.ed-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.ed-mini { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
-.ed-mini input {
- width: 100%;
- min-width: 0;
- font: inherit;
- font-size: 12px;
- padding: 4px 5px;
- border: 1px solid var(--line);
- border-radius: 6px;
-}
+.ed-mini input { width: 100%; min-width: 0; padding: 0 5px; }
.ed-ops { display: flex; gap: 4px; margin-bottom: 10px; }
.ed-btn-icon { border: 1px solid var(--line); padding: 6px; }
-.ed-notes {
- width: 100%;
- min-height: 130px;
- font: inherit;
- font-size: 12.5px;
- line-height: 1.5;
- padding: 8px;
- border: 1px solid var(--line);
- border-radius: 8px;
- resize: vertical;
- color: var(--ink);
-}
+.ed-notes { width: 100%; min-height: 130px; }
.ed-hint {
font-size: 11.5px;
@@ -884,14 +872,7 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
/* wrap instead of stacking: three actions fit in one or two rows */
.ed-about-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-about-actions .ed-btn { max-width: 100%; }
-.ed-about-json {
- width: 100%;
- font: 11px/1.4 ui-monospace, Menlo, monospace;
- border: 1px solid var(--line);
- border-radius: 8px;
- padding: 8px;
- resize: vertical;
-}
+.ed-about-json { width: 100%; font: 11px/1.4 ui-monospace, Menlo, monospace; }
.ed-about-fine {
font-size: 10.5px;
line-height: 1.5;
@@ -1056,14 +1037,9 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
/* chart option JSON editor */
.ed-chart-json {
width: 100%;
- resize: vertical;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 11px;
line-height: 1.45;
- border: 1px solid var(--line);
- border-radius: 6px;
- padding: 8px;
- color: var(--ink);
}
.ed-chart-json.ed-invalid { border-color: #c9302c; outline: 1px solid #c9302c; }
@@ -1198,24 +1174,14 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
}
.ed-series-row .ed-series-name { flex: 1 1 auto; min-width: 0; }
.ed-series-row select { flex: 0 0 auto; }
-.ed-series-row input[type='text'],
-.ed-series-row select {
- height: 26px;
- border: 1px solid var(--line);
- border-radius: 6px;
- padding: 0 6px;
- font-size: 12px;
- background: var(--field);
- color: var(--ink);
-}
-.ed-series-row input[type='color'] { flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
-.ed-series-row .ed-pie-val { width: 62px; height: 26px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 12px; }
+.ed-series-row input[type='color'] { flex: 0 0 auto; width: 26px; padding: 0; }
+.ed-series-row .ed-pie-val { width: 62px; }
.ed-series-rm { flex: 0 0 auto; color: #9aa4b2; }
.ed-series-rm:hover { color: #c9302c; }
.ed-chart-add { margin: 4px 0 2px; }
.ed-chart-add .ed-btn { width: 100%; justify-content: center; font-size: 12px; }
.ed-axis-range { display: flex; gap: 6px; }
-.ed-axis-range input { width: 100%; height: 26px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 12px; }
+.ed-axis-range input { width: 100%; }
.ed-chart-grid-wrap { overflow-x: auto; margin: 2px 0; }
.ed-chart-grid { border-collapse: collapse; width: 100%; }
.ed-chart-grid th {
@@ -1229,17 +1195,7 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
white-space: nowrap;
}
.ed-chart-grid td { padding: 1px 2px; }
-.ed-chart-grid input {
- width: 100%;
- min-width: 52px;
- height: 24px;
- border: 1px solid var(--line);
- border-radius: 5px;
- padding: 0 5px;
- font-size: 12px;
- background: var(--field);
- color: var(--ink);
-}
+.ed-chart-grid input { width: 100%; min-width: 52px; padding: 0 5px; }
.ed-chart-grid td:first-child input { font-weight: 600; }
.ed-chart-grid .ed-btn-icon { padding: 2px; color: #9aa4b2; }
.ed-chart-grid .ed-btn-icon:hover { color: #c9302c; }
@@ -1463,16 +1419,7 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
.ed-comment-entry b { font-size: 12.5px; }
.ed-comment-entry .ed-comment-time { font-size: 11px; color: var(--muted); margin-inline-start: 5px; }
.ed-comment-entry p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
-.ed-comment-reply {
- width: 100%;
- margin-top: 10px;
- font: inherit;
- font-size: 12.5px;
- border: 1px solid var(--line);
- border-radius: 8px;
- padding: 7px 9px;
- resize: vertical;
-}
+.ed-comment-reply { width: 100%; margin-top: 10px; }
.ed-comment-pop-foot { display: flex; gap: 6px; margin-top: 8px; }
.ed-comment-pop-foot .ed-btn { border: 1px solid var(--line); flex: 1; justify-content: center; padding: 5px 6px; font-size: 12px; }
@@ -2228,16 +2175,7 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }
.ed-about-h { font-weight: 700; font-size: 13px; margin: 2px 0; }
.ed-about-meta { display: flex; align-items: center; gap: 8px; }
.ed-about-meta label { flex: 0 0 80px; font-size: 12px; color: var(--ink-2); }
-.ed-about-meta input {
- flex: 1;
- min-width: 0;
- font: inherit;
- font-size: 13px;
- padding: 5px 8px;
- border: 1px solid var(--line);
- border-radius: 6px;
- background: var(--field);
-}
+.ed-about-meta input { flex: 1; min-width: 0; }
/* collaborate popover: your-name field */
.ed-share-name {
@@ -2247,15 +2185,7 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }
font-size: 12px;
color: var(--muted);
}
-.ed-share-name input {
- flex: 1;
- min-width: 0;
- padding: 5px 8px;
- border: 1px solid var(--line);
- border-radius: 6px;
- font: inherit;
- font-size: 12.5px;
-}
+.ed-share-name input { flex: 1; min-width: 0; }
/* --- responsive topbar: labels give way, never a scrollbar ----------------
The tiers are CLASSES, not width breakpoints. editor.ts fitTopbar()
@@ -2569,7 +2499,10 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }
line-height: 1.2;
}
.ed-pwcard p, .ed-playercard p { font-size: 14px; line-height: 1.5; }
+/* The password gate is its own dark card on the boot splash, not the chrome:
+ it overrides the shared field look on purpose (and its height with it). */
.ed-pwcard input {
+ height: auto;
width: 100%;
padding: 12px 14px;
border-radius: 10px;
@@ -2615,15 +2548,7 @@ dialog.ed-pwdialog label {
font-weight: 600;
color: #334;
}
-dialog.ed-pwdialog input {
- display: block;
- width: 100%;
- margin-top: 4px;
- padding: 8px 10px;
- border: 1px solid #ccd;
- border-radius: 8px;
- font-size: 14px;
-}
+dialog.ed-pwdialog input { display: block; width: 100%; margin-top: 4px; }
dialog.ed-pwdialog .ed-pwerr { color: #C33; }
.ed-dialog-actions {
display: flex;
@@ -2773,10 +2698,7 @@ input.ed-toggle { width: 16px; height: 16px; accent-color: #5E7699; cursor: poin
.ed-lang-txt b { font-size: 13px; font-weight: 600; }
.ed-lang-txt span { font-size: 11.5px; color: var(--muted); }
.ed-lang-blurb { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: -2px 0 6px; }
-.ed-lang-search {
- width: 100%; margin: 4px 0 6px; padding: 7px 10px; font-size: 13px;
- border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
-}
+.ed-lang-search { width: 100%; margin: 4px 0 6px; }
.ed-lang-scroll {
max-height: 240px; overflow-y: auto;
/* Keep the row's action button clear of the scrollbar — without this the