|
1 | 1 | /* Container that holds the entire map and panel section */
|
2 | 2 | .map-and-panel {
|
| 3 | + flex: 1; |
3 | 4 | display: flex;
|
4 |
| - height: 100%; |
| 5 | + flex-direction: row; |
| 6 | + align-items: center; |
| 7 | + justify-content: flex-start; |
| 8 | + overflow: hidden; |
| 9 | + background-color: var(--darkest); |
5 | 10 | width: 100%;
|
6 |
| - transition: width 0.3s ease-in-out; |
| 11 | + height: 100%; |
| 12 | + box-sizing: border-box; |
7 | 13 | position: relative;
|
8 |
| -} |
9 |
| - |
10 |
| -@media (max-width: 768px) { |
11 |
| - .map-and-panel { |
12 |
| - flex-direction: column; |
13 |
| - } |
| 14 | + display: flex; |
14 | 15 | }
|
15 | 16 |
|
16 | 17 | /* World map container styling */
|
|
31 | 32 |
|
32 | 33 | /* Side panel styling */
|
33 | 34 | .side-panel {
|
| 35 | + position: relative; |
34 | 36 | width: 400px;
|
35 | 37 | height: 100%;
|
36 | 38 | background-color: var(--darker);
|
37 | 39 | color: var(--text-color);
|
38 | 40 | box-shadow: var(--box-shadow);
|
39 | 41 | padding: 1em;
|
40 |
| - overflow-y: auto; |
| 42 | + overflow-y: auto; /* Independent scrolling within the sidebar */ |
41 | 43 | transition: transform 0.3s ease-in-out;
|
42 | 44 | border-left: 1px solid var(--border-color);
|
43 |
| - z-index: 20; /* Ensure panel covers map */ |
| 45 | + z-index: 15; /* Ensure it stays above the map when visible */ |
44 | 46 | }
|
45 | 47 |
|
46 | 48 | @media (max-width: 768px) {
|
|
49 | 51 | top: 0;
|
50 | 52 | left: 0;
|
51 | 53 | width: 100%;
|
52 |
| - height: 100%; |
53 |
| - z-index: 20; /* Make sure side panel is above everything */ |
| 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 */ |
54 | 57 | }
|
55 | 58 | }
|
56 | 59 |
|
|
107 | 110 | color: var(--heading-color);
|
108 | 111 | border-radius: 5px;
|
109 | 112 | transition: background-color 0.3s ease;
|
| 113 | + overflow: hidden; |
| 114 | +} |
| 115 | + |
| 116 | +.accordion-item-header strong { |
| 117 | + overflow: hidden; |
| 118 | + text-overflow: ellipsis; /* Adds ellipsis for truncated content */ |
| 119 | + white-space: nowrap; /* Prevents wrapping */ |
| 120 | +} |
| 121 | + |
| 122 | +.accordion-icon { |
| 123 | + color: var(--weird); |
| 124 | + font-weight: bold; |
110 | 125 | }
|
111 | 126 |
|
112 | 127 | .accordion-item-header:hover {
|
|
0 commit comments