gabriel / musehub public
_blame.scss
106 lines 4.0 KB
Raw
sha256:ce8f568638dfcfc85e52fcc1a1679fd997badd739dc817f3104b1a886619991d fix: footer-overlap regression from the two-column scroll fix Sonnet 5 patch 14 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 // Bounded-height, independently-scrolling columns — not position: sticky.
12 // See _layout.scss's .layout-two-col/.layout-sidebar comment for why.
13 .blm-layout {
14 display: grid;
15 grid-template-columns: 256px 1fr;
16 gap: var(--space-4);
17 align-items: start;
18 min-height: 0;
19
20 @media (max-width: 900px) {
21 grid-template-columns: 1fr;
22 }
23 }
24
25 // ── Legend (left) ─────────────────────────────────────────────────────────────
26
27 .blm-legend {
28 min-height: 0;
29 max-height: calc(100dvh - var(--sticky-offset, var(--header-height)) - var(--space-4));
30 overflow-y: auto;
31 display: flex;
32 flex-direction: column;
33 scrollbar-width: thin;
34 scrollbar-color: var(--border-default) transparent;
35
36 @media (max-width: 900px) { max-height: none; overflow-y: visible; }
37 }
38
39 // ── Content (right) ───────────────────────────────────────────────────────────
40
41 .blm-content {
42 min-width: 0;
43 min-height: 0;
44 max-height: calc(100dvh - var(--sticky-offset, var(--header-height)) - var(--space-4));
45 display: flex;
46 flex-direction: column;
47 gap: var(--space-3);
48 overflow-y: auto;
49 scrollbar-width: thin;
50 scrollbar-color: var(--border-default) transparent;
51
52 @media (max-width: 900px) { max-height: none; overflow-y: visible; }
53 }
54
55 // ── Symbol list ───────────────────────────────────────────────────────────────
56
57 .blm-symbol-list {
58 display: flex;
59 flex-direction: column;
60 gap: var(--space-2);
61 }
62
63 // ── Card summary ──────────────────────────────────────────────────────────────
64
65 .blm-card-summary {
66 display: flex;
67 align-items: center;
68 gap: var(--space-3);
69 }
70
71 .blm-card-main { flex: 1; min-width: 0; }
72
73 .blm-card-top {
74 display: flex;
75 align-items: center;
76 gap: var(--space-2);
77 margin-bottom: var(--space-1);
78 flex-wrap: wrap;
79 }
80
81 .blm-card-bottom {
82 display: flex;
83 align-items: center;
84 gap: var(--space-3);
85 flex-wrap: wrap;
86 }
87
88 // ── Code table ────────────────────────────────────────────────────────────────
89
90 .blm-code-table {
91 table-layout: fixed;
92 }
93
94 .blm-gutter { width: 56px; }
95 .blm-code-cell { width: calc(100% - 56px); overflow-x: auto; }
96
97 // ── History table ─────────────────────────────────────────────────────────────
98
99 .blm-history-table {
100 th:nth-child(1) { width: 28px; } // #
101 th:nth-child(2) { width: 80px; } // Commit
102 th:nth-child(3) { width: 64px; } // Op
103 th:nth-child(4) { width: auto; } // Message
104 th:nth-child(5) { width: 100px; } // Author
105 th:nth-child(6) { width: 80px; } // When
106 }
File History 1 commit
sha256:ce8f568638dfcfc85e52fcc1a1679fd997badd739dc817f3104b1a886619991d fix: footer-overlap regression from the two-column scroll fix Sonnet 5 patch 14 days ago