-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdraw.plugin.scss
83 lines (69 loc) · 1.63 KB
/
draw.plugin.scss
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
.maplibregl-draw-circle-mode {
--padding: 10px;
--padding-top: var(--padding);
--padding-right: var(--padding);
--padding-bottom: var(--padding);
--padding-left: var(--padding);
position: absolute;
top: var(--padding-top);
right: var(--padding-right);
bottom: var(--padding-bottom);
left: var(--padding-left);
display: flex;
justify-content: center;
align-items: stretch;
}
.maplibregl-draw-circle-mode-height-constraint {
display: flex;
min-width: 0;
width: auto;
height: 100%;
aspect-ratio: 1/1;
margin: auto;
}
.maplibregl-draw-circle-mode-width-constraint {
display: flex;
min-width: 0;
width: 100%;
height: auto;
aspect-ratio: 1/1;
margin: auto;
}
.maplibregl-draw-circle-mode-circle {
position: relative;
width: 100%;
height: 100%;
border-radius: 50%;
background: rgba(231, 75, 60, 0.2);
border: 2px solid #e74b3c;
color: #e74b3c; /* sets color on below min area size stripes */
overflow: hidden;
box-sizing: border-box;
.maplibre-draw-min-area-pattern {
display: none;
}
.maplibre-draw-circle-mode-below-min-area-size-label {
display: none;
position: absolute;
top: 50%;
left: 50%;
z-index: 1;
padding: 4px;
border-radius: 4px;
background: #ffffff;
white-space: nowrap;
color: #e74b3c;
font-size: 24px;
transform: translate(-50%, -50%);
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: bold;
}
}
.maplibregl-draw-circle-too-small {
.maplibre-draw-min-area-pattern {
display: block;
}
.maplibre-draw-circle-mode-below-min-area-size-label {
display: block;
}
}