oficina / estilo Public

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

Plain git — no account needed to clone.

Download

Download this file

1[estilo-save-status] {
2 box-sizing: border-box;
3 display: inline-block;
4 font-size: var(--rst-fs-sm);
5 line-height: 1.4;
6 margin: 0;
7 overflow-wrap: anywhere;
8}
9[estilo-save-status~="inline"] {
10 color: var(--rst-text-muted);
11 min-inline-size: 8ch;
12 min-block-size: 1em;
13}
14[estilo-save-status~="inline"]:not([data-state="saved"]) {
15 color: var(--rst-text);
16 font-weight: 600;
17}
18/* The subtitle under a large title (Docs on a phone, 2026-11-28): the
19 line's own size and weight, muted, so "Saved" and "Saving…" read as
20 the quiet state they are; the warning tone while it retries and the
21 negative tone, bold, once it has failed. The words carry the state, so
22 colour is never the only sign of it. It takes no room when idle. */
23[estilo-save-status~="subtitle"],
24[estilo-save-status~="subtitle"]:not([data-state="saved"]) {
25 min-inline-size: 0;
26 min-block-size: 0;
27 color: var(--rst-text-muted);
28 font-size: inherit;
29 font-weight: inherit;
30 line-height: inherit;
31}
32[estilo-save-status~="subtitle"][data-state="retrying"] { color: var(--rst-tone-warning-fg); }
33[estilo-save-status~="subtitle"][data-state="failed"] { color: var(--rst-tone-negative-fg); font-weight: 600; }
34[estilo-save-status~="floating"] {
35 position: fixed;
36 inset-inline-end: var(--rst-sp-4);
37 inset-block-end: var(--rst-sp-4);
38 max-inline-size: min(22em, calc(100vw - var(--rst-sp-4) - var(--rst-sp-4)));
39 min-inline-size: 1px;
40 min-block-size: 1px;
41 pointer-events: none;
42}
43[estilo-save-status~="floating"]:not(:empty) {
44 padding: var(--rst-sp-2) var(--rst-sp-3);
45 border-radius: var(--rst-radius-sm);
46 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
47 background: var(--rst-tone-neutral-bg);
48 color: var(--rst-tone-neutral-fg);
49}
50[estilo-save-status~="floating"][data-state="failed"]:not(:empty) {
51 background: var(--rst-tone-negative-bg);
52 color: var(--rst-tone-negative-fg);
53 font-weight: 600;
54}
55@media print {
56 [estilo-save-status] { display: none; }
57}
58