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