-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
executable file
·346 lines (271 loc) · 6.42 KB
/
styles.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
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
/*
This file controls the CSS of the maps, essentially for the HTML tooltips.
The maps are generated using the Google Visualization API, specificaly the Geochart:
https://developers.google.com/chart/interactive/docs/gallery/geochart
Here some of the default CSS rules for the tooltips are overwritten.
You can customize the visual of the tooltips further editing the classes below.
The tooltips might also inherit some rules from your theme's CSS.
You can customize your map further with extra CSS. Read more about it here:
http://cmoreira.net/interactive-world-maps-demo/advanced-customization/
In case you need to add custom styles, include them below:
CUSTOM STYLES START
*/
.iwm_map_canvas {
/*overflow:hidden;*/
}
/* .iwm_map_canvas svg { display:none; } */
/*
Placeholder before the map is loaded
When Visual Composer are being used the
opacity changes to 1
*/
.iwm_placeholder {
opacity: 0;
background-color:#f5f5f5;
width:100%;
position: relative;
list-style: none;
text-align: center;
vertical-align: middle;
padding-top:25%;
font-size: 0.8em;
}
.iwm_placeholder:after {
padding-top: 25%;
display: block;
content: '';
}
/* Slightly different placeholder for Cornerstone */
.cs_iwm_placeholder {
opacity: 1;
background-color:#f5f5f5;
width:100%;
position: relative;
list-style: none;
text-align: center;
vertical-align: middle;
padding-top:25%;
font-size: 0.8em;
}
.cs_iwm_placeholder:after {
padding-top: 25%;
display: block;
content: '';
}
/* CUSTOM STYLES END */
.iwm_map_canvas li {
list-style: none !important;
}
.iwm_map_canvas text {
stroke-width:0;
cursor: pointer;
}
/* Reset for images used in the tooltip */
.iwm_map_canvas img {
border:none;
padding: 0;
margin: 0;
box-shadow: none;
}
/* workaround to prevent blinking when tooltip is hovered
will make tooltip not clickable, so if you have html links, don't use this
*/
/*
.iwm_map_canvas .google-visualization-tooltip {
pointer-events:none;
}
*/
/* Overlay maps, make background transparent */
.iwm_data rect { fill:none; }
/* overlay maps, mag lens background */
.iwm_data g g g[clip-path*='url(#_ABSTRACT_RENDERER_ID_'] g path {
display:block !important;
}
/* This is the main tooltip class. It's the tooltip wrapper div */
.iwm_map_canvas .google-visualization-tooltip {
z-index: 9999;
margin:0;
padding:8px;
color:#444;
word-wrap: normal;
font-family: inherit;
margin-right:-50px;
margin-bottom:-50px;
box-shadow: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
font-family: 'Arial';
}
/* overlay fix */
.iwm_map_canvas .google-visualization-tooltip {
pointer-events:all;
}
.iwm_map_canvas .google-visualization-tooltip ul,
.iwm_map_canvas .google-visualization-tooltip li,
.iwm_map_canvas .google-visualization-tooltip img {
margin: 0 !important;
padding: 0 !important;
border: 0;
outline: 0;
font-size: 100%;
line-height: 1.5em;
font-size: 1em;
text-decoration: none;
vertical-align: baseline;
list-style: none;
}
.iwm-list li {
cursor: pointer;
}
.iwm-controls {
position:absolute;
z-index: 10;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
outline: 0;
background:rgba(255,255,255,0.5);
border-radius: 2px;
padding: 2px;
}
.iwm-controls-top-left {
top:1%;
left:1%;
}
.iwm-controls-center-left {
bottom:50%;
left:1%;
}
.iwm-controls-top-right {
top:1%;
right:1%;
}
.iwm-controls-bottom-right {
bottom:1%;
right:1%;
}
.iwm-controls-bottom-left {
bottom:1%;
left:1%;
}
.iwm-controls-zoom-in, .iwm-controls-zoom-out {
font-family: Arial, Helvetica, sans-serif;
border-radius: 2px;
background: #292929;
padding: 3px;
/* margin:3px; */
color: white;
cursor: pointer;
line-height: 10px;
text-align: center;
box-sizing: content-box;
width: 10px;
height: 10px;
opacity: 0.7;
}
.iwm-controls-zoom-in {
margin-bottom:3px;
}
.iwm-controls-zoom-in:hover, .iwm-controls-zoom-out:hover {
opacity:1;
background: #303030;
}
/* zoom styles for overlay maps */
div[id*='iwm_control_'] {
width:100%;
display: inline-block;
position: relative;
list-style: none;
}
div[id*='iwm_control_']:after {
padding-top: 61.7%;
display: block;
content: '';
}
div[id*='iwm_control_'] div[id*='iwm_pan_container_'] {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
}
/*The content of the tooltip is rendered by the API in an unordered list
With 2 li entries, one for the title and other for the actual tooltip info.
*/
.iwm_map_canvas .google-visualization-tooltip-item-list {
list-style-type: none;
margin: 0;
padding: 0;
}
.iwm_map_canvas ul.google-visualization-tooltip-item-list {
list-style: none;
margin:0;
padding:0;
}
.iwm_map_canvas li.google-visualization-tooltip-item {
list-style: none;
margin:0;
padding:0;
}
.iwm_map_canvas .google-visualization-tooltip-item * {
margin:0;
padding:0;
list-style: none;
}
/* This rule controls the Title info */
.iwm_map_canvas .google-visualization-tooltip-item-list,
.iwm_map_canvas .google-visualization-tooltip-item:first-child {
list-style: none;
margin:0;
padding:0;
}
@media only screen and (max-width: 768px) {
.iwm-controls {
vertical-align: middle;
text-align: center;
}
.iwm-controls-zoom-in, .iwm-controls-zoom-out {
font-size:2em;
padding: 10px 5px;
text-align: center;
width:auto;
height:auto;
}
}
/* to hide tooltip title */
/*
.iwm_map_canvas .google-visualization-tooltip-item:first-child { display:none;}
*/
/* Google Defaults */
/*
.google-visualization-tooltip-action: hover {
background-color: #eeeeee;
}
.google-visualization-tooltip {
border:solid 1px #bdbdbd;
border-radius: 2px;
background-color: white;
position: absolute;
font-size: 12px;
padding: 0px;
box-shadow: 0px 2px 2px 0px rgba(204, 204, 204, 0.6);
-moz-box-shadow: 0px 2px 2px 0px rgba(204, 204, 204, 0.6);
-webkit-box-shadow: 0px 2px 2px 0px rgba(204, 204, 204, 0.6);
}
.google-visualization-tooltip-item-list {
list-style-type: none;
margin: 1em 0 1em 0;
padding: 0em;
}
.google-visualization-tooltip-item {
margin: 0.65em 0em 0.65em 0em;
padding: 0em 2em 0em 1em;
}
.google-visualization-tooltip-item-list
.google-visualization-tooltip-item:first-child {
margin: 1em 0em 1em 0em;
}
*/