Skip to content

Commit c8c7d7e

Browse files
committed
More styling tweaks
1 parent ef28e7c commit c8c7d7e

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed

src/components/WorldMap.css

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
/* Container that holds the entire map and panel section */
22
.map-and-panel {
3+
flex: 1;
34
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);
510
width: 100%;
6-
transition: width 0.3s ease-in-out;
11+
height: 100%;
12+
box-sizing: border-box;
713
position: relative;
8-
}
9-
10-
@media (max-width: 768px) {
11-
.map-and-panel {
12-
flex-direction: column;
13-
}
14+
display: flex;
1415
}
1516

1617
/* World map container styling */
@@ -31,16 +32,17 @@
3132

3233
/* Side panel styling */
3334
.side-panel {
35+
position: relative;
3436
width: 400px;
3537
height: 100%;
3638
background-color: var(--darker);
3739
color: var(--text-color);
3840
box-shadow: var(--box-shadow);
3941
padding: 1em;
40-
overflow-y: auto;
42+
overflow-y: auto; /* Independent scrolling within the sidebar */
4143
transition: transform 0.3s ease-in-out;
4244
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 */
4446
}
4547

4648
@media (max-width: 768px) {
@@ -49,8 +51,9 @@
4951
top: 0;
5052
left: 0;
5153
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 */
5457
}
5558
}
5659

@@ -107,6 +110,18 @@
107110
color: var(--heading-color);
108111
border-radius: 5px;
109112
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;
110125
}
111126

112127
.accordion-item-header:hover {

src/pages/home.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,13 @@
247247
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
248248
}
249249

250+
@media (max-width: 768px) {
251+
.ranking-section,
252+
.histogram-section {
253+
padding-bottom: 4em;
254+
}
255+
}
256+
250257
/* Scrollbar Styling */
251258
.scrollable-content::-webkit-scrollbar {
252259
width: 12px;

0 commit comments

Comments
 (0)