Skip to content

Commit 0f42eed

Browse files
committed
refactor: update legend panel title for better clarity and enhance responsive styling
1 parent 593d911 commit 0f42eed

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

css/styles.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,15 @@ body {
247247
line-height: 1.3;
248248
}
249249

250+
/* Legend title variants - short for mobile, full for desktop */
251+
.legend-title-short {
252+
display: inline;
253+
}
254+
255+
.legend-title-full {
256+
display: none;
257+
}
258+
250259
.panel-content {
251260
padding: 0 var(--space-lg) var(--space-lg);
252261
}
@@ -1887,7 +1896,7 @@ body.modal-open {
18871896
}
18881897

18891898
.legend-controls-section {
1890-
padding: 2px 4px 4px;
1899+
display: none;
18911900
}
18921901

18931902
.legend-controls {
@@ -2283,6 +2292,19 @@ body.modal-open {
22832292
.panel-header {
22842293
cursor: default;
22852294
}
2295+
2296+
/* Legend panel: hide number and show full title on desktop */
2297+
.legend-number {
2298+
display: none !important;
2299+
}
2300+
2301+
.legend-title-short {
2302+
display: none;
2303+
}
2304+
2305+
.legend-title-full {
2306+
display: inline;
2307+
}
22862308
}
22872309

22882310
/* Large screens - ensure max widths */

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ <h3>Add New Shelters</h3>
208208
<!-- Panel 4: Legend & Layer Controls -->
209209
<div class="control-panel map-legend-panel" id="mapLegendPanel">
210210
<div class="panel-header legend-panel-header">
211-
<div class="panel-number">4</div>
211+
<div class="panel-number legend-number">4</div>
212212
<div class="panel-title">
213-
<h3>Legend</h3>
213+
<h3><span class="legend-title-short">Legend</span><span class="legend-title-full">Legend & Layer Controls</span></h3>
214214
</div>
215215
</div>
216216
<div class="panel-content">

0 commit comments

Comments
 (0)