Skip to content

Commit 4a9ec28

Browse files
committed
add selector for multiple segments with same path
1 parent f005382 commit 4a9ec28

File tree

2 files changed

+279
-34
lines changed

2 files changed

+279
-34
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<!-- CSS Styles for overlapping segments popup -->
2+
<style>
3+
.overlapping-segments-popup,
4+
.single-segment-popup {
5+
font-family: inherit;
6+
}
7+
8+
.overlapping-segments-popup .leaflet-popup-content,
9+
.single-segment-popup .leaflet-popup-content {
10+
margin: 8px 12px;
11+
line-height: 1.4;
12+
}
13+
14+
.single-segment-popup h6 {
15+
margin-bottom: 8px;
16+
color: #495057;
17+
}
18+
19+
.single-segment-popup .badge {
20+
font-size: 0.8em;
21+
padding: 2px 6px;
22+
}
23+
24+
.overlapping-segments .segment-option {
25+
transition: background-color 0.2s ease;
26+
padding: 8px;
27+
border-radius: 4px;
28+
margin: -8px;
29+
margin-bottom: 8px;
30+
}
31+
32+
.overlapping-segments .segment-option:hover {
33+
background-color: #f8f9fa;
34+
}
35+
36+
.overlapping-segments .segment-option:last-child {
37+
border-bottom: none !important;
38+
margin-bottom: 0;
39+
}
40+
41+
.overlapping-segments h6 {
42+
margin-bottom: 8px;
43+
color: #495057;
44+
}
45+
46+
.overlapping-segments .badge {
47+
font-size: 0.7em;
48+
padding: 2px 6px;
49+
}
50+
51+
/* Optional: Style for highlighted overlapping segments */
52+
.segment-highlighted {
53+
filter: drop-shadow(0 0 3px rgba(0, 123, 255, 0.8));
54+
}
55+
</style>

0 commit comments

Comments
 (0)