oficina / fichas Public

Clone
git clone https://amadan.net/oficina/fichas

Plain git — no account needed to clone.

Download

Download this file

1/* frame.css — the frame (level-up §3): estilo's stacked bar over the rail
2 and the work. The bar is estilo's (chrome.css); this file lays out what
3 sits under it, and the rail (R1: its rows keep the 16px icon column and
4 the label on one centre line, TestRailIconsSitOnTheTextsCentreLine).
5
6 Breakpoints (§3.3): from 1280px the rail is open (232px); from 800 to
7 1279px it folds to icons unless the reader chose otherwise (the
8 fichas-rail cookie, rendered as data-rail); below 800px it is gone and
9 the bar's Menu sheet carries the types. */
10
11/* The bar's own type links are the narrow Menu sheet's; on a wide screen
12 the rail has them. */
13@media (min-width: 800px) {
14 [estilo-bar-nav] { display: none; }
15}
16
17[fichas-app] {
18 --fichas-rail-w: 232px;
19 display: grid;
20 grid-template-columns: var(--fichas-rail-w) minmax(0, 1fr);
21 min-block-size: calc(100dvh - 56px);
22}
23[fichas-app][data-rail="rail"] { --fichas-rail-w: 56px; }
24@media (min-width: 800px) and (max-width: 1279.98px) {
25 [fichas-app]:not([data-rail]) { --fichas-rail-w: 56px; }
26}
27
28[fichas-main] { min-inline-size: 0; }
29[fichas-main] > [rst-page] { max-inline-size: none; }
30
31[fichas-rail] {
32 position: sticky;
33 inset-block-start: 56px;
34 align-self: start;
35 block-size: calc(100dvh - 56px);
36 display: flex;
37 flex-direction: column;
38 gap: var(--rst-sp-1);
39 padding: var(--rst-sp-3) var(--rst-sp-2);
40 border-inline-end: 1px solid var(--rst-line);
41 /* The page's own ground, not --rst-rail-bg: Calma declares that as
42 --rst-surface since estilo 487cadb, which would tint the rail
43 (estilo AGENTS.md, "bump estilo and rastrillo together"). */
44 background: var(--rst-bg);
45 overflow-y: auto;
46 box-sizing: border-box;
47}
48[fichas-rail-item] {
49 display: grid;
50 grid-template-columns: 16px minmax(0, 1fr) auto;
51 align-items: center;
52 /* spacing-allow: level-up spec R1, "its rows keep today's grid": the icon 10px from its label */
53 gap: 10px;
54 min-block-size: 36px;
55 /* spacing-allow: level-up spec R1, "its rows keep today's grid": the icon 10px in from the row's highlight */
56 padding: 0 10px;
57 border: 0;
58 border-radius: 8px;
59 background: none;
60 color: var(--rst-text-muted);
61 font: inherit;
62 font-size: var(--rst-fs-sm);
63 text-align: start;
64 text-decoration: none;
65 cursor: pointer;
66 inline-size: 100%;
67 box-sizing: border-box;
68}
69[fichas-rail-item] > .icon { inline-size: 16px; block-size: 16px; flex-shrink: 0; }
70[fichas-rail-item]:hover { background: var(--rst-surface-2); color: var(--rst-text); }
71[fichas-rail-item]:focus-visible { outline: 2px solid var(--rst-accent); outline-offset: -2px; }
72[fichas-rail-item][aria-current] { background: var(--rst-accent-soft); color: var(--rst-text); font-weight: 600; }
73[fichas-rail-item][aria-current] > .icon { color: var(--rst-accent); }
74[fichas-rail-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
75[fichas-rail-count] { font-size: var(--rst-fs-xs); font-variant-numeric: tabular-nums; color: var(--rst-text-faint, var(--rst-text-muted)); }
76[fichas-rail-new] { color: var(--rst-text-muted); }
77[fichas-rail-rule] { border: 0; border-block-start: 1px solid var(--rst-line); margin: var(--rst-sp-2) var(--rst-sp-2); }
78[fichas-rail-foot] { margin-block-start: auto; display: grid; }
79[fichas-kbd], [fichas-keys-dialog] kbd {
80 font: inherit;
81 font-size: var(--rst-fs-xs);
82 padding: 0 var(--rst-sp-1);
83 border: 1px solid var(--rst-line);
84 border-radius: 4px;
85 color: var(--rst-text-muted);
86 background: var(--rst-surface);
87}
88
89/* The fold: two buttons, one per state, and CSS shows the one that fits
90 what is on screen (Mapa build note 10). */
91[fichas-fold-to="open"] { display: none; }
92[fichas-app][data-rail="rail"] [fichas-fold-to="rail"] { display: none; }
93[fichas-app][data-rail="rail"] [fichas-fold-to="open"] { display: grid; }
94@media (min-width: 800px) and (max-width: 1279.98px) {
95 [fichas-app]:not([data-rail]) [fichas-fold-to="rail"] { display: none; }
96 [fichas-app]:not([data-rail]) [fichas-fold-to="open"] { display: grid; }
97}
98
99/* The rail folded to icons: the label stays in the accessibility tree
100 (and the row's title shows it), only the eye loses it. */
101[fichas-app][data-rail="rail"] [fichas-rail-item] { grid-template-columns: 16px; justify-content: center; padding: 0; }
102[fichas-app][data-rail="rail"] :is([fichas-rail-label], [fichas-rail-count], [fichas-kbd]) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
103@media (min-width: 800px) and (max-width: 1279.98px) {
104 [fichas-app]:not([data-rail]) [fichas-rail-item] { grid-template-columns: 16px; justify-content: center; padding: 0; }
105 [fichas-app]:not([data-rail]) :is([fichas-rail-label], [fichas-rail-count], [fichas-kbd]) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
106}
107
108/* Help's keys. */
109[fichas-keys-dialog] {
110 border: 0;
111 border-radius: 14px;
112 padding: var(--rst-sp-5);
113 max-inline-size: min(28rem, calc(100vw - 2rem));
114 background: var(--rst-surface);
115 color: var(--rst-text);
116 box-shadow: var(--rst-shadow-pop, 0 18px 40px -12px rgb(0 0 0 / 0.35));
117}
118[fichas-keys-dialog]::backdrop { background: rgb(15 20 30 / 0.35); }
119[fichas-keys-dialog] h2 { margin-block: 0 var(--rst-sp-3); font-size: var(--rst-fs-lg); }
120[fichas-keys-list] { display: grid; grid-template-columns: auto 1fr; gap: var(--rst-sp-2) var(--rst-sp-4); margin: 0 0 var(--rst-sp-4); }
121[fichas-keys-list] dt { white-space: nowrap; }
122[fichas-keys-list] dd { margin: 0; color: var(--rst-text-muted); }
123
124/* Below 800px the rail is gone: the bar's Menu sheet carries the types.
125 Last in the file, so it wins over the rail's own display. */
126@media (max-width: 799.98px) {
127 [fichas-app] { display: block; }
128 [fichas-rail] { display: none; }
129}
130
131/* estilo hides the brand's name in a stacked bar (the title has the
132 room), which leaves the brand link with no accessible name: its icon's
133 alt is empty. Kept for screen readers, hidden from the eye. axe-core's
134 link-name, LU10. To move into estilo. */
135[estilo-bar][estilo-bar] [estilo-bar-brand] [estilo-bar-name] {
136 display: inline;
137 position: absolute;
138 inline-size: 1px;
139 block-size: 1px;
140 overflow: hidden;
141 clip-path: inset(50%);
142 white-space: nowrap;
143}
144