Skip to content

Commit e8ac87c

Browse files
committed
Harmonize zoom buttons with other button and make all buttons border 2px. Move zoom under burger button
1 parent 9f48ee4 commit e8ac87c

3 files changed

Lines changed: 51 additions & 6 deletions

File tree

pcd-website/src/components/LanguageSwitcher.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ onUnmounted(() => document.removeEventListener('click', handleOutsideClick));
9494
height: 40px;
9595
padding: 0 0.625rem;
9696
background: var(--color-bg-popup);
97-
border: 1px solid var(--color-border);
97+
border: 2px solid var(--color-border);
9898
border-radius: 8px;
9999
cursor: pointer;
100100
color: var(--color-text);

pcd-website/src/components/MapView.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ onMounted(async () => {
250250
for (let code = 48; code <= 57; code++) delete kb._zoomKeys[code];
251251
}
252252
253-
L.control.zoom({ position: 'bottomleft' }).addTo(map);
253+
L.control.zoom({ position: 'topleft' }).addTo(map);
254254
255255
// Manage tab order for Leaflet-injected elements:
256256
// - Zoom buttons stay in tab order (they are our primary map keyboard controls)
@@ -587,14 +587,14 @@ onUnmounted(() => {
587587
}
588588
589589
#theme-toggle {
590-
width: 75px;
590+
width: 73px;
591591
height: 40px;
592592
padding: 0;
593593
display: flex;
594594
align-items: center;
595595
justify-content: center;
596596
background: color-mix(in srgb, var(--color-bg-popup) 86%, transparent);
597-
border: 1px solid var(--color-border);
597+
border: 2px solid var(--color-border);
598598
border-radius: 999px;
599599
cursor: pointer;
600600
color: var(--color-text);
@@ -620,6 +620,7 @@ onUnmounted(() => {
620620
grid-template-columns: 1fr 1fr;
621621
align-items: center;
622622
padding: 4px;
623+
transform: translate(0, -1px);
623624
}
624625
625626
.theme-toggle__thumb {
@@ -667,7 +668,7 @@ onUnmounted(() => {
667668
}
668669
669670
#theme-toggle[aria-checked="true"] .theme-toggle__thumb {
670-
transform: translateX(37px);
671+
transform: translateX(33px);
671672
background: linear-gradient(135deg, #d8b4fe 0%, #c084fc 44%, #9d4edd 100%);
672673
box-shadow: 0 8px 18px rgba(88, 28, 135, 0.34);
673674
}

pcd-website/src/styles/global.css

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ html.theme-transition *::after {
176176
width: 40px;
177177
height: 40px;
178178
background: var(--color-bg-popup);
179-
border: 1px solid var(--color-border);
179+
border: 2px solid var(--color-border);
180180
border-radius: 8px;
181181
cursor: pointer;
182182
font-size: 1.25rem;
@@ -490,6 +490,50 @@ html.theme-transition *::after {
490490
color: #1a1a1a;
491491
}
492492

493+
/* ─── Leaflet Zoom Controls ─────────────────────────────────── */
494+
.leaflet-top.leaflet-left {
495+
top: calc(var(--spacing-md) + 40px + var(--spacing-sm));
496+
left: var(--spacing-md);
497+
}
498+
499+
.leaflet-top.leaflet-left .leaflet-control {
500+
margin-left: 0;
501+
}
502+
503+
.leaflet-bar {
504+
border: 2px solid var(--color-border) !important;
505+
border-radius: 8px !important;
506+
box-shadow: 0 10px 28px rgba(18, 19, 33, 0.18) !important;
507+
backdrop-filter: blur(14px);
508+
}
509+
510+
.leaflet-bar a {
511+
width: 36px !important;
512+
height: 36px !important;
513+
line-height: 36px !important;
514+
border-bottom-color: var(--color-border) !important;
515+
}
516+
517+
.leaflet-bar a:first-child {
518+
border-radius: 6px 6px 0 0 !important;
519+
}
520+
521+
.leaflet-bar a:last-child {
522+
border-radius: 0 0 6px 6px !important;
523+
border-bottom: none !important;
524+
}
525+
526+
/* ─── Leaflet Zoom Controls Dark Mode ───────────────────────── */
527+
[data-theme="dark"] .leaflet-bar a {
528+
background-color: var(--color-bg-popup);
529+
color: var(--color-text);
530+
}
531+
532+
[data-theme="dark"] .leaflet-bar a:hover {
533+
background-color: var(--color-bg-popup-hover);
534+
color: var(--color-text);
535+
}
536+
493537
/* ─── Leaflet Container Dark Mode ───────────────────────────── */
494538
[data-theme="dark"] .leaflet-container {
495539
background-color: var(--color-bg);

0 commit comments

Comments
 (0)