| 1 | /* fichas.css — this app's own CSS, beside estilo's theme. |
| 2 | * |
| 3 | * Everything here is something rastrillo's ui partials do not provide. |
| 4 | * It is prefixed fichas-, never rst-, so the line between the framework's |
| 5 | * vocabulary and this app's additions is visible in the markup itself. |
| 6 | * theme.css is estilo's generated theme and is pinned byte-for-byte by |
| 7 | * TestThemeIsEstilosForFichas, so nothing of fichas' own goes there. |
| 8 | * TestTemplatesUseOnlyDefinedAttributes pins every rst-* and fichas-* |
| 9 | * attribute a template writes to a rule in one of the app's stylesheets — |
| 10 | * the check that would have caught rst-stack and rst-muted, the two |
| 11 | * invented attributes that shipped the first index with a bullet point |
| 12 | * and an underlined purple link. (rst-stack is real since rastrillo |
| 13 | * v0.45.0: Fiesta's stack, in tokens.css.) |
| 14 | * |
| 15 | * Only tokens.css custom properties are used, so the Calma theme and the |
| 16 | * light/dark switch apply unchanged. |
| 17 | * |
| 18 | * Calma's rules (estilo AGENTS.md, "Theme"), applied here: |
| 19 | * - Inside an app, only the icons carry colour. Links are text-coloured, |
| 20 | * underlined on hover only; the accent is for the one primary action, |
| 21 | * the current selection's soft tint, and nothing else. |
| 22 | * - White cards on a cool off-white page, 12px shapes, a long low shadow, |
| 23 | * one grey text scale. |
| 24 | * - A list item is a semibold title over a muted line. No bullets. |
| 25 | */ |
| 26 | |
| 27 | /* ---- Quiet secondary text. The thing rst-muted was pretending to be. */ |
| 28 | [fichas-meta] { |
| 29 | color: var(--rst-text-muted); |
| 30 | font-size: var(--rst-fs-sm); |
| 31 | margin: 0; |
| 32 | } |
| 33 | |
| 34 | /* ---- The table view: a record grid. rastrillo has lists, not grids. */ |
| 35 | [fichas-grid-wrap] { |
| 36 | overflow-x: auto; |
| 37 | border: 1px solid var(--rst-line); |
| 38 | border-radius: var(--rst-radius); |
| 39 | background: var(--rst-surface); |
| 40 | } |
| 41 | [fichas-grid] { |
| 42 | inline-size: 100%; |
| 43 | border-collapse: collapse; |
| 44 | font-size: var(--rst-fs-sm); |
| 45 | } |
| 46 | [fichas-grid] th, |
| 47 | [fichas-grid] td { |
| 48 | padding: var(--rst-sp-2) var(--rst-sp-3); |
| 49 | text-align: start; |
| 50 | border-block-end: 1px solid var(--rst-line); |
| 51 | white-space: nowrap; |
| 52 | vertical-align: middle; |
| 53 | } |
| 54 | [fichas-grid] thead th { |
| 55 | position: sticky; |
| 56 | inset-block-start: 0; |
| 57 | background: var(--rst-surface-2); |
| 58 | font-weight: 600; |
| 59 | } |
| 60 | [fichas-grid] th small { |
| 61 | display: block; |
| 62 | font-weight: 400; |
| 63 | color: var(--rst-text-faint); |
| 64 | font-size: var(--rst-fs-xs); |
| 65 | } |
| 66 | [fichas-grid] tbody tr:hover { background: var(--rst-surface-2); } |
| 67 | [fichas-grid] tbody tr:last-child td { border-block-end: 0; } |
| 68 | [fichas-grid] td:first-child a { font-weight: 600; color: var(--rst-text); text-decoration: none; } |
| 69 | [fichas-grid] td:first-child a:hover { text-decoration: underline; } |
| 70 | [fichas-grid] [fichas-add-col] a { color: var(--rst-text-muted); text-decoration: none; font-weight: 500; } |
| 71 | [fichas-grid] [fichas-add-col] a:hover { color: var(--rst-text); } |
| 72 | [fichas-grid] [fichas-empty-cell] { color: var(--rst-text-faint); } |
| 73 | |
| 74 | /* ---- The cards view: a responsive grid of card faces. */ |
| 75 | [fichas-card-grid] { |
| 76 | display: grid; |
| 77 | grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); |
| 78 | gap: var(--rst-sp-4); |
| 79 | list-style: none; |
| 80 | padding: 0; |
| 81 | margin: 0; |
| 82 | } |
| 83 | [fichas-card-grid] > li { display: flex; } |
| 84 | [fichas-card-grid] [rst-card] { |
| 85 | /* rst-card is a bare container by design; rst-box's padding, so a card |
| 86 | face and a box read as the same material. */ |
| 87 | padding: 1.1rem 1.25rem; /* spacing-allow: rst-box's own padding (tokens.css), so a card face and a box are one material */ |
| 88 | box-shadow: var(--rst-shadow-lift); |
| 89 | border-radius: var(--rst-radius); |
| 90 | display: flex; |
| 91 | flex-direction: column; |
| 92 | gap: var(--rst-sp-2); |
| 93 | inline-size: 100%; |
| 94 | } |
| 95 | [fichas-card-title] { |
| 96 | display: flex; |
| 97 | align-items: baseline; |
| 98 | justify-content: space-between; |
| 99 | gap: var(--rst-sp-2); |
| 100 | margin: 0; |
| 101 | font-size: var(--rst-fs-base); |
| 102 | } |
| 103 | [fichas-card-title] a { color: var(--rst-text); text-decoration: none; } |
| 104 | [fichas-card-title] a:hover { text-decoration: underline; } |
| 105 | [fichas-card-quote] { |
| 106 | margin: 0; |
| 107 | padding-inline-start: var(--rst-sp-2); |
| 108 | border-inline-start: 2px solid var(--rst-line-strong); |
| 109 | color: var(--rst-text-muted); |
| 110 | font-size: var(--rst-fs-sm); |
| 111 | } |
| 112 | |
| 113 | /* ---- Toolbar row: the view switch on one side, actions on the other. */ |
| 114 | [fichas-toolbar] { |
| 115 | display: flex; |
| 116 | flex-wrap: wrap; |
| 117 | align-items: center; |
| 118 | justify-content: space-between; |
| 119 | gap: var(--rst-sp-3); |
| 120 | } |
| 121 | /* The view switch sits in the row, so rastrillo's margin under a block of |
| 122 | tabs (since v0.35, kept by v0.42) only pushes the row apart and lifts |
| 123 | the tabs off its centre line: Calendar's 18px toolbar gap (#48). */ |
| 124 | [fichas-toolbar] > [rst-seg-tabs] { margin-block: 0; } |
| 125 | |
| 126 | /* ---- Show view: the record's story beside its facts. */ |
| 127 | [fichas-split] { |
| 128 | display: grid; |
| 129 | grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); |
| 130 | gap: var(--rst-sp-5); |
| 131 | align-items: start; |
| 132 | } |
| 133 | @media (max-width: 52rem) { [fichas-split] { grid-template-columns: 1fr; } } |
| 134 | /* rst-box brings its own vertical margin; a flex gap on top of it doubled |
| 135 | every space on the show page. Let the boxes space themselves. */ |
| 136 | [fichas-split] > * { min-inline-size: 0; } |
| 137 | [fichas-split] > * > [rst-box]:first-child { margin-block-start: 0; } |
| 138 | |
| 139 | [fichas-timeline] { |
| 140 | list-style: none; |
| 141 | padding: 0; |
| 142 | margin: 0; |
| 143 | display: flex; |
| 144 | flex-direction: column; |
| 145 | gap: var(--rst-sp-3); |
| 146 | } |
| 147 | [fichas-timeline] > li { |
| 148 | display: grid; |
| 149 | grid-template-columns: 7.5rem 1fr; |
| 150 | gap: var(--rst-sp-3); |
| 151 | } |
| 152 | [fichas-timeline] time { color: var(--rst-text-muted); font-size: var(--rst-fs-sm); } |
| 153 | [fichas-timeline] p { margin: 0; } |
| 154 | |
| 155 | [fichas-cite] { |
| 156 | font-size: var(--rst-fs-xs); |
| 157 | vertical-align: super; |
| 158 | color: var(--rst-text-muted); |
| 159 | text-decoration: none; |
| 160 | } |
| 161 | [fichas-cite]:hover { color: var(--rst-text); text-decoration: underline; } |
| 162 | |
| 163 | /* ---- Card layout editor: options beside a live preview. */ |
| 164 | [fichas-layout-editor] { |
| 165 | display: grid; |
| 166 | grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); |
| 167 | gap: var(--rst-sp-5); |
| 168 | align-items: start; |
| 169 | } |
| 170 | @media (max-width: 52rem) { [fichas-layout-editor] { grid-template-columns: 1fr; } } |
| 171 | |
| 172 | /* ---- A destructive action set apart at the foot of an edit page. */ |
| 173 | [fichas-danger-zone] { |
| 174 | padding-block-start: var(--rst-sp-4); |
| 175 | border-block-start: 1px solid var(--rst-line); |
| 176 | } |
| 177 | |
| 178 | /* ---- Calma's app bar: icon + app name + quiet context, one action. */ |
| 179 | [fichas-appbar] { |
| 180 | display: flex; |
| 181 | align-items: center; |
| 182 | justify-content: space-between; |
| 183 | gap: var(--rst-sp-3); |
| 184 | } |
| 185 | /* The page's header, either shape: what follows it opens the page's |
| 186 | content, as after rastrillo's rst-page-header (Fiesta's stack table, |
| 187 | "anything after the page header"). */ |
| 188 | [rst-stack] > :is([fichas-appbar], [fichas-page-head]) + :not([hidden]) { --rst-stack-section: var(--rst-sp-5); } |
| 189 | [fichas-appbar-title] { |
| 190 | display: flex; |
| 191 | align-items: baseline; |
| 192 | gap: var(--rst-sp-2); |
| 193 | margin: 0; |
| 194 | font-size: 1.5rem; |
| 195 | font-weight: 700; |
| 196 | letter-spacing: -0.01em; |
| 197 | } |
| 198 | [fichas-appbar-title] span { |
| 199 | font-size: var(--rst-fs-base); |
| 200 | font-weight: 400; |
| 201 | color: var(--rst-text-muted); |
| 202 | letter-spacing: 0; |
| 203 | } |
| 204 | [fichas-appbar-actions] { display: flex; gap: var(--rst-sp-2); } |
| 205 | |
| 206 | /* ---- Links in running text: text-coloured, underline on hover. */ |
| 207 | /* A link in running text: text-coloured (Calma: only icons carry colour) |
| 208 | but always underlined, faintly, so it reads as a link before it is |
| 209 | hovered (UX review, 2026-11-12: "Keep it" and "Edit" read as prose). */ |
| 210 | [fichas-link] { |
| 211 | color: var(--rst-text); |
| 212 | text-decoration: underline; |
| 213 | text-decoration-color: color-mix(in srgb, var(--rst-text) 30%, transparent); |
| 214 | text-decoration-thickness: 1px; |
| 215 | text-underline-offset: 0.2em; |
| 216 | } |
| 217 | [fichas-link]:hover { text-decoration-color: currentColor; } |
| 218 | |
| 219 | /* ---- The table's density (listprefs.go). Comfortable is the default: |
| 220 | room to read a row (Paul, 2026-11-12: the old rows were "a bit |
| 221 | squished"). Compact fits more on a screen, for those who want it. */ |
| 222 | [fichas-grid][data-density="comfortable"] { font-size: 0.84375rem; } |
| 223 | [fichas-grid][data-density="comfortable"] th, |
| 224 | [fichas-grid][data-density="comfortable"] td { padding: 0.8125rem 0.6875rem; /* spacing-allow: the grid's canvas, its comfortable row height (Paul, 2026-11-12) */ } |
| 225 | [fichas-grid][data-density="comfortable"] thead th { font-size: var(--rst-fs-sm); padding-block: 0.625rem; /* spacing-allow: the grid's canvas, its header row at comfortable density */ } |
| 226 | [fichas-grid][data-density="compact"] th, |
| 227 | [fichas-grid][data-density="compact"] td { padding: 0.3125rem 0.625rem; /* spacing-allow: the grid's canvas, its compact row height */ } |
| 228 | |
| 229 | /* ---- A row opens its card: the title's link is stretched over the |
| 230 | whole row, so it works with scripts off, middle-clicks into a new tab, |
| 231 | and stays one tab stop. A link of the row's own (a domain) sits above |
| 232 | the stretch and keeps working. The row shows the focus ring. |
| 233 | Accepted trade-offs (Paul asked for whole-row clicks): text in a row |
| 234 | cannot be selected by dragging, and a date cell's title tooltip is not |
| 235 | reachable by hover; the card page shows both. */ |
| 236 | [fichas-grid] tbody tr { position: relative; } |
| 237 | [fichas-row-link]::after { content: ""; position: absolute; inset: 0; } |
| 238 | [fichas-grid] tbody td a:not([fichas-row-link]) { position: relative; z-index: 1; } |
| 239 | [fichas-grid] tbody tr:hover [fichas-row-link] { text-decoration: none; } |
| 240 | [fichas-row-link]:focus-visible { outline: none; } |
| 241 | [fichas-grid] tbody tr:has([fichas-row-link]:focus-visible) { |
| 242 | outline: 2px solid var(--rst-accent); |
| 243 | outline-offset: -2px; |
| 244 | } |
| 245 | |
| 246 | /* ---- The View menu: density and columns, beside Fields. */ |
| 247 | [fichas-toolbar-end] { display: flex; align-items: center; gap: var(--rst-sp-2); } |
| 248 | [fichas-view-menu] { position: relative; } |
| 249 | /* The panel itself is not capped (the dropdown's 320px scroll would carry |
| 250 | the apply button away); the checklist scrolls instead, so a type with |
| 251 | many fields keeps the button in view. */ |
| 252 | [fichas-view-panel] { min-inline-size: 15rem; max-block-size: none; overflow: visible; padding: var(--rst-sp-3); } |
| 253 | [fichas-view-panel] hr { margin-block: var(--rst-sp-3); } |
| 254 | [fichas-view-heading] { |
| 255 | margin: 0 0 var(--rst-sp-2); |
| 256 | padding: 0; |
| 257 | color: var(--rst-text-muted); |
| 258 | font-size: var(--rst-fs-xs); |
| 259 | font-weight: 600; |
| 260 | } |
| 261 | [fichas-view-seg] { |
| 262 | display: grid; |
| 263 | grid-template-columns: 1fr 1fr; |
| 264 | /* spacing-allow: a hairline of the track between and around the pressed segment */ |
| 265 | gap: 2px; |
| 266 | /* spacing-allow: the same hairline of track around the segments */ |
| 267 | padding: 2px; |
| 268 | border-radius: 8px; |
| 269 | background: var(--rst-surface-2); |
| 270 | } |
| 271 | [fichas-view-seg] button { |
| 272 | min-block-size: 2rem; |
| 273 | padding: var(--rst-sp-1) var(--rst-sp-2); |
| 274 | border: 0; |
| 275 | border-radius: 6px; |
| 276 | background: none; |
| 277 | color: var(--rst-text-muted); |
| 278 | font: inherit; |
| 279 | font-size: var(--rst-fs-sm); |
| 280 | font-weight: 600; |
| 281 | text-align: center; /* the dropdown sets its rows' text to the start */ |
| 282 | cursor: pointer; |
| 283 | } |
| 284 | [fichas-view-seg] button[aria-pressed="true"] { |
| 285 | background: var(--rst-surface); |
| 286 | color: var(--rst-text); |
| 287 | box-shadow: 0 1px 2px rgb(23 32 60 / 0.12); |
| 288 | } |
| 289 | [fichas-view-columns] { margin: 0 0 var(--rst-sp-3); padding: 0; border: 0; max-block-size: min(18rem, 50vh); overflow-y: auto; } |
| 290 | [fichas-view-check] { |
| 291 | display: flex; |
| 292 | align-items: center; |
| 293 | min-block-size: 2rem; |
| 294 | gap: var(--rst-sp-2); |
| 295 | padding: var(--rst-sp-1) 0; |
| 296 | font-size: var(--rst-fs-sm); |
| 297 | cursor: pointer; |
| 298 | } |
| 299 | /* A phone's finger: the View menu's targets at 44px (level-up §5.8). */ |
| 300 | @media (max-width: 799.98px) { |
| 301 | [fichas-view-seg] button, [fichas-view-check] { min-block-size: 44px; } |
| 302 | } |
| 303 | [fichas-view-check]:has(input:disabled) { color: var(--rst-text-muted); cursor: default; } |
| 304 | /* The dropdown styles every button in it as a menu row; this one is the |
| 305 | panel's action, filled as a primary is. */ |
| 306 | [fichas-view-panel] [fichas-view-apply] { |
| 307 | padding: var(--rst-sp-2) var(--rst-sp-3); |
| 308 | border-radius: var(--rst-radius-sm); |
| 309 | background: var(--rst-accent); |
| 310 | color: var(--rst-on-accent); |
| 311 | font-weight: 600; |
| 312 | text-align: center; |
| 313 | } |
| 314 | [fichas-view-panel] [fichas-view-apply]:hover { background: var(--rst-accent-strong); } |
| 315 | |
| 316 | /* ---- Sidebar icons on the text's centre line, not above its baseline. */ |
| 317 | /* rastrillo v0.35 sets the rail's links to display: block at |
| 318 | [rst-shell-sidebar] specificity, which put every icon on the text's |
| 319 | baseline, 3.5px high (Paul, 2026-11-12: "that new type icon is off"). |
| 320 | TestRailIconsSitOnTheTextsCentreLine measures it. */ |
| 321 | [rst-shell-sidebar] [rst-shell-nav] a { display: flex; align-items: center; gap: var(--rst-sp-2); } |
| 322 | [rst-shell-sidebar] [rst-shell-nav] a .icon { flex-shrink: 0; } |
| 323 | |
| 324 | /* ---- A many-of-many choice as a quiet checklist. The choice-card |
| 325 | component tints every checked option with the accent, which is right |
| 326 | for one-of-few and far too loud for five-of-eight under Calma. */ |
| 327 | [fichas-checklist] { |
| 328 | border: 0; |
| 329 | padding: 0; |
| 330 | margin: 0; |
| 331 | display: flex; |
| 332 | flex-direction: column; |
| 333 | gap: var(--rst-sp-2); |
| 334 | } |
| 335 | [fichas-checklist] legend { font-weight: 600; margin-block-end: var(--rst-sp-2); } |
| 336 | |
| 337 | /* ---- A form's measure: fields read as a column, not a banner. */ |
| 338 | [fichas-form] { max-inline-size: 40rem; } |
| 339 | |
| 340 | /* ---- Sortable headers: the header IS the control, in text colour. */ |
| 341 | [fichas-grid] th a { color: inherit; text-decoration: none; } |
| 342 | [fichas-grid] th a:hover { text-decoration: underline; } |
| 343 | [fichas-grid] th[aria-sort] a { color: var(--rst-text); } |
| 344 | |
| 345 | /* ---- Long text keeps its line breaks; on a card face it is cut short. */ |
| 346 | [fichas-prose] { white-space: pre-line; } |
| 347 | [fichas-clamp] { |
| 348 | display: -webkit-box; |
| 349 | -webkit-line-clamp: 2; |
| 350 | -webkit-box-orient: vertical; |
| 351 | overflow: hidden; |
| 352 | } |
| 353 | |
| 354 | /* ---- A live region is a wrapper for swapping, not for layout: the filter |
| 355 | menus inside the list bar stay flex items of the bar. */ |
| 356 | #list-filters { display: contents; } |
| 357 | |
| 358 | |
| 359 | /* ---- Depth and light: what Docs' richer UI brought (2026-11-11/12), |
| 360 | chosen for Fichas' rail by Paul on 2026-11-12 from the looks mock-up. |
| 361 | - The light (Docs' brand/light.css): the values rastrillo's depth |
| 362 | styles read, which Calma does not declare, so light.js lights the |
| 363 | buttons and cards as it lights Docs'. |
| 364 | - The controls (estilo chrome.css, "the controls set", I2), at page |
| 365 | scale: pills lit from above; the one primary filled, its shadow |
| 366 | tinted by its own accent; Table/Cards a pill of pills; the search a |
| 367 | pill; the grid a card. */ |
| 368 | :root { |
| 369 | --rst-sheen-fill: light-dark(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)); |
| 370 | --rst-sheen-plain: light-dark(color-mix(in srgb, var(--rst-accent) 10%, transparent), rgba(255, 255, 255, 0.025)); |
| 371 | --rst-light-rim: light-dark(color-mix(in srgb, var(--rst-accent) 38%, var(--rst-line)), color-mix(in srgb, var(--rst-accent) 18%, #4a4a4a)); |
| 372 | --rst-light-wash: light-dark(color-mix(in srgb, var(--rst-accent) 4%, transparent), rgba(255, 255, 255, 0.01)); |
| 373 | } |
| 374 | [rst-page] [rst-btn] { |
| 375 | border-radius: 999px; |
| 376 | padding-inline: var(--rst-sp-4); |
| 377 | font-weight: 600; |
| 378 | box-shadow: |
| 379 | inset 0 1px 0 light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.06)), |
| 380 | 0 1px 2px rgb(23 32 60 / 0.08); |
| 381 | } |
| 382 | [rst-page] [rst-btn]:not([rst-btn~="primary"]):not([rst-btn~="danger"]) { |
| 383 | border-color: transparent; |
| 384 | background-color: var(--rst-surface); |
| 385 | color: var(--rst-text); |
| 386 | box-shadow: |
| 387 | inset 0 1px 0 light-dark(rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.06)), |
| 388 | 0 0 0 1px var(--rst-line), |
| 389 | 0 1px 2px rgb(23 32 60 / 0.08); |
| 390 | } |
| 391 | [rst-page] [rst-btn]:not([rst-btn~="primary"]):not([rst-btn~="danger"]):hover { background-color: var(--rst-surface-2); } |
| 392 | [rst-page] [rst-btn~="primary"] { |
| 393 | box-shadow: |
| 394 | inset 0 1px 0 rgb(255 255 255 / 0.22), |
| 395 | 0 1px 1px rgb(23 32 60 / 0.10), |
| 396 | 0 8px 18px -8px light-dark(color-mix(in srgb, var(--rst-accent) 80%, transparent), color-mix(in srgb, var(--rst-accent) 30%, transparent)); |
| 397 | } |
| 398 | [rst-page] [rst-btn~="primary"]:hover { background-color: var(--rst-accent-strong); } |
| 399 | [rst-page] [rst-seg-tabs] { |
| 400 | border-radius: 999px; |
| 401 | padding: var(--rst-sp-1); |
| 402 | background: var(--rst-surface-2); |
| 403 | box-shadow: inset 0 1px 2px rgb(23 32 60 / 0.08); |
| 404 | } |
| 405 | [rst-page] [rst-seg-tabs] a { border-radius: 999px; padding-inline: var(--rst-sp-4); } |
| 406 | [rst-page] [rst-seg-tabs] a[aria-current] { |
| 407 | background: var(--rst-surface); |
| 408 | color: var(--rst-text); |
| 409 | box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.08)), 0 1px 3px rgb(23 32 60 / 0.14); |
| 410 | } |
| 411 | [rst-page] [rst-lbar] { background: none; border-bottom: 0; padding-inline: 0; } |
| 412 | [rst-page] [rst-lbar] [rst-search] { |
| 413 | border-color: transparent; |
| 414 | border-radius: 999px; |
| 415 | padding-inline-start: var(--rst-sp-3); |
| 416 | box-shadow: 0 0 0 1px var(--rst-line), inset 0 1px 2px rgb(23 32 60 / 0.06); |
| 417 | } |
| 418 | [rst-page] [rst-lbar] [rst-search]:focus-within { box-shadow: 0 0 0 2px var(--rst-accent); } |
| 419 | [rst-page] [rst-lbar] [rst-btn], |
| 420 | [rst-page] [rst-lbar] summary { border-radius: 999px; } |
| 421 | [rst-page] [fichas-grid-wrap] { |
| 422 | border: 0; |
| 423 | border-radius: 14px; |
| 424 | box-shadow: 0 0 0 1px var(--rst-line), 0 12px 28px -18px rgb(23 32 60 / 0.25); |
| 425 | } |
| 426 | |
| 427 | /* ---- A number field: figures line up as they are typed. */ |
| 428 | [fichas-number] { font-variant-numeric: tabular-nums; } |
| 429 | |
| 430 | /* ---- Add a field: the choices box only while Choice is picked, and the |
| 431 | storage question tucked under Advanced (UX review, 2026-11-12). */ |
| 432 | [fichas-form]:has(input[name="kind"]:checked:not([value="enum"])) [fichas-choice-options] { display: none; } |
| 433 | /* The wrapper is the form stack's block, so the stack spaces it, not the |
| 434 | field's own margins inside it. */ |
| 435 | [fichas-choice-options] > [rst-field] { margin: 0; } |
| 436 | [fichas-advanced] > summary { |
| 437 | cursor: pointer; |
| 438 | color: var(--rst-text-muted); |
| 439 | font-size: var(--rst-fs-sm); |
| 440 | font-weight: 600; |
| 441 | } |
| 442 | /* Under Advanced, its blocks each sit one step below the last, in place |
| 443 | of their own margins. */ |
| 444 | [fichas-advanced] > :not(summary) { margin-block: var(--rst-sp-3) 0; } |
| 445 | |