gabriel / musehub public
_docs.scss
127 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: Docs layout
3 // File: src/scss/pages/_docs.scss
4 //
5 // STRUCTURAL LAYOUT ONLY — zero colors, zero typography here.
6 // Visual rules live in components/_mcp-docs.scss.
7 //
8 // Variants: .docs-layout .docs-layout__sidebar .docs-layout__content
9 // .docs-section .docs-section__header .docs-section__title
10 // .docs-section__desc .docs-sidebar-link .resource-grid .prompt-grid
11 // ─────────────────────────────────────────────────────────────────────────────
12
13 // Bounded-height, independently-scrolling columns — not position: sticky.
14 // See _layout.scss's .layout-two-col/.layout-sidebar comment for why.
15 .docs-layout {
16 display: grid;
17 grid-template-columns: 200px 1fr;
18 align-items: start;
19 min-height: 0;
20
21 @media (max-width: 900px) {
22 grid-template-columns: 1fr;
23 }
24 }
25
26 .docs-layout__sidebar {
27 min-height: 0;
28 max-height: calc(100dvh - var(--sticky-offset, var(--header-height)) - var(--space-4));
29 overflow-y: auto;
30 scrollbar-width: none;
31 padding: var(--space-4) var(--space-3);
32 border-right: 1px solid var(--border-subtle);
33 background: var(--bg-canvas);
34
35 &::-webkit-scrollbar { display: none; }
36
37 @media (max-width: 900px) {
38 max-height: none;
39 overflow-y: visible;
40 display: none;
41 }
42 }
43
44 .docs-layout__content {
45 padding: var(--space-4) var(--space-4) var(--space-8);
46 min-width: 0;
47 min-height: 0;
48 max-height: calc(100dvh - var(--sticky-offset, var(--header-height)) - var(--space-4));
49 overflow-y: auto;
50 scrollbar-width: thin;
51 scrollbar-color: var(--border-default) transparent;
52
53 @media (max-width: 900px) { max-height: none; overflow-y: visible; }
54 }
55
56 // ── Sidebar nav ───────────────────────────────────────────────────────────────
57
58 .docs-sidebar-link {
59 display: flex;
60 align-items: center;
61 gap: 6px;
62 padding: 4px var(--space-2);
63 border-radius: 4px;
64 font-size: 12px;
65 color: var(--text-secondary);
66 text-decoration: none;
67 transition: color var(--transition-fast), background var(--transition-fast);
68
69 &:hover { color: var(--text-primary); background: var(--bg-hover); }
70
71 &::before {
72 content: '';
73 width: 6px;
74 height: 6px;
75 border-radius: 50%;
76 flex-shrink: 0;
77 }
78
79 &--read::before { background: var(--color-success); }
80 &--write::before { background: var(--color-accent); }
81 &--cli::before { background: var(--color-warning); }
82 &--elicit::before { background: var(--color-purple); }
83 &--mist::before { background: var(--domain-mist); }
84
85 &--meta {
86 font-size: 11px;
87 color: var(--text-muted);
88
89 &::before { display: none; }
90 }
91 }
92
93 // ── Sections ──────────────────────────────────────────────────────────────────
94
95 .docs-section {
96 margin-bottom: var(--space-8);
97 scroll-margin-top: calc(var(--header-height) + 48px);
98 }
99
100 .docs-section__header {
101 display: flex;
102 align-items: center;
103 gap: var(--space-2);
104 margin-bottom: var(--space-2);
105 }
106
107 .docs-section__title {
108 font-size: 18px;
109 font-weight: var(--weight-semibold);
110 margin: 0;
111 }
112
113 .docs-section__desc {
114 font-size: 13px;
115 color: var(--text-muted);
116 margin: 0 0 var(--space-3);
117 line-height: 1.6;
118 }
119
120 // ── Grids ─────────────────────────────────────────────────────────────────────
121
122 .resource-grid,
123 .prompt-grid {
124 display: grid;
125 grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
126 gap: var(--space-3);
127 }
File History 1 commit
sha256:ce8f568638dfcfc85e52fcc1a1679fd997badd739dc817f3104b1a886619991d fix: footer-overlap regression from the two-column scroll fix Sonnet 5 patch 14 days ago