_vision-docs.scss
sha256:4aa7b9e8b5efaedeca95e1d384878c61282a9ad77bd32077fc6dc326d9da1e7d
docs(vision): #258 Vision QA contract v2 — correct /muse/vi…
Sonnet 5.5
minor
⚠ breaking
8 days ago
| 1 | // ── /muse/vision (musehub#258) ──────────────────────────────────────────────────────────────────────────────── |
| 2 | // Page-owned styles for the MIDI dimension grid (V2). It sits in the shared docs figure (.docfig, musehub#242 W7): |
| 3 | // server-rendered, complete without script, readable in DOM order, so it is its own text alternative. No motion. |
| 4 | // Theme tokens only. Independence is never carried by colour alone: a non-independent dimension has a heavier |
| 5 | // start border and says "non-independent: blocks the rest" in text. |
| 6 | // |
| 7 | // Accent and status tokens never colour text here (below WCAG AA on the light theme, musehub#283): text stays on |
| 8 | // --text-primary / --text-secondary; the tokens only draw borders. |
| 9 | |
| 10 | // ── Interim contrast overrides (musehub#283), scoped to this page like the profiles, merge and shelves pages ─── |
| 11 | // Links in prose and cells, and inline code, fall back to shared tokens that are below AA on the light theme. |
| 12 | // Delete this block when #283 fixes the tokens. |
| 13 | .devdocs--vision .devdocs-callout { |
| 14 | a { |
| 15 | color: var(--text-primary); |
| 16 | text-decoration: underline; |
| 17 | text-underline-offset: 2px; |
| 18 | &:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; } |
| 19 | } |
| 20 | code { color: var(--text-primary); } |
| 21 | } |
| 22 | |
| 23 | .devdocs--vision .devdocs-section :is(p, li, td, figcaption) a { |
| 24 | color: var(--text-primary); |
| 25 | text-decoration: underline; |
| 26 | text-underline-offset: 2px; |
| 27 | &:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; } |
| 28 | } |
| 29 | |
| 30 | .devdocs--vision .devdocs-section :is(p, li) code { color: var(--text-primary); } |
| 31 | .devdocs--vision .devdocs-phase-desc { color: var(--text-secondary); } |
| 32 | .devdocs--vision .devdocs-phase-desc code { color: var(--text-primary); } |
| 33 | |
| 34 | // Breadcrumb and sidebar (shared markup): the shared tokens they use are below AA on the light theme (1.5 to 2.2:1). |
| 35 | // Same interim status as the block above; every docs page has the same defect. |
| 36 | .devdocs--vision .devdocs-breadcrumb { |
| 37 | color: var(--text-secondary); |
| 38 | span { color: var(--text-secondary); } |
| 39 | a { |
| 40 | color: var(--text-primary); |
| 41 | text-decoration: underline; |
| 42 | text-underline-offset: 2px; |
| 43 | &:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | .devdocs--vision .devdocs-nav { |
| 48 | .devdocs-nav-group-label, |
| 49 | .devdocs-nav-link--sub { color: var(--text-secondary); } |
| 50 | .devdocs-nav-link--active { |
| 51 | color: var(--text-primary); |
| 52 | font-weight: 600; |
| 53 | box-shadow: inset 2px 0 0 var(--color-accent); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // Long unbreakable tokens (paths, IDs, URLs) must wrap inside callouts and cells on a phone. |
| 58 | .devdocs--vision :not(pre) > code { overflow-wrap: anywhere; } |
| 59 | .devdocs--vision .devdocs-callout > div { min-width: 0; } |
| 60 | |
| 61 | // ── Existing Vision elements on the shared tokens (musehub#283, same interim status as above) ───────────────── |
| 62 | // Accent, purple and syntax-colour text on these panes is below AA (1.5 to 3.9:1). Text moves to the text tokens; |
| 63 | // meaning that colour used to carry is also in text (+/- prefixes, "Planned" labels, dashed borders). |
| 64 | .devdocs--vision .devdocs-phase-num { color: var(--text-secondary); } |
| 65 | .devdocs--vision .vision-pull em { color: var(--text-primary); } |
| 66 | .devdocs--vision .devdocs-code-header :is(.devdocs-code-lang, .devdocs-code-label) { color: var(--text-secondary); } |
| 67 | .devdocs--vision :is(.devdocs-code-block pre, .vision-compare-body, .vision-merge-agent-change) { |
| 68 | color: var(--text-primary); |
| 69 | [class^="tok-"] { color: var(--text-primary); } |
| 70 | .tok-dim, .tok-cmt { color: var(--text-secondary); } |
| 71 | } |
| 72 | .devdocs--vision .vision-compare-pane .vision-compare-label { color: var(--text-primary); } |
| 73 | .devdocs--vision .vision-merge-result :is(.vision-merge-result-icon, .vision-merge-result-text, .vision-merge-result-sub) { color: var(--text-primary); } |
| 74 | .devdocs--vision .vision-compare-badge { color: var(--text-primary); } |
| 75 | .devdocs--vision .vision-merge-header { color: var(--text-secondary); } |
| 76 | .devdocs--vision .vision-merge-agent-name { color: var(--text-primary); } |
| 77 | .devdocs--vision .vision-merge-agent-label { color: var(--text-secondary); } |
| 78 | .devdocs--vision .devdocs-section :is(p, li, figcaption, .vision-domain-card-desc) a { |
| 79 | color: var(--text-primary); |
| 80 | text-decoration: underline; |
| 81 | text-underline-offset: 2px; |
| 82 | &:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; } |
| 83 | } |
| 84 | .devdocs--vision .vision-domain-card .vision-domain-card-status { color: var(--text-primary); } |
| 85 | .devdocs--vision .vision-domain-card-desc { color: var(--text-secondary); } |
| 86 | .devdocs--vision .vision-domain-card--soon { opacity: 1; } |
| 87 | .devdocs--vision .vision-domain-card-name { color: var(--text-primary); } |
| 88 | |
| 89 | // ── MIDI dimension grid (V2) ──────────────────────────────────────────────────────────────────────────────── |
| 90 | .docfig .vdim__stats { margin: 0 0 var(--space-3); font-size: 13px; color: var(--text-secondary); } |
| 91 | .docfig .vdim__stats strong { color: var(--text-primary); font-family: var(--font-mono); } |
| 92 | |
| 93 | .docfig .vdim { |
| 94 | list-style: none; |
| 95 | margin: 0; |
| 96 | padding: 0; |
| 97 | display: grid; |
| 98 | grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); |
| 99 | gap: var(--space-2); |
| 100 | } |
| 101 | |
| 102 | .docfig .vdim__cell { |
| 103 | display: flex; |
| 104 | flex-direction: column; |
| 105 | gap: 2px; |
| 106 | min-width: 0; |
| 107 | padding: var(--space-2) var(--space-3); |
| 108 | border: 1px solid var(--border-default); |
| 109 | border-radius: 8px; |
| 110 | background: var(--bg-surface); |
| 111 | font-size: 12px; |
| 112 | line-height: 1.45; |
| 113 | color: var(--text-secondary); |
| 114 | |
| 115 | &--blocking { |
| 116 | border-left: 5px solid var(--color-accent); |
| 117 | background: var(--bg-overlay); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | .docfig .vdim__name { |
| 122 | font-family: var(--font-mono); |
| 123 | font-size: 13px; |
| 124 | font-weight: 700; |
| 125 | color: var(--text-primary); |
| 126 | background: none; |
| 127 | border: 0; |
| 128 | padding: 0; |
| 129 | align-self: flex-start; |
| 130 | overflow-wrap: anywhere; |
| 131 | } |
| 132 | |
| 133 | .docfig .vdim__alias { font-family: var(--font-mono); font-size: 11px; overflow-wrap: anywhere; } |
| 134 | .docfig .vdim__kind { font-weight: 600; color: var(--text-primary); } |
| 135 | |
| 136 | @media (forced-colors: active) { |
| 137 | .docfig .vdim__cell { border: 1px solid CanvasText; } |
| 138 | .docfig .vdim__cell--blocking { border-left-width: 5px; } |
| 139 | } |
File History
1 commit
sha256:4aa7b9e8b5efaedeca95e1d384878c61282a9ad77bd32077fc6dc326d9da1e7d
docs(vision): #258 Vision QA contract v2 — correct /muse/vi…
Sonnet 5.5
minor
⚠
8 days ago