gabriel / musehub public
_mists-docs.scss
187 lines 6.8 KB
Raw
sha256:27d91ce6191e753cb9f0dbd6b0b5d59dde18bc69fe10acc63bda269a0a0b238e docs(mists): #257 Mist Domain QA contract v2 (replay of 510… Opus 5.5 minor ⚠ breaking 8 days ago
1 // ── /muse/mists (musehub#257) ─────────────────────────────────────────────────────────────────────────────────
2 // Page-owned styles for the create-flow figure (V1) and the page's wrapping tables. The figure sits in the shared
3 // docs figure (.docfig, musehub#242 W7): server-rendered, complete without script, readable in DOM order, so it is
4 // its own text alternative. No motion. Theme tokens only; no state is carried by colour alone (a step that is not
5 // performed is dashed and carries a text label, and every failure branch prints its status).
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--mists .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--mists .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--mists .devdocs-section :is(p, li) code { color: var(--text-primary); }
31 .devdocs--mists .devdocs-phase-desc { color: var(--text-secondary); }
32 .devdocs--mists .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--mists .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--mists .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--mists :not(pre) > code { overflow-wrap: anywhere; }
59 .devdocs--mists .devdocs-callout > div { min-width: 0; }
60
61 // ── Wrapping reference tables ──────────────────────────────────────────────────────────────────────────────
62 // The shared .devdocs-table is a scrolling block with a purple, nowrap first column and a muted second column
63 // (2.2:1 on the light theme). These tables wrap on a phone instead of scrolling, and read in the primary colour.
64 .devdocs--mists .devdocs-table.devdocs-table--wrap {
65 display: table;
66 width: 100%;
67 overflow: visible;
68 table-layout: auto;
69
70 thead th { color: var(--text-secondary); }
71 th, td { overflow-wrap: anywhere; }
72 td { color: var(--text-primary); }
73 td:first-child,
74 td:nth-child(2) {
75 font-family: inherit;
76 font-size: 12px;
77 color: var(--text-primary);
78 white-space: normal;
79 }
80 td code { color: var(--text-primary); }
81 }
82
83 // Numbered lists in prose.
84 .devdocs--mists .devdocs-section ol { margin: var(--space-2) 0 var(--space-3); padding-left: var(--space-5); }
85 .devdocs--mists .devdocs-section ol li { margin-bottom: var(--space-1); }
86
87 // ── Create flow (V1) ───────────────────────────────────────────────────────────────────────────────────────
88 .docfig .mfig {
89 list-style: none;
90 margin: 0;
91 padding: 0;
92 display: grid;
93 gap: var(--space-3);
94 font-size: 13px;
95 color: var(--text-primary);
96 }
97
98 .docfig .mfig__step {
99 position: relative;
100 min-width: 0;
101 padding: var(--space-3);
102 border: 1px solid var(--border-default);
103 border-radius: 8px;
104 background: var(--bg-base);
105 }
106
107 // A connector line between consecutive steps.
108 .docfig .mfig__step + .mfig__step::before {
109 content: "";
110 position: absolute;
111 top: calc(-1 * var(--space-3));
112 left: calc(var(--space-3) + 10px);
113 height: var(--space-3);
114 border-left: 2px solid var(--border-default);
115 }
116
117 // The step the code does not perform: dashed outline plus a text label, never colour alone.
118 .docfig .mfig__step--missing { border-style: dashed; }
119
120 .docfig .mfig__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
121
122 .docfig .mfig__n {
123 display: inline-flex;
124 flex: none;
125 align-items: center;
126 justify-content: center;
127 width: 22px;
128 height: 22px;
129 border: 1.5px solid var(--text-secondary);
130 border-radius: 50%;
131 font-size: 12px;
132 font-weight: 700;
133 color: var(--text-primary);
134 }
135
136 .docfig .mfig__name { font-size: 14px; color: var(--text-primary); overflow-wrap: anywhere; }
137
138 .docfig .mfig__tag {
139 padding: 1px 6px;
140 border: 1px solid var(--text-secondary);
141 border-radius: 4px;
142 font-size: 11px;
143 font-weight: 700;
144 letter-spacing: 0.04em;
145 text-transform: uppercase;
146 color: var(--text-primary);
147 }
148
149 .docfig .mfig__detail { margin: var(--space-2) 0 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); overflow-wrap: anywhere; }
150
151 .docfig .mfig__fails {
152 display: grid;
153 gap: var(--space-2);
154 margin: var(--space-2) 0 0;
155 padding: 0 0 0 var(--space-3);
156 list-style: none;
157 border-left: 2px solid var(--border-default);
158 font-size: 13px;
159 line-height: 1.5;
160 color: var(--text-primary);
161 overflow-wrap: anywhere;
162 }
163
164 // The shared `.devdocs-section li` rule sets a larger size and a bottom margin; a branch follows its step's size.
165 .docfig .mfig__fails li { margin: 0; font-size: inherit; line-height: inherit; }
166
167 .docfig .mfig__status {
168 display: inline-block;
169 min-width: 3ch;
170 padding: 0 6px;
171 border: 1px solid var(--text-secondary);
172 border-radius: 4px;
173 font-family: var(--font-mono);
174 font-size: 12px;
175 font-weight: 700;
176 text-align: center;
177 color: var(--text-primary);
178 }
179
180 @media (forced-colors: active) {
181 .docfig .mfig__step,
182 .docfig .mfig__status,
183 .docfig .mfig__tag,
184 .docfig .mfig__n { border-color: CanvasText; }
185 .docfig .mfig__step + .mfig__step::before,
186 .docfig .mfig__fails { border-color: CanvasText; }
187 }
File History 1 commit
sha256:27d91ce6191e753cb9f0dbd6b0b5d59dde18bc69fe10acc63bda269a0a0b238e docs(mists): #257 Mist Domain QA contract v2 (replay of 510… Opus 5.5 minor ⚠ 8 days ago