forked from korywka/mapbox-controls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.css
165 lines (158 loc) · 3.75 KB
/
theme.css
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
.mapboxgl-ctrl-group {
overflow: hidden;
}
.mapboxgl-ctrl-group:not(:empty) {
box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.mapboxgl-ctrl-group button {
display: flex;
align-items: center;
justify-content: center;
}
.mapboxgl-ctrl-group button svg {
vertical-align: top;
}
/* geolocate control is broken for display: flex */
.mapboxgl-ctrl-group .mapboxgl-ctrl-geolocate {
display: block;
}
/* remove broken button focus shadow */
.mapboxgl-ctrl-group button:focus {
box-shadow: none;
}
.mapboxgl-ctrl-compass {
position: relative;
border-radius: 50%;
overflow: visible;
opacity: 0;
visibility: hidden;
transition: .1s all ease-in-out;
cursor: pointer;
}
.mapboxgl-ctrl-compass.-active {
opacity: 1;
visibility: visible;
}
.mapboxgl-ctrl-compass button {
position: relative;
border-radius: 50%;
}
.mapboxgl-ctrl-compass svg {
position: absolute;
left: 50%;
top: 50%;
margin-left: -11px;
margin-top: -11px;
}
.mapboxgl-ctrl-ruler button.-active svg {
fill: #4264fb;
}
.mapboxgl-ctrl-styles {
display: flex;
}
.mapboxgl-ctrl-styles button {
width: auto;
display: flex;
align-items: center;
padding: 0 8px;
}
.mapboxgl-ctrl-styles button + button {
border: none;
}
.mapboxgl-ctrl-styles button.-active {
background: #f5f5f5;
}
.mapboxgl-ctrl-zoom button:first-child {
border-radius: 2px 2px 0 0;
}
.mapboxgl-ctrl-zoom button:last-child {
border: none;
border-radius: 0 0 2px 2px;
}
.mapboxgl-ctrl-inspect-popup {
position: absolute;
padding-top: 5px;
transform: translate(-50%, 0);
}
.mapboxgl-ctrl-inspect-content {
position: relative;
padding: 5px;
font-size: 12px;
font-family: sans-serif;
background: #fff;
border-radius: 4px;
box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.mapboxgl-ctrl-inspect-content:before {
content: '';
width: 0;
height: 0;
position: absolute;
bottom: 100%;
left: 50%;
transform: translate(-50%, 0);
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #fff;
}
.mapboxgl-ctrl-inspect-header {
display: flex;
justify-content: space-between;
align-items: center;
text-align: center;
white-space: nowrap;
user-select: none;
}
.mapboxgl-ctrl-inspect-prev,
.mapboxgl-ctrl-inspect-next {
padding: 2px 12px;
border-radius: 4px;
}
.mapboxgl-ctrl-inspect-prev:hover, .mapboxgl-ctrl-inspect-next:hover {
background: rgba(0, 0, 0, 0.05);
cursor: pointer;
}
.mapboxgl-ctrl-inspect-prev:hover svg, .mapboxgl-ctrl-inspect-next:hover svg {
fill: #4264fb;
}
.mapboxgl-ctrl-inspect-prev svg, .mapboxgl-ctrl-inspect-next svg {
vertical-align: top;
}
.mapboxgl-ctrl-inspect-prev {
margin-right: 6px;
}
.mapboxgl-ctrl-inspect-next {
margin-left: 6px;
}
.mapboxgl-ctrl-inspect-feature {
width: 100%;
min-width: 200px;
border-collapse: collapse;
}
.mapboxgl-ctrl-inspect-feature th, .mapboxgl-ctrl-inspect-feature td {
padding: 5px;
}
.mapboxgl-ctrl-inspect-feature th {
text-align: right;
}
.mapboxgl-ctrl-inspect-feature tr:not(:last-child) td, .mapboxgl-ctrl-inspect-feature tr:not(:last-child) th {
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.mapboxgl-ctrl-inspect button.-active svg {
fill: #4264fb;
}
.mapboxgl-ctrl-tooltip {
padding: 5px 7px;
background: #fff;
border-radius: 2px;
position: absolute;
transform: translate(-50%, 0);
margin-top: 24px;
font-size: 14px;
white-space: nowrap;
z-index: 3;
}
/* show tooltip over controls buttons with z-index 2 */
.mapboxgl-ctrl-tooltip:empty {
display: none;
}