-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
158 lines (132 loc) · 2.71 KB
/
main.css
File metadata and controls
158 lines (132 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
:root {
/* --pico-spacing: 0.0rem; */
/* --pico-block-spacing-vertical: 0.5rem; */
--shadow: white;
--user-color: rebeccapurple;
--vertex-color: #007aff;
--edge-color: #e67e22;
}
#app {
display: grid;
grid-template-areas:
"controls"
"map"
"info";
padding: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
grid-template-rows: auto 1fr auto;
}
#controls {
grid-area: controls;
}
#map {
grid-area: map;
/* flex: 1 1 60vh; */
min-height: 50vh;
max-height: 100vh;
/* Remove padding and border from Leaflet controls */
& * {
padding: 0px 0px;
border: none;
}
}
#info {
grid-area: info;
}
section {
padding: var(--pico-block-spacing-vertical);
}
@media (min-width: 700px) {
}
@media screen and (prefers-color-scheme: dark) {
:root {
--shadow: black;
}
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
}
.vertex-label,
.edge-label {
background: var(--shadow);
border: 2px solid;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: bold;
box-shadow: 0 0 .1rem rgba(0, 0, 0, 1);
border-color: var(--color);
color: var(--color);
}
.vertex-label {
--color: var(--vertex-color);
}
.edge-label {
--color: var(--edge-color);
}
.heading-label {
--color: var(--user-color);
}
.distance-label {
background: none;
box-shadow: none;
padding: 0%;
text-shadow:
-1px -1px 0 var(--shadow),
1px -1px 0 var(--shadow),
-1px 1px 0 var(--shadow),
1px 1px 0 var(--shadow);
color: var(--color);
font-size: .6rem;
font-weight: bold;
text-align: center;
}
/* Leaflet line styles */
.vertex-line {
stroke: var(--vertex-color) !important;
stroke-dasharray: 6,6 !important;
stroke-width: 2 !important;
}
.edge-line {
stroke: var(--edge-color) !important;
stroke-dasharray: 2,8 !important;
stroke-width: 2 !important;
}
.edge-extension-line {
stroke: var(--edge-color) !important;
stroke-dasharray: 10,5 !important;
stroke-width: 1 !important;
opacity: 0.7 !important;
}
.parcel-polygon {
stroke: var(--edge-color) !important;
stroke-width: 3 !important;
fill: var(--edge-color) !important;
fill-opacity: 0.3 !important;
}
.user-marker {
stroke: var(--user-color) !important;
stroke-width: 2 !important;
fill: var(--user-color) !important;
fill-opacity: 0.1 !important;
}
@media (orientation: landscape) {
#app {
grid-template-areas:
"controls info"
"map info";
grid-template-columns: auto .5fr;
grid-template-rows: auto 1fr;
}
}