:root { color-scheme: light dark; } /* D14: a choice made by hand. Any other data-theme, "system" included, leaves the line above to follow the system. */ :root[data-theme="light"] { color-scheme: light; } :root[data-theme="dark"] { color-scheme: dark; } body { font-family: system-ui, sans-serif; margin: 0 auto; max-width: 120rem; padding: 1rem; line-height: 1.4; } h1 { font-size: 1.3rem; margin: 0; } header p { margin: 0.3rem 0 1rem; opacity: 0.75; } /* Room on the right for the light and dark buttons, so at the top of the page nothing is under them (§6.9). */ header { padding-right: 7rem; } #controls { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; } #search { flex: 1; padding: 0.35rem 0.5rem; font: inherit; } button { font: inherit; padding: 0.25rem 0.6rem; cursor: pointer; } #filters { display: flex; gap: 0.75rem; white-space: nowrap; } table { border-collapse: collapse; width: 100%; font-size: 0.9rem; } th, td { text-align: left; padding: 0.3rem 0.5rem; border-bottom: 1px solid rgba(128,128,128,0.3); } th { font-weight: 600; } td.cells { font-family: ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; } .status-one { opacity: 0.75; } .status-zero, .status-multiple, .status-unavailable { font-weight: 600; } /* Problems float in the bottom-right corner, a count until clicked (§6.6). The page keeps room below its content for them, so nothing stays hidden underneath; the room is the panel's largest size, not its current one. */ #problems { position: fixed; right: 1rem; bottom: 1rem; } #problems[hidden], #problems-panel[hidden] { display: none; } body[data-problems="minimized"] { padding-bottom: 4rem; } body[data-problems="open"] { padding-bottom: calc(40vh + 2rem); } #problems-badge, #problems-panel, #theme { background: Canvas; color: CanvasText; border: 1px solid rgba(128,128,128,0.4); box-shadow: 0 2px 8px rgba(0,0,0,0.2); } #problems-badge { border-radius: 999px; padding: 0.3rem 0.9rem; } #problems-panel { display: flex; flex-direction: column; width: min(36rem, 100vw - 2rem); max-height: 40vh; border-radius: 6px; } #problems-header { display: flex; justify-content: space-between; padding: 0.4rem 0.75rem; border: none; border-bottom: 1px solid rgba(128,128,128,0.4); background: none; color: inherit; font-weight: 600; } #diagnostics { margin: 0; padding: 0.5rem 0.75rem 0.5rem 1.9rem; overflow-y: auto; } #diagnostics li { margin-bottom: 0.2rem; } #diagnostics .where { font-family: ui-monospace, monospace; opacity: 0.8; } /* The field legend and the cells it explains. Twelve hues, in an order where each neighbouring pair stays apart for colour-blind readers; app.js hands them to columns left to right, so adjacent cells get adjacent hues. They are drawn as translucent tints, which keep the text readable on any background. */ .hue-0 { --hue: #2a78d6; } .hue-1 { --hue: #eb6834; } .hue-2 { --hue: #1baf7a; } .hue-3 { --hue: #eda100; } .hue-4 { --hue: #e87ba4; } .hue-5 { --hue: #008300; } .hue-6 { --hue: #4a3aa7; } .hue-7 { --hue: #e34948; } .hue-8 { --hue: #00a3c4; } .hue-9 { --hue: #a0521a; } .hue-10 { --hue: #a64fc2; } .hue-11 { --hue: #7a8a00; } /* Over a dark page the tints are stronger (D14, §6.9). The weakest tint, of #4a3aa7, then lifts off the page by as much as the weakest does in light, #eda100's: 25% over white is 1.21:1, 35% over Chrome's #121212 1.23:1 and over Firefox's #1c1b22 1.22:1, where 25% was 1.15:1. Text on a dark tint stays at 8.0:1 or more. The strong tint, for hover and stripes, is matched the same way: 45% is 1.42:1, 55% 1.44:1 and 1.41:1, with text at 5.0:1. */ .tinted { --tint: light-dark( color-mix(in srgb, var(--hue) 25%, transparent), color-mix(in srgb, var(--hue) 35%, transparent)); --tint-strong: light-dark( color-mix(in srgb, var(--hue) 45%, transparent), color-mix(in srgb, var(--hue) 55%, transparent)); background-color: var(--tint); border-radius: 2px; } /* Past twelve fields the hues repeat, told apart by a pattern. */ .tinted.pattern-1 { background-image: repeating-linear-gradient(45deg, var(--tint-strong) 0 2px, transparent 2px 6px); } .tinted.pattern-2 { outline: 1px dashed var(--hue); outline-offset: -1px; } .unaliased { opacity: 0.55; } /* Cells picked for a rule, and the row's buttons that add them (D12). */ .selectable { cursor: pointer; } .selectable:hover { background-color: var(--tint-strong); } .selected { box-shadow: 0 0 0 2px CanvasText; } td.row-actions { white-space: nowrap; width: 1%; } .row-action, #theme button { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; } .row-action + .row-action { margin-left: 0.25rem; } .row-action svg, #theme svg { width: 1.35rem; height: 1.35rem; } /* Light or dark, floating in the top-right corner like the problems in the bottom-right (D14, §6.9). */ #theme { position: fixed; top: 1rem; right: 1rem; display: flex; gap: 0.15rem; padding: 0.2rem; border-radius: 999px; } #theme button { border: none; border-radius: 999px; background: none; color: inherit; } /* The popovers below a row's button (D12, popover.js), and the rule picker. */ .below-button { position: fixed; inset: auto; margin: 0; padding: 0.25rem; min-width: 16rem; background: Canvas; color: CanvasText; border: 1px solid rgba(128,128,128,0.4); border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); } .below-button input { width: 100%; box-sizing: border-box; font: inherit; padding: 0.25rem 0.4rem; } #rule-prompt label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; } /* #c0392b is 5.4:1 on white but 3.4:1 on Chrome's dark #121212, so dark has a lighter red: 6.7:1 there and 6.1:1 on Firefox's #1c1b22 (D14). */ #rule-prompt .refusal { margin: 0 0 0.35rem; font-size: 0.85rem; color: light-dark(#c0392b, #ff6b5b); } #rule-prompt .refusal:empty { display: none; } #rule-picker ul { list-style: none; margin: 0.25rem 0 0; padding: 0; max-height: 50vh; overflow-y: auto; } #rule-picker li { padding: 0.2rem 0.4rem; border-radius: 4px; cursor: pointer; } #rule-picker li:hover, #rule-picker li.active, #theme [aria-pressed="true"] { background: color-mix(in srgb, CanvasText 12%, transparent); } #legend h2 { font-size: 1rem; margin: 0 0 0.4rem; } #fields { flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0 0 1rem; padding: 0; list-style: none; } #fields li { display: flex; align-items: center; gap: 0.35rem; } #fields .swatch { display: inline-block; width: 1.1rem; height: 1.1rem; } #fields .selector { opacity: 0.65; font-size: 0.85rem; } #editor h2 { font-size: 1rem; margin: 0 0 0.5rem; } #editor-controls { display: flex; gap: 0.5rem; align-items: center; margin: 0.75rem 0 1.25rem; } #state { opacity: 0.75; font-size: 0.9rem; } button:disabled { cursor: not-allowed; opacity: 0.5; } /* M1-UI-015: while an edit is in flight or unfinished, the results below are not the results for what the fields say. */ body[data-stale="true"] #rows, body[data-stale="true"] #summary { opacity: 0.45; } /* Opacity would let the page show through, so the corner dims its text. */ body[data-stale="true"] :is(#problems-badge, #problems-panel) { color: color-mix(in srgb, CanvasText 45%, Canvas); } #output h2 { font-size: 1rem; margin: 1.25rem 0 0.5rem; } #output-controls { display: flex; gap: 0.5rem; align-items: center; } #outcome { opacity: 0.75; font-size: 0.9rem; } #draft-note { margin: 0.6rem 0 0; padding: 0.4rem 0.6rem; border-left: 3px solid currentColor; opacity: 0.8; font-size: 0.9rem; } #journal { margin: 0.6rem 0 0; padding: 0.6rem; overflow-x: auto; font-family: ui-monospace, monospace; font-size: 0.85rem; border: 1px solid rgba(128,128,128,0.4); }