gabriel / musehub public
_blame.scss
121 lines 4.3 KB
Raw
sha256:1dd27e6d5c24550177b01b0a171e8375c07cf046b549e7683364706b6522d3bc docs(#139): mark all 11 checklist items resolved, document … Sonnet 5 12 days ago
1 // ─────────────────────────────────────────────────────────────────────────────
2 // Page: Blame viewer (.blm-* layout)
3 // File: src/scss/pages/_blame.scss
4 //
5 // STRUCTURAL LAYOUT ONLY — zero colors, zero typography here.
6 // Visual rules live in components/_blame.scss.
7 // ─────────────────────────────────────────────────────────────────────────────
8
9 // ── Two-column layout ─────────────────────────────────────────────────────────
10
11 // App-shell page (issue #139) — .blm-page-header/.blm-stats (above
12 // this grid) are flex-shrink:0; .blm-layout takes whatever's left via
13 // flex, not a calc()'d height. See docs/issues/two-column-app-shell-refactor.md.
14 .blm-page-header,
15 .blm-stats {
16 flex-shrink: 0;
17 }
18
19 .blm-layout {
20 display: grid;
21 grid-template-columns: 256px 1fr;
22 gap: var(--space-4);
23 align-items: stretch;
24 min-height: 0;
25 flex: 1;
26
27 @media (max-width: 900px) {
28 grid-template-columns: 1fr;
29 }
30 }
31
32 // ── Legend (left) ─────────────────────────────────────────────────────────────
33
34 .blm-legend {
35 min-height: 0;
36 overflow-y: auto;
37 display: flex;
38 flex-direction: column;
39 scrollbar-width: thin;
40 scrollbar-color: var(--border-default) transparent;
41
42 @media (max-width: 900px) { overflow-y: visible; }
43 }
44
45 // ── Content (right) ───────────────────────────────────────────────────────────
46
47 .blm-content {
48 min-width: 0;
49 min-height: 0;
50 display: flex;
51 flex-direction: column;
52 gap: var(--space-3);
53 overflow-y: auto;
54 scrollbar-width: thin;
55 scrollbar-color: var(--border-default) transparent;
56
57 // .blm-symbol-list/.blm-file-view (components/_blame.scss) have their
58 // own `overflow: hidden` for rounded corners. Without flex-shrink:0
59 // they'd shrink to fit instead of overflowing, and blm-content's own
60 // overflow-y:auto would never trigger. See isl-main's .card comment
61 // (_issues.scss).
62 > .blm-symbol-list,
63 > .blm-file-view {
64 flex-shrink: 0;
65 }
66
67 @media (max-width: 900px) { overflow-y: visible; }
68 }
69
70 // ── Symbol list ───────────────────────────────────────────────────────────────
71
72 .blm-symbol-list {
73 display: flex;
74 flex-direction: column;
75 gap: var(--space-2);
76 }
77
78 // ── Card summary ──────────────────────────────────────────────────────────────
79
80 .blm-card-summary {
81 display: flex;
82 align-items: center;
83 gap: var(--space-3);
84 }
85
86 .blm-card-main { flex: 1; min-width: 0; }
87
88 .blm-card-top {
89 display: flex;
90 align-items: center;
91 gap: var(--space-2);
92 margin-bottom: var(--space-1);
93 flex-wrap: wrap;
94 }
95
96 .blm-card-bottom {
97 display: flex;
98 align-items: center;
99 gap: var(--space-3);
100 flex-wrap: wrap;
101 }
102
103 // ── Code table ────────────────────────────────────────────────────────────────
104
105 .blm-code-table {
106 table-layout: fixed;
107 }
108
109 .blm-gutter { width: 56px; }
110 .blm-code-cell { width: calc(100% - 56px); overflow-x: auto; }
111
112 // ── History table ─────────────────────────────────────────────────────────────
113
114 .blm-history-table {
115 th:nth-child(1) { width: 28px; } // #
116 th:nth-child(2) { width: 80px; } // Commit
117 th:nth-child(3) { width: 64px; } // Op
118 th:nth-child(4) { width: auto; } // Message
119 th:nth-child(5) { width: 100px; } // Author
120 th:nth-child(6) { width: 80px; } // When
121 }
File History 2 commits
sha256:1dd27e6d5c24550177b01b0a171e8375c07cf046b549e7683364706b6522d3bc docs(#139): mark all 11 checklist items resolved, document … Sonnet 5 12 days ago
sha256:649011bedd713e22f7dca4c4be94bdefbf3b10950d9fc80235928d0b0b823be8 docs: track issue #139 (two-column app-shell refactor) plan… Sonnet 5 12 days ago