|
39 | 39 | color: var(--text-color);
|
40 | 40 | box-shadow: var(--box-shadow);
|
41 | 41 | padding: 1em;
|
42 |
| - overflow-y: auto; /* Independent scrolling within the sidebar */ |
| 42 | + overflow: hidden; /* Remove scroll from the entire panel */ |
43 | 43 | transition: transform 0.3s ease-in-out;
|
44 | 44 | border-left: 1px solid var(--border-color);
|
45 |
| - z-index: 15; /* Ensure it stays above the map when visible */ |
| 45 | + z-index: 15; |
| 46 | + display: flex; |
| 47 | + flex-direction: column; /* Align elements vertically */ |
46 | 48 | }
|
47 | 49 |
|
48 | 50 | @media (max-width: 768px) {
|
|
51 | 53 | top: 0;
|
52 | 54 | left: 0;
|
53 | 55 | width: 100%;
|
54 |
| - height: 100%; /* Cover entire viewport height */ |
55 |
| - overflow-y: auto; /* Allow scrolling within the side panel */ |
56 |
| - z-index: 20; /* Ensure it overlays the map */ |
| 56 | + height: 100%; |
| 57 | + z-index: 20; |
57 | 58 | }
|
58 | 59 | }
|
59 | 60 |
|
60 |
| -/* Scrollbar Styling */ |
61 |
| -.side-panel::-webkit-scrollbar { |
62 |
| - width: 12px; |
63 |
| -} |
64 |
| - |
65 |
| -.side-panel::-webkit-scrollbar-track { |
66 |
| - background: var(--scrollbar-track-color); |
67 |
| -} |
68 |
| - |
69 |
| -.side-panel::-webkit-scrollbar-thumb { |
70 |
| - background: var(--scrollbar-thumb-color); |
71 |
| - border-radius: 6px; |
72 |
| - filter: brightness(0.8); |
73 |
| -} |
74 |
| - |
75 |
| -.side-panel::-webkit-scrollbar-thumb:hover { |
76 |
| - background: var(--scrollbar-thumb-hover-color); |
77 |
| -} |
78 |
| - |
79 | 61 | /* Close button styling */
|
80 | 62 | .close-button {
|
81 | 63 | background-color: var(--button-background);
|
|
84 | 66 | padding: 10px;
|
85 | 67 | font-size: 16px;
|
86 | 68 | cursor: pointer;
|
87 |
| - margin-bottom: 20px; |
88 | 69 | border-radius: 5px;
|
89 |
| - width: 100% |
| 70 | + width: 100%; |
| 71 | + margin-bottom: 1em; /* Add margin below the button */ |
| 72 | + z-index: 20; /* Ensure button stays on top */ |
| 73 | + flex-shrink: 0; /* Prevent close button from resizing */ |
90 | 74 | }
|
91 | 75 |
|
92 | 76 | .close-button:hover {
|
|
157 | 141 | white-space: nowrap;
|
158 | 142 | }
|
159 | 143 |
|
| 144 | +/* Accordion container with scrolling */ |
| 145 | +.accordion-container { |
| 146 | + overflow-y: auto; |
| 147 | + flex: 1; /* Allow accordion to take the remaining height */ |
| 148 | +} |
| 149 | + |
| 150 | +/* Scrollbar Styling */ |
| 151 | +.accordion-container::-webkit-scrollbar { |
| 152 | + width: 12px; |
| 153 | +} |
| 154 | + |
| 155 | +.accordion-container::-webkit-scrollbar-track { |
| 156 | + background: var(--scrollbar-track-color); |
| 157 | +} |
| 158 | + |
| 159 | +.accordion-container::-webkit-scrollbar-thumb { |
| 160 | + background: var(--scrollbar-thumb-color); |
| 161 | + border-radius: 6px; |
| 162 | + filter: brightness(0.8); |
| 163 | +} |
| 164 | + |
| 165 | +.accordion-container::-webkit-scrollbar-thumb:hover { |
| 166 | + background: var(--scrollbar-thumb-hover-color); |
| 167 | +} |
| 168 | + |
160 | 169 | .item-key {
|
161 | 170 | font-weight: bold;
|
162 | 171 | flex: 1;
|
|
0 commit comments