_shelves-docs.scss
sha256:56adfc888ae758960c3b8cf64dccb458d15a59a20505c0a97dc372867cd91404
Merge task/253-shelves-qa-v2 (#253 Shelves QA contract v2) …
Opus 5.5
minor
⚠ breaking
9 days ago
| 1 | // ── Shelf apply decision figure (musehub#253 V1) ────────────────────────────── |
| 2 | // Used only by /muse/shelves inside the shared docs figure (.docfig, musehub#242 W7). Two lanes |
| 3 | // of ordered rules (the first match decides) and a worked-example table; server-rendered and |
| 4 | // readable in DOM order without script, so the figure is its own text alternative. No motion. |
| 5 | // Theme tokens only. Accent and status tokens never colour text: on the light theme they are |
| 6 | // below WCAG AA as text (musehub#283), so text stays on --text-primary/--text-secondary and the |
| 7 | // accent only draws outlines. Paragraph and link colours of .devdocs-content are reset here for |
| 8 | // the same reason (doubled .docfig class: the page's paragraph rules are more specific). |
| 9 | |
| 10 | .shelfig { |
| 11 | display: grid; |
| 12 | gap: var(--space-4); |
| 13 | font-size: 13px; |
| 14 | color: var(--text-primary); |
| 15 | } |
| 16 | |
| 17 | .shelfig__lanes { |
| 18 | display: grid; |
| 19 | gap: var(--space-3); |
| 20 | grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); |
| 21 | align-items: start; |
| 22 | @media (max-width: 900px) { grid-template-columns: minmax(0, 1fr); } |
| 23 | } |
| 24 | |
| 25 | .shelfig__lane { |
| 26 | min-width: 0; |
| 27 | padding: var(--space-3); |
| 28 | border: 1px solid var(--border-default); |
| 29 | border-radius: 8px; |
| 30 | background: var(--bg-base); |
| 31 | } |
| 32 | |
| 33 | .docfig .shelfig__lane-title { |
| 34 | margin: 0 0 var(--space-2); |
| 35 | font-size: 13px; |
| 36 | font-weight: 700; |
| 37 | color: var(--text-primary); |
| 38 | } |
| 39 | |
| 40 | .shelfig__rules { |
| 41 | list-style: none; |
| 42 | margin: 0; |
| 43 | padding: 0; |
| 44 | display: grid; |
| 45 | gap: var(--space-2); |
| 46 | } |
| 47 | |
| 48 | .shelfig__rule { |
| 49 | min-width: 0; |
| 50 | padding: var(--space-2) var(--space-3); |
| 51 | border: 1px solid var(--border-default); |
| 52 | border-left: 3px solid var(--color-accent); |
| 53 | border-radius: 6px; |
| 54 | background: var(--bg-surface); |
| 55 | } |
| 56 | |
| 57 | .docfig .shelfig__q, |
| 58 | .docfig .shelfig__yes, |
| 59 | .docfig .shelfig__no, |
| 60 | .docfig .shelfig__note, |
| 61 | .docfig .shelfig__result { |
| 62 | margin: 0; |
| 63 | font-size: 12px; |
| 64 | line-height: 1.55; |
| 65 | color: var(--text-primary); |
| 66 | overflow-wrap: anywhere; |
| 67 | } |
| 68 | |
| 69 | .docfig .shelfig__q { display: flex; gap: var(--space-2); align-items: baseline; font-weight: 600; } |
| 70 | .docfig .shelfig__yes { margin-top: var(--space-1); } |
| 71 | .docfig .shelfig__no { margin-top: var(--space-1); color: var(--text-secondary); } |
| 72 | .docfig .shelfig__note { margin-top: var(--space-3); color: var(--text-secondary); } |
| 73 | |
| 74 | .shelfig__num { // outlined badge, like .dagfig__label (AA in both themes) |
| 75 | flex: none; |
| 76 | display: inline-grid; |
| 77 | place-items: center; |
| 78 | min-width: 20px; |
| 79 | height: 20px; |
| 80 | padding: 0 4px; |
| 81 | border: 1.5px solid var(--color-accent); |
| 82 | border-radius: 10px; |
| 83 | background: var(--bg-surface); |
| 84 | color: var(--text-primary); |
| 85 | font-family: var(--font-mono); |
| 86 | font-size: 11px; |
| 87 | font-weight: 700; |
| 88 | } |
| 89 | |
| 90 | .shelfig__yes-label { font-weight: 600; } |
| 91 | |
| 92 | .shelfig__out { |
| 93 | display: inline-block; |
| 94 | margin-right: 4px; |
| 95 | padding: 0 6px; |
| 96 | border: 1px solid var(--border-default); |
| 97 | border-radius: 4px; |
| 98 | background: var(--bg-overlay); |
| 99 | color: var(--text-primary); |
| 100 | font-family: var(--font-mono); |
| 101 | font-size: 11px; |
| 102 | font-weight: 600; |
| 103 | } |
| 104 | |
| 105 | .shelfig__out--skip { border-style: dashed; font-weight: 400; color: var(--text-secondary); } |
| 106 | |
| 107 | .docfig .shelfig code, |
| 108 | .docfig .shelfig p code { |
| 109 | padding: 0 4px; |
| 110 | border: 1px solid var(--border-default); |
| 111 | border-radius: 4px; |
| 112 | background: var(--bg-overlay); |
| 113 | color: var(--text-primary); |
| 114 | font-family: var(--font-mono); |
| 115 | font-size: 11px; |
| 116 | } |
| 117 | |
| 118 | .docfig .shelfig a, |
| 119 | .docfig .shelfig p a { |
| 120 | color: var(--text-primary); |
| 121 | text-decoration: underline; |
| 122 | text-underline-offset: 2px; |
| 123 | &:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; } |
| 124 | } |
| 125 | |
| 126 | .shelfig__example { // fits 320 px: fixed columns that wrap, never a scrolling table |
| 127 | width: 100%; |
| 128 | border-collapse: collapse; |
| 129 | table-layout: fixed; |
| 130 | font-size: 12px; |
| 131 | |
| 132 | caption { |
| 133 | caption-side: top; |
| 134 | padding-bottom: var(--space-2); |
| 135 | text-align: left; |
| 136 | font-size: 13px; |
| 137 | color: var(--text-secondary); |
| 138 | } |
| 139 | |
| 140 | th, |
| 141 | td { |
| 142 | padding: 6px 8px; |
| 143 | border-bottom: 1px solid var(--border-subtle); |
| 144 | text-align: left; |
| 145 | vertical-align: top; |
| 146 | line-height: 1.5; |
| 147 | color: var(--text-primary); |
| 148 | overflow-wrap: anywhere; |
| 149 | } |
| 150 | |
| 151 | // The generic th style uppercases text, which would rewrite the paths: reset it. |
| 152 | th { letter-spacing: normal; text-transform: none; } |
| 153 | thead th { font-size: 11px; font-weight: 600; color: var(--text-secondary); } |
| 154 | thead th:nth-child(1) { width: 32%; } |
| 155 | thead th:nth-child(2) { width: 28%; } |
| 156 | tbody th { font-weight: 400; } |
| 157 | |
| 158 | @media (max-width: 480px) { |
| 159 | font-size: 11px; |
| 160 | th, td { padding: 6px 3px; overflow-wrap: break-word; } |
| 161 | code, .shelfig__out { font-size: 10px; } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | .shelfig__rule-ref { font-weight: 600; white-space: nowrap; } |
| 166 | |
| 167 | .docfig .shelfig__result code { white-space: normal; overflow-wrap: anywhere; } |
| 168 | |
| 169 | @media (forced-colors: active) { |
| 170 | .shelfig__lane, |
| 171 | .shelfig__rule, |
| 172 | .shelfig__out, |
| 173 | .shelfig__num { border-color: CanvasText; } |
| 174 | .shelfig__rule { border-left-color: Highlight; } |
| 175 | } |
| 176 | |
| 177 | // Page callouts (warnings link product tickets): links and inline code fall back to the accent-link |
| 178 | // and purple tokens, below AA as text on the light theme (musehub#283). Scoped to this page as an |
| 179 | // interim, like the landing's --land-* roles (musehub#243); delete when #283 fixes the tokens. |
| 180 | .devdocs--shelves .devdocs-callout { |
| 181 | a { |
| 182 | color: var(--text-primary); |
| 183 | text-decoration: underline; |
| 184 | text-underline-offset: 2px; |
| 185 | &:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; } |
| 186 | } |
| 187 | code { color: var(--text-primary); } |
| 188 | } |
File History
2 commits
sha256:56adfc888ae758960c3b8cf64dccb458d15a59a20505c0a97dc372867cd91404
Merge task/253-shelves-qa-v2 (#253 Shelves QA contract v2) …
Opus 5.5
minor
⚠
9 days ago
sha256:aba9127573acf011a1da39099eb32f7b3eeeeb98719df179f5ca39bf70b51e4e
docs(shelves): QA contract v2 — engine-verified shelf contr…
Opus 5.5
minor
⚠
9 days ago