_intelligence-viz.scss
sha256:fe5bf55b6db66fa1e41eda92fec82d1ae084f2883a909737fda77f6f3896eb6c
docs(intelligence): fix 320 px horizontal overflow (musehub…
Opus 5.5
patch
9 days ago
| 1 | // ───────────────────────────────────────────────────────────────────────────── |
| 2 | // Component: Code Intelligence visualization |
| 3 | // File: src/scss/components/_intelligence-viz.scss |
| 4 | // |
| 5 | // One visualization block for /muse/intelligence (Phase 04): |
| 6 | // .intel-ir-* — "Impact rings" BFS blast-radius diagram (V1, musehub#248). |
| 7 | // |
| 8 | // Tokens: all from theme/_tokens.scss — no raw hex values here. The SVG itself |
| 9 | // has no fills that depend on color alone: every node also carries a visible |
| 10 | // label, so forced-colors mode and prefers-reduced-motion need no overrides |
| 11 | // beyond what devdocs.scss already provides for .docfig. |
| 12 | // |
| 13 | // Page-scoped overflow fix (musehub#248 follow-up, horizontal overflow at |
| 14 | // 320 px): `.devdocs-callout` is `display: flex` and its text/`<code>` |
| 15 | // content, when a direct flex child (no wrapping `<div>`), is an anonymous |
| 16 | // flex item whose default `min-width: auto` cannot shrink below its longest |
| 17 | // unbreakable token (`structurally_linked`, `co_change_rate`, `int(key)`, …). |
| 18 | // The template now wraps every callout body in a real `<div>`; these two |
| 19 | // rules are the other half — shrinkability and a break opportunity for long |
| 20 | // `<code>` tokens — scoped to this page only via `.devdocs--intelligence` so |
| 21 | // the shared `_devdocs.scss` component and every other page stay untouched. |
| 22 | // ───────────────────────────────────────────────────────────────────────────── |
| 23 | |
| 24 | .devdocs--intelligence { |
| 25 | .devdocs-callout > div { |
| 26 | min-width: 0; |
| 27 | overflow-wrap: anywhere; |
| 28 | } |
| 29 | |
| 30 | #dead li code { |
| 31 | overflow-wrap: anywhere; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | .intel-ir-svg { |
| 36 | width: 100%; |
| 37 | max-width: 640px; |
| 38 | height: auto; |
| 39 | display: block; |
| 40 | margin: 0 auto; |
| 41 | font-family: var(--font-mono); |
| 42 | } |
| 43 | |
| 44 | .intel-ir-ring { |
| 45 | fill: none; |
| 46 | stroke: var(--border-default); |
| 47 | stroke-dasharray: 3 4; |
| 48 | } |
| 49 | |
| 50 | .intel-ir-edge { |
| 51 | stroke: var(--text-muted); |
| 52 | stroke-width: 1.5; |
| 53 | fill: none; |
| 54 | } |
| 55 | |
| 56 | .intel-ir-node { |
| 57 | stroke: var(--border-default); |
| 58 | stroke-width: 1.5; |
| 59 | } |
| 60 | |
| 61 | .intel-ir-node--target { |
| 62 | fill: var(--color-accent); |
| 63 | stroke: var(--color-accent); |
| 64 | } |
| 65 | |
| 66 | .intel-ir-node--d1 { |
| 67 | fill: var(--bg-surface); |
| 68 | stroke: var(--color-accent); |
| 69 | } |
| 70 | |
| 71 | .intel-ir-node--d2 { |
| 72 | fill: var(--bg-surface); |
| 73 | } |
| 74 | |
| 75 | .intel-ir-label { |
| 76 | font-size: 10px; |
| 77 | fill: var(--text-primary); |
| 78 | } |
| 79 | |
| 80 | .intel-ir-label--target { |
| 81 | fill: var(--bg-base); |
| 82 | font-weight: 700; |
| 83 | } |
| 84 | |
| 85 | .intel-ir-depth-label { |
| 86 | font-size: 9px; |
| 87 | fill: var(--text-muted); |
| 88 | text-transform: uppercase; |
| 89 | letter-spacing: 0.04em; |
| 90 | } |
| 91 | |
| 92 | .intel-ir-legend { |
| 93 | display: flex; |
| 94 | flex-wrap: wrap; |
| 95 | gap: var(--space-4); |
| 96 | margin-top: var(--space-3); |
| 97 | font-size: var(--text-sm); |
| 98 | color: var(--text-secondary); |
| 99 | } |
| 100 | |
| 101 | .intel-ir-legend-item { |
| 102 | display: flex; |
| 103 | align-items: center; |
| 104 | gap: var(--space-2); |
| 105 | } |
| 106 | |
| 107 | .intel-ir-legend-swatch { |
| 108 | width: 12px; |
| 109 | height: 12px; |
| 110 | border-radius: 50%; |
| 111 | display: inline-block; |
| 112 | border: 1.5px solid var(--border-default); |
| 113 | } |
| 114 | |
| 115 | .intel-ir-legend-swatch--target { |
| 116 | background: var(--color-accent); |
| 117 | border-color: var(--color-accent); |
| 118 | } |
| 119 | |
| 120 | .intel-ir-legend-swatch--d1 { |
| 121 | background: var(--bg-surface); |
| 122 | border-color: var(--color-accent); |
| 123 | } |
| 124 | |
| 125 | .intel-ir-legend-swatch--d2 { |
| 126 | background: var(--bg-surface); |
| 127 | border-color: var(--border-default); |
| 128 | } |
File History
2 commits
sha256:fe5bf55b6db66fa1e41eda92fec82d1ae084f2883a909737fda77f6f3896eb6c
docs(intelligence): fix 320 px horizontal overflow (musehub…
Opus 5.5
patch
9 days ago
sha256:e16f407d787df2320fb726a5ea8a5b5eb1d53e68135d8992373f0fd5b5319fa9
docs(intelligence): QA contract v2 — 148-claim audit, 20 co…
Sonnet 5
minor
⚠
9 days ago