gabriel / musehub public
_profiles-docs.scss
180 lines 7.7 KB
Raw
sha256:4294c765f86bae7ca565b02af974c56bcd0e4288a71fcf1e3038231106f56ec1 docs(profiles): #256 Identity Profiles QA contract v2 (repl… Opus 5.5 minor ⚠ breaking 9 days ago
1 // ── /muse/profiles (musehub#256) ──────────────────────────────────────────────
2 // Page-owned styles for the Spectral Sigil anatomy figure (V1) and the page's wrapping tables. The figure sits in
3 // the shared docs figure (.docfig, musehub#242 W7): server-rendered, complete without script, readable in DOM
4 // order, so it is its own text alternative. No motion. Theme tokens only. The sigil SVGs are the subject of the
5 // figure: they draw their own colours (a dark rounded square), the same in both themes.
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 and inset bars.
9
10 // ── Interim contrast overrides (musehub#283), scoped to this page like the merge and shelves pages ──────────
11 // Links in prose and cells, inline code and code-block labels fall back to shared tokens that are below AA on the
12 // light theme. Delete this block when #283 fixes the tokens.
13 .devdocs--profiles .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--profiles .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--profiles .devdocs-section :is(p, li) code { color: var(--text-primary); }
31 .devdocs--profiles .devdocs-code-block pre,
32 .devdocs--profiles .devdocs-code-block pre code { color: var(--text-primary); }
33 .devdocs--profiles .devdocs-code-header :is(.devdocs-code-lang, .devdocs-code-label) { color: var(--text-secondary); }
34 .devdocs--profiles .devdocs-phase-desc { color: var(--text-secondary); }
35
36 // Long unbreakable tokens (paths, hex digests) must wrap inside callouts and cells on a phone.
37 .devdocs--profiles :not(pre) > code { overflow-wrap: anywhere; }
38 .devdocs--profiles .devdocs-callout > div { min-width: 0; }
39
40 // ── Wrapping reference tables ──────────────────────────────────────────────────────────────────────────────
41 // The shared .devdocs-table is a scrolling block with a purple, nowrap first column and a muted second column
42 // (2.2:1 on the light theme). These tables wrap on a phone instead of scrolling, and read in the primary colour.
43 .devdocs--profiles .devdocs-table.devdocs-table--wrap {
44 display: table;
45 width: 100%;
46 overflow: visible;
47 table-layout: auto;
48
49 thead th { color: var(--text-secondary); }
50 th, td { overflow-wrap: anywhere; }
51 td { color: var(--text-primary); }
52 td:first-child,
53 td:nth-child(2) {
54 font-family: inherit;
55 font-size: 12px;
56 color: var(--text-primary);
57 white-space: normal;
58 }
59 td code { color: var(--text-primary); }
60 }
61
62 // Plain (non-wrapping) tables on this page still read in the primary colour.
63 .devdocs--profiles .devdocs-table {
64 thead th { color: var(--text-secondary); }
65 td, td:first-child, td:nth-child(2) { color: var(--text-primary); }
66 td code { color: var(--text-primary); }
67 }
68
69 // ── Spectral Sigil anatomy (V1) ──────────────────────────────────────────────────────────────────────────────
70 .pfig {
71 display: grid;
72 gap: var(--space-4);
73 grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
74 font-size: 13px;
75 color: var(--text-primary);
76 }
77
78 .docfig .pfig__card {
79 min-width: 0;
80 padding: var(--space-3);
81 border: 1px solid var(--border-default);
82 border-radius: 8px;
83 background: var(--bg-base);
84 }
85
86 .docfig .pfig__name { margin: 0 0 var(--space-2); font-size: 13px; font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; }
87
88 .pfig__art {
89 display: block;
90 width: 128px;
91 max-width: 100%;
92 margin: 0 auto var(--space-2);
93 border-radius: 12px;
94 line-height: 0;
95
96 svg { display: block; width: 100%; height: auto; }
97 }
98
99 .docfig .pfig__facts { margin: var(--space-2) 0 0; font-size: 12px; line-height: 1.5; color: var(--text-secondary); overflow-wrap: anywhere; }
100 .docfig .pfig__facts strong { color: var(--text-primary); }
101
102 // 32 identity bytes, 8 per row: the cell shows the byte index and says "read" or "not read" in text.
103 .pfig__bytes {
104 list-style: none;
105 margin: var(--space-2) 0 0;
106 padding: 0;
107 display: grid;
108 grid-template-columns: repeat(8, minmax(0, 1fr));
109 gap: 3px;
110 }
111
112 .pfig__byte {
113 min-width: 0;
114 padding: 2px 0 3px;
115 border: 1px solid var(--border-default);
116 border-top-width: 3px;
117 border-radius: 4px;
118 background: var(--bg-surface);
119 text-align: center;
120 line-height: 1.2;
121 color: var(--text-primary);
122 }
123
124 .pfig__idx { display: block; font-size: 11px; font-weight: 700; font-family: var(--font-mono); }
125 .pfig__state { display: block; font-size: 9px; color: var(--text-secondary); }
126
127 .pfig__byte--hue { border-top-color: var(--color-accent); }
128 .pfig__byte--core { border-top-color: var(--color-success); }
129 .pfig__byte--rings { border-top-color: var(--color-warning); }
130 .pfig__byte--dots { border-top-color: var(--text-primary); }
131 .pfig__byte--none { border-top-color: var(--border-strong); }
132
133 // A byte the render does not read: dashed outline and a flat background, in addition to the text "not read".
134 .pfig__byte--unread { border-style: dashed; border-top-style: solid; background: transparent; }
135
136 .pfig__legend {
137 width: 100%;
138 margin: var(--space-4) 0 0;
139 border-collapse: collapse;
140 font-size: 12px;
141
142 caption { caption-side: top; padding-bottom: var(--space-2); text-align: left; font-size: 13px; color: var(--text-secondary); }
143 th, td { padding: 5px 8px; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: top; line-height: 1.5; color: var(--text-primary); }
144 thead th { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
145 tbody th { font-weight: 600; white-space: nowrap; }
146 }
147
148 .pfig__swatch {
149 display: inline-block;
150 width: 14px;
151 height: 6px;
152 margin-right: 6px;
153 vertical-align: middle;
154 border-radius: 2px;
155 background: var(--border-strong);
156 }
157 .pfig__swatch--hue { background: var(--color-accent); }
158 .pfig__swatch--core { background: var(--color-success); }
159 .pfig__swatch--rings { background: var(--color-warning); }
160 .pfig__swatch--dots { background: var(--text-primary); }
161 .pfig__swatch--none { background: var(--border-strong); }
162
163 @media (forced-colors: active) {
164 .pfig__byte { border-color: CanvasText; }
165 .pfig__byte--unread { border-style: dashed; border-top-style: solid; }
166 .pfig__swatch { background: CanvasText; forced-color-adjust: none; }
167 }
168
169 // ── Sidebar (shared markup) ──────────────────────────────────────────────────────────────────────────────────
170 // The group labels and sub-links use --text-muted, and the active page link uses --color-accent-link (1.46:1 on
171 // the light theme, musehub#283). Scoped to this page, with the same interim status as the block above.
172 .devdocs--profiles .devdocs-nav {
173 .devdocs-nav-group-label,
174 .devdocs-nav-link--sub { color: var(--text-secondary); }
175 .devdocs-nav-link--active {
176 color: var(--text-primary);
177 font-weight: 600;
178 box-shadow: inset 2px 0 0 var(--color-accent);
179 }
180 }
File History 1 commit
sha256:4294c765f86bae7ca565b02af974c56bcd0e4288a71fcf1e3038231106f56ec1 docs(profiles): #256 Identity Profiles QA contract v2 (repl… Opus 5.5 minor ⚠ 9 days ago