generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathstyles.css
More file actions
358 lines (303 loc) · 6.37 KB
/
styles.css
File metadata and controls
358 lines (303 loc) · 6.37 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
.map-view-main {
position: relative;
width: 100%;
height: 100%;
}
.map-view-location {
font-weight: bold;
text-decoration: underline;
}
.map-view-graph-controls {
left: 8px;
top: 8px;
padding: 8px 20px 8px 8px;
background-color: var(--background-primary-alt);
max-width: 240px;
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
max-height: calc(100% - 16px);
overflow: auto;
position: absolute;
z-index: 2;
padding: 8px 14px 5px 12px;
}
.graph-control-div {
display: block;
padding-bottom: 5px;
}
.graph-control-content {
display: none;
overflow: hidden;
}
.graph-control-error {
border-color: red !important;
}
.controls-toggle {
display: none;
}
.mv-control-button {
display: inline;
}
/* An icon button on the map, e.g. lock */
.mv-icon-button {
display: flex !important;
align-items: center;
justify-content: center;
}
a.mv-icon-button.on {
background-color: var(--background-modifier-border-focus) !important;
}
.settings-dense-button {
margin-right: 0;
}
.setting-item-control .mv-emoji-icon {
margin: 12px 0;
}
.leaflet-container .dark-mode {
filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg)
saturate(0.3) brightness(0.7);
}
.leaflet-container {
background-color: var(--background-primary) !important;
}
.newPresetDialogGrid {
display: grid;
grid-row-gap: 10px;
}
.newPresetDialogLine {
display: inline-block;
}
.clusterPreviewIcon {
margin-left: 0 !important;
margin-top: 0 !important;
position: relative !important;
}
.clusterPreviewContainer {
display: inline-flex;
border-radius: 6px;
line-height: 1.5;
background-color: var(--background-primary);
align-items: center;
}
.clusterPreviewContainer .leaflet-marker-icon {
background-color: var(--background-primary);
}
/* Make emoji icons behave in cluster previews */
.clusterPreviewContainer p {
margin: 10px 0 !important;
}
.marker-popup {
border-radius: 6px;
color: var(--text-normal);
font-size: var(--font-text-size);
font-family: var(--font-text);
line-height: 1.5;
background-color: var(--background-primary);
box-shadow: 0 2px 8px var(--background-modifier-box-shadow);
}
.mv-marker-label {
padding: 2px 6px;
}
/* Disable the default Leaflet shadow because we use the Obsidian theme above */
.marker-popup .leaflet-popup-content-wrapper {
box-shadow: none;
background: none;
color: none;
}
.mv-marker-popup-container {
max-height: 20em;
min-height: 4em;
width: 30em;
overflow: hidden;
opacity: 0;
visibility: hidden;
/* The 'visibility' property just hides the popup, but it's there to interact with the user. */
pointer-events: none;
display: block;
transition:
opacity 0.1s ease-out,
visibility 0s 0.1s;
z-index: 1000;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}
.mv-marker-popup-container.visible {
opacity: 1;
visibility: visible;
transition: opacity 0.1s ease-in;
pointer-events: auto;
}
.mv-marker-popup-container .markdown-embed {
border-left: 0;
overflow-y: auto;
}
/* Simple placement mode is used on mobile, where the screen is too small and Popper is unavailable anyway */
.mv-marker-popup-container.simple-placement {
bottom: 0px;
position: absolute;
width: 100%;
}
.mv-marker-popup-close {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
background: transparent !important;
}
.url-rule-dropdown {
max-width: 7em;
}
.parsing-rule {
padding: 5px;
}
.parsing-rule-line-2 {
text-align: right;
}
.map-search-suggestion {
display: flex;
}
.suggestion-item .search-icon-div .leaflet-marker-icon .mv-emoji-icon {
position: relative;
margin: 0;
top: 10px;
}
.search-text-div {
display: flex;
align-items: center;
padding-left: 10px;
}
.leaflet-marker-icon {
transition: filter 0.1s;
}
.map-view-highlight {
filter: drop-shadow(0 0 10px blue);
}
.mv-fade-active .leaflet-marker-icon:not(.mv-fade-marker-shown) {
filter: grayscale(100%);
opacity: 0.5;
}
.mv-fade-active path.leaflet-interactive:not(.mv-fade-edge-shown) {
opacity: 0.1;
}
div.map-view-highlight.marker-cluster {
box-shadow: 0 0 5px blue;
}
.map-view-icon {
margin: 10px;
width: 15px;
height: 15px;
}
.mv-emoji-icon {
text-shadow:
0 0 1px #fff,
-1px -1px 1px #fff,
1px -1px 1px #fff,
-1px 1px 1px #fff,
0 0 2px #fff;
top: -2px;
position: relative;
}
.mv-map-control {
margin: 1px;
}
.block-language-mapview {
height: 300px;
}
.markdown-reading-view .graph-control-div {
display: none;
}
.markdown-reading-view .map-view-graph-controls {
padding: 0;
}
.mv-hidden {
display: none !important;
}
@media print {
.map-view-graph-controls {
display: none;
}
.leaflet-control-zoom {
display: none;
}
}
.map-preview-popup {
position: absolute;
width: 300px;
height: 200px;
opacity: 0;
visibility: hidden;
transition:
opacity 0.2s ease-in-out,
visibility 0s 0.2s;
padding: 2px;
}
.map-preview-popup.show {
opacity: 1;
visibility: visible;
transition: opacity 0.2s ease-in-out;
}
.map-preview-popup-map {
width: 100%;
height: 100%;
}
.mv-simple-circle-marker {
color: white;
border: none;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
width: 30px;
height: 30px;
}
.mv-simple-circle-marker i {
font-size: 20px;
}
.mv-simple-circle-marker .mv-emoji-icon {
top: 0;
}
.mv-highlight-offline img.mv-offline {
padding: 1px !important;
background-color: blue;
}
.mv-badge {
position: absolute;
background-color: red;
border-radius: 50%;
width: 16px;
height: 16px;
font-size: 10px;
display: flex;
justify-content: center;
}
.mv-badge-tl {
top: 0;
left: 0;
}
.mv-badge-tr {
top: 0;
right: 0;
}
.mv-badge-bl {
bottom: 0;
left: 0;
}
.mv-badge-br {
bottom: 0;
right: 0;
}
.leaflet-pm-toolbar .button-container.pos-right {
margin-top: 0;
}
.mv-load-bar {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
z-index: 1000;
display: block;
}
.mv-load-bar .progress-bar-indicator {
margin: 0;
width: 100%;
}