|
1 | 1 | /* ========================== |
2 | 2 | Global Styles |
3 | 3 | ========================== */ |
4 | | -html, body { |
| 4 | +html, |
| 5 | +body { |
5 | 6 | height: 100%; |
6 | 7 | margin: 0; |
7 | 8 | padding: 0; |
8 | | - overflow: hidden; /* Prevent overall page scrolling */ |
| 9 | + overflow: hidden; /* no page-level scrollbars */ |
9 | 10 | } |
10 | 11 |
|
11 | 12 | body { |
12 | 13 | display: flex; |
13 | 14 | flex-direction: column; |
14 | 15 | font-family: Arial, sans-serif; |
15 | | - font-size: 14px; |
16 | | - line-height: 1.6; |
17 | | - color: #333; |
18 | 16 | } |
19 | 17 |
|
20 | 18 | /* ========================== |
21 | 19 | Header and Buttons |
22 | 20 | ========================== */ |
23 | 21 | .main-header { |
| 22 | + flex-shrink: 0; /* Ensure header doesn't shrink */ |
| 23 | + height: 3rem; |
| 24 | + background-color: #f9f9f9; |
| 25 | + border-bottom: 1px solid #ccc; |
| 26 | + padding: 0.5rem 1rem; |
| 27 | + |
24 | 28 | display: flex; |
25 | 29 | justify-content: space-between; |
26 | 30 | align-items: center; |
27 | | - background-color: #f9f9f9; |
28 | 31 | border-bottom: 1px solid #ccc; |
29 | | - padding: 0.5rem 1rem; |
30 | 32 | position: sticky; |
31 | 33 | top: 0; |
32 | 34 | z-index: 1000; |
33 | 35 | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
34 | | - flex-shrink: 0; /* Ensure header doesn't shrink */ |
35 | 36 | } |
36 | 37 |
|
37 | 38 | #toggle-sidebar { |
@@ -67,20 +68,21 @@ body { |
67 | 68 | Layout Container |
68 | 69 | ========================== */ |
69 | 70 | .layout-container { |
| 71 | + flex: 1; /* fill the rest of the window below the header */ |
70 | 72 | display: grid; |
71 | | - grid-template-columns: 200px auto 300px; /* Sidebar | Content | Canvas */ |
72 | | - grid-template-areas: "sidebar content canvas"; |
| 73 | + grid-template-columns: 200px auto 300px; /* sidebar - content - breadcrumb */ |
| 74 | + grid-template-areas: "sidebar content aside"; |
73 | 75 | gap: 1rem; |
74 | | - height: calc(100% - 3rem); /* Remaining height after the header */ |
75 | | - overflow: hidden; /* Prevent scrolling of the layout itself */ |
| 76 | + overflow: hidden; /* no scrolling for the container itself */ |
| 77 | + /*height: calc(100% - 3rem); !* using flex:1 now *!*/ |
76 | 78 | } |
77 | 79 |
|
78 | 80 | /* ========================== |
79 | 81 | Sidebar |
80 | 82 | ========================== */ |
81 | 83 | #toc-sidebar { |
82 | 84 | grid-area: sidebar; |
83 | | - background-color: #fff; |
| 85 | + background: white; |
84 | 86 | border-right: 1px solid #ccc; |
85 | 87 | padding: 1rem; |
86 | 88 | overflow-y: auto; /* Sidebar scrolls independently */ |
@@ -158,6 +160,7 @@ body { |
158 | 160 | padding: 1rem; |
159 | 161 | height: 100%; /* Ensure it spans the full height of the container */ |
160 | 162 | box-sizing: border-box; |
| 163 | + background-color: #f9f9f9; |
161 | 164 | } |
162 | 165 |
|
163 | 166 | #content-area { |
|
0 commit comments