gabriel / musehub public
_coupling.scss
83 lines 3.2 KB
Raw
sha256:3ff9c9863a9891bdcde71b4a43228f66d0493e38b7cc1d09fe9eb7de774046b2 feat: add repair-commit wire endpoint (API parity with repa… Opus 4.8 minor ⚠ breaking 1 day ago
1 // ─────────────────────────────────────────────────────────────────────────────
2 // Component: File Co-change Coupling (.cp-* prefix)
3 // File: src/scss/components/_coupling.scss
4 //
5 // Visual rules only — colors, typography, backgrounds, borders, transitions.
6 // Structural layout lives in pages/_coupling.scss.
7 // ─────────────────────────────────────────────────────────────────────────────
8
9 // ── Pair list ─────────────────────────────────────────────────────────────────
10
11 .cp-list {
12 background: var(--bg-surface);
13 border: 1px solid var(--border-default);
14 border-radius: var(--radius-md);
15 overflow: hidden;
16 }
17
18 .cp-pair-row {
19 border-top: 1px solid var(--border-subtle);
20 transition: background 120ms ease;
21
22 &:first-child { border-top: none; }
23 &:hover { background: var(--bg-hover); }
24 }
25
26 // ── File paths ────────────────────────────────────────────────────────────────
27
28 .cp-file-a { color: var(--text-muted); }
29 .cp-file-b { color: var(--color-accent-link); }
30
31 .cp-arrow {
32 color: var(--border-default);
33 font-size: 0.75rem;
34 flex-shrink: 0;
35 user-select: none;
36 }
37
38 // ── Count ─────────────────────────────────────────────────────────────────────
39
40 .cp-count {
41 font-family: var(--font-mono);
42 font-size: 0.78rem;
43 font-weight: 700;
44 color: var(--text-primary);
45 white-space: nowrap;
46 }
47
48 // ── Heat bar ──────────────────────────────────────────────────────────────────
49
50 .cp-bar-track {
51 background: var(--bg-elevated);
52 border-radius: 2px;
53 overflow: hidden;
54 }
55
56 .cp-bar-fill {
57 height: 100%;
58 border-radius: 2px;
59 background: var(--color-accent);
60 transition: width 200ms ease;
61
62 &--medium { background: var(--color-warning); }
63 &--high { background: var(--color-danger); }
64 }
65
66 // ── Filter bar ────────────────────────────────────────────────────────────────
67
68 .cp-filter-label {
69 font-size: 0.68rem;
70 font-weight: 600;
71 letter-spacing: 0.07em;
72 text-transform: uppercase;
73 color: var(--text-muted);
74 white-space: nowrap;
75 }
76
77 // ── Empty state ───────────────────────────────────────────────────────────────
78
79 .cp-empty-state {
80 text-align: center;
81 color: var(--text-muted);
82 padding: 3rem 1.5rem;
83 }
File History 1 commit
sha256:3ff9c9863a9891bdcde71b4a43228f66d0493e38b7cc1d09fe9eb7de774046b2 feat: add repair-commit wire endpoint (API parity with repa… Opus 4.8 minor 1 day ago