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 | [estilo-save-status~="floating"] { |
| 19 | position: fixed; |
| 20 | inset-inline-end: var(--rst-sp-4); |
| 21 | inset-block-end: var(--rst-sp-4); |
| 22 | max-inline-size: min(22em, calc(100vw - var(--rst-sp-4) - var(--rst-sp-4))); |
| 23 | min-inline-size: 1px; |
| 24 | min-block-size: 1px; |
| 25 | pointer-events: none; |
| 26 | } |
| 27 | [estilo-save-status~="floating"]:not(:empty) { |
| 28 | padding: var(--rst-sp-2) var(--rst-sp-3); |
| 29 | border-radius: var(--rst-radius-sm); |
| 30 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); |
| 31 | background: var(--rst-tone-neutral-bg); |
| 32 | color: var(--rst-tone-neutral-fg); |
| 33 | } |
| 34 | [estilo-save-status~="floating"][data-state="failed"]:not(:empty) { |
| 35 | background: var(--rst-tone-negative-bg); |
| 36 | color: var(--rst-tone-negative-fg); |
| 37 | font-weight: 600; |
| 38 | } |
| 39 | @media print { |
| 40 | [estilo-save-status] { display: none; } |
| 41 | } |
| 42 | |