prep for intercross wishlist
[sgn.git] / static / css / leaflet.css
blob8f61c2f3f9cc4c701f7e97a62780414bb5938b46
1 /* required styles */
3 .leaflet-pane,
4 .leaflet-tile,
5 .leaflet-marker-icon,
6 .leaflet-marker-shadow,
7 .leaflet-tile-container,
8 .leaflet-pane > svg,
9 .leaflet-pane > canvas,
10 .leaflet-zoom-box,
11 .leaflet-image-layer,
12 .leaflet-layer {
13 position: absolute;
14 left: 0;
15 top: 0;
17 .leaflet-container {
18 overflow: hidden;
20 .leaflet-tile,
21 .leaflet-marker-icon,
22 .leaflet-marker-shadow {
23 -webkit-user-select: none;
24 -moz-user-select: none;
25 user-select: none;
26 -webkit-user-drag: none;
28 /* Safari renders non-retina tile on retina better with this, but Chrome is worse */
29 .leaflet-safari .leaflet-tile {
30 image-rendering: -webkit-optimize-contrast;
32 /* hack that prevents hw layers "stretching" when loading new tiles */
33 .leaflet-safari .leaflet-tile-container {
34 width: 1600px;
35 height: 1600px;
36 -webkit-transform-origin: 0 0;
38 .leaflet-marker-icon,
39 .leaflet-marker-shadow {
40 display: block;
42 /* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
43 /* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
44 .leaflet-container .leaflet-overlay-pane svg,
45 .leaflet-container .leaflet-marker-pane img,
46 .leaflet-container .leaflet-shadow-pane img,
47 .leaflet-container .leaflet-tile-pane img,
48 .leaflet-container img.leaflet-image-layer {
49 max-width: none !important;
52 .leaflet-container.leaflet-touch-zoom {
53 -ms-touch-action: pan-x pan-y;
54 touch-action: pan-x pan-y;
56 .leaflet-container.leaflet-touch-drag {
57 -ms-touch-action: pinch-zoom;
59 .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
60 -ms-touch-action: none;
61 touch-action: none;
63 .leaflet-container {
64 -webkit-tap-highlight-color: transparent;
66 .leaflet-container a {
67 -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
69 .leaflet-tile {
70 filter: inherit;
71 visibility: hidden;
73 .leaflet-tile-loaded {
74 visibility: inherit;
76 .leaflet-zoom-box {
77 width: 0;
78 height: 0;
79 -moz-box-sizing: border-box;
80 box-sizing: border-box;
81 z-index: 800;
83 /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
84 .leaflet-overlay-pane svg {
85 -moz-user-select: none;
88 .leaflet-pane { z-index: 400; }
90 .leaflet-tile-pane { z-index: 200; }
91 .leaflet-overlay-pane { z-index: 400; }
92 .leaflet-shadow-pane { z-index: 500; }
93 .leaflet-marker-pane { z-index: 600; }
94 .leaflet-tooltip-pane { z-index: 650; }
95 .leaflet-popup-pane { z-index: 700; }
97 .leaflet-map-pane canvas { z-index: 100; }
98 .leaflet-map-pane svg { z-index: 200; }
100 .leaflet-vml-shape {
101 width: 1px;
102 height: 1px;
104 .lvml {
105 behavior: url(#default#VML);
106 display: inline-block;
107 position: absolute;
111 /* control positioning */
113 .leaflet-control {
114 position: relative;
115 z-index: 800;
116 pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
117 pointer-events: auto;
119 .leaflet-top,
120 .leaflet-bottom {
121 position: absolute;
122 z-index: 1000;
123 pointer-events: none;
125 .leaflet-top {
126 top: 0;
128 .leaflet-right {
129 right: 0;
131 .leaflet-bottom {
132 bottom: 0;
134 .leaflet-left {
135 left: 0;
137 .leaflet-control {
138 float: left;
139 clear: both;
141 .leaflet-right .leaflet-control {
142 float: right;
144 .leaflet-top .leaflet-control {
145 margin-top: 10px;
147 .leaflet-bottom .leaflet-control {
148 margin-bottom: 10px;
150 .leaflet-left .leaflet-control {
151 margin-left: 10px;
153 .leaflet-right .leaflet-control {
154 margin-right: 10px;
158 /* zoom and fade animations */
160 .leaflet-fade-anim .leaflet-tile {
161 will-change: opacity;
163 .leaflet-fade-anim .leaflet-popup {
164 opacity: 0;
165 -webkit-transition: opacity 0.2s linear;
166 -moz-transition: opacity 0.2s linear;
167 -o-transition: opacity 0.2s linear;
168 transition: opacity 0.2s linear;
170 .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
171 opacity: 1;
173 .leaflet-zoom-animated {
174 -webkit-transform-origin: 0 0;
175 -ms-transform-origin: 0 0;
176 transform-origin: 0 0;
178 .leaflet-zoom-anim .leaflet-zoom-animated {
179 will-change: transform;
181 .leaflet-zoom-anim .leaflet-zoom-animated {
182 -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
183 -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
184 -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
185 transition: transform 0.25s cubic-bezier(0,0,0.25,1);
187 .leaflet-zoom-anim .leaflet-tile,
188 .leaflet-pan-anim .leaflet-tile {
189 -webkit-transition: none;
190 -moz-transition: none;
191 -o-transition: none;
192 transition: none;
195 .leaflet-zoom-anim .leaflet-zoom-hide {
196 visibility: hidden;
200 /* cursors */
202 .leaflet-interactive {
203 cursor: pointer;
205 .leaflet-grab {
206 cursor: -webkit-grab;
207 cursor: -moz-grab;
209 .leaflet-crosshair,
210 .leaflet-crosshair .leaflet-interactive {
211 cursor: crosshair;
213 .leaflet-popup-pane,
214 .leaflet-control {
215 cursor: auto;
217 .leaflet-dragging .leaflet-grab,
218 .leaflet-dragging .leaflet-grab .leaflet-interactive,
219 .leaflet-dragging .leaflet-marker-draggable {
220 cursor: move;
221 cursor: -webkit-grabbing;
222 cursor: -moz-grabbing;
225 /* marker & overlays interactivity */
226 .leaflet-marker-icon,
227 .leaflet-marker-shadow,
228 .leaflet-image-layer,
229 .leaflet-pane > svg path,
230 .leaflet-tile-container {
231 pointer-events: none;
234 .leaflet-marker-icon.leaflet-interactive,
235 .leaflet-image-layer.leaflet-interactive,
236 .leaflet-pane > svg path.leaflet-interactive {
237 pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
238 pointer-events: auto;
241 /* visual tweaks */
243 .leaflet-container {
244 background: #ddd;
245 outline: 0;
247 .leaflet-container a {
248 color: #0078A8;
250 .leaflet-container a.leaflet-active {
251 outline: 2px solid orange;
253 .leaflet-zoom-box {
254 border: 2px dotted #38f;
255 background: rgba(255,255,255,0.5);
259 /* general typography */
260 .leaflet-container {
261 font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
265 /* general toolbar styles */
267 .leaflet-bar {
268 box-shadow: 0 1px 5px rgba(0,0,0,0.65);
269 border-radius: 4px;
271 .leaflet-bar a,
272 .leaflet-bar a:hover {
273 background-color: #fff;
274 border-bottom: 1px solid #ccc;
275 width: 26px;
276 height: 26px;
277 line-height: 26px;
278 display: block;
279 text-align: center;
280 text-decoration: none;
281 color: black;
283 .leaflet-bar a,
284 .leaflet-control-layers-toggle {
285 background-position: 50% 50%;
286 background-repeat: no-repeat;
287 display: block;
289 .leaflet-bar a:hover {
290 background-color: #f4f4f4;
292 .leaflet-bar a:first-child {
293 border-top-left-radius: 4px;
294 border-top-right-radius: 4px;
296 .leaflet-bar a:last-child {
297 border-bottom-left-radius: 4px;
298 border-bottom-right-radius: 4px;
299 border-bottom: none;
301 .leaflet-bar a.leaflet-disabled {
302 cursor: default;
303 background-color: #f4f4f4;
304 color: #bbb;
307 .leaflet-touch .leaflet-bar a {
308 width: 30px;
309 height: 30px;
310 line-height: 30px;
312 .leaflet-touch .leaflet-bar a:first-child {
313 border-top-left-radius: 2px;
314 border-top-right-radius: 2px;
316 .leaflet-touch .leaflet-bar a:last-child {
317 border-bottom-left-radius: 2px;
318 border-bottom-right-radius: 2px;
321 /* zoom control */
323 .leaflet-control-zoom-in,
324 .leaflet-control-zoom-out {
325 font: bold 18px 'Lucida Console', Monaco, monospace;
326 text-indent: 1px;
329 .leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
330 font-size: 22px;
334 /* layers control */
336 .leaflet-control-layers {
337 box-shadow: 0 1px 5px rgba(0,0,0,0.4);
338 background: #fff;
339 border-radius: 5px;
341 .leaflet-control-layers-toggle {
342 background-image: url(images/layers.png);
343 width: 36px;
344 height: 36px;
346 .leaflet-retina .leaflet-control-layers-toggle {
347 background-image: url(images/layers-2x.png);
348 background-size: 26px 26px;
350 .leaflet-touch .leaflet-control-layers-toggle {
351 width: 44px;
352 height: 44px;
354 .leaflet-control-layers .leaflet-control-layers-list,
355 .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
356 display: none;
358 .leaflet-control-layers-expanded .leaflet-control-layers-list {
359 display: block;
360 position: relative;
362 .leaflet-control-layers-expanded {
363 padding: 6px 10px 6px 6px;
364 color: #333;
365 background: #fff;
367 .leaflet-control-layers-scrollbar {
368 overflow-y: scroll;
369 padding-right: 5px;
371 .leaflet-control-layers-selector {
372 margin-top: 2px;
373 position: relative;
374 top: 1px;
376 .leaflet-control-layers label {
377 display: block;
379 .leaflet-control-layers-separator {
380 height: 0;
381 border-top: 1px solid #ddd;
382 margin: 5px -10px 5px -6px;
385 /* Default icon URLs */
386 .leaflet-default-icon-path {
387 background-image: url(images/marker-icon.png);
391 /* attribution and scale controls */
393 .leaflet-container .leaflet-control-attribution {
394 background: #fff;
395 background: rgba(255, 255, 255, 0.7);
396 margin: 0;
398 .leaflet-control-attribution,
399 .leaflet-control-scale-line {
400 padding: 0 5px;
401 color: #333;
403 .leaflet-control-attribution a {
404 text-decoration: none;
406 .leaflet-control-attribution a:hover {
407 text-decoration: underline;
409 .leaflet-container .leaflet-control-attribution,
410 .leaflet-container .leaflet-control-scale {
411 font-size: 11px;
413 .leaflet-left .leaflet-control-scale {
414 margin-left: 5px;
416 .leaflet-bottom .leaflet-control-scale {
417 margin-bottom: 5px;
419 .leaflet-control-scale-line {
420 border: 2px solid #777;
421 border-top: none;
422 line-height: 1.1;
423 padding: 2px 5px 1px;
424 font-size: 11px;
425 white-space: nowrap;
426 overflow: hidden;
427 -moz-box-sizing: border-box;
428 box-sizing: border-box;
430 background: #fff;
431 background: rgba(255, 255, 255, 0.5);
433 .leaflet-control-scale-line:not(:first-child) {
434 border-top: 2px solid #777;
435 border-bottom: none;
436 margin-top: -2px;
438 .leaflet-control-scale-line:not(:first-child):not(:last-child) {
439 border-bottom: 2px solid #777;
442 .leaflet-touch .leaflet-control-attribution,
443 .leaflet-touch .leaflet-control-layers,
444 .leaflet-touch .leaflet-bar {
445 box-shadow: none;
447 .leaflet-touch .leaflet-control-layers,
448 .leaflet-touch .leaflet-bar {
449 border: 2px solid rgba(0,0,0,0.2);
450 background-clip: padding-box;
454 /* popup */
456 .leaflet-popup {
457 position: absolute;
458 text-align: center;
459 margin-bottom: 20px;
461 .leaflet-popup-content-wrapper {
462 padding: 1px;
463 text-align: left;
464 border-radius: 12px;
466 .leaflet-popup-content {
467 margin: 13px 19px;
468 line-height: 1.4;
470 .leaflet-popup-content p {
471 margin: 18px 0;
473 .leaflet-popup-tip-container {
474 width: 40px;
475 height: 20px;
476 position: absolute;
477 left: 50%;
478 margin-left: -20px;
479 overflow: hidden;
480 pointer-events: none;
482 .leaflet-popup-tip {
483 width: 17px;
484 height: 17px;
485 padding: 1px;
487 margin: -10px auto 0;
489 -webkit-transform: rotate(45deg);
490 -moz-transform: rotate(45deg);
491 -ms-transform: rotate(45deg);
492 -o-transform: rotate(45deg);
493 transform: rotate(45deg);
495 .leaflet-popup-content-wrapper,
496 .leaflet-popup-tip {
497 background: white;
498 color: #333;
499 box-shadow: 0 3px 14px rgba(0,0,0,0.4);
501 .leaflet-container a.leaflet-popup-close-button {
502 position: absolute;
503 top: 0;
504 right: 0;
505 padding: 4px 4px 0 0;
506 border: none;
507 text-align: center;
508 width: 18px;
509 height: 14px;
510 font: 16px/14px Tahoma, Verdana, sans-serif;
511 color: #c3c3c3;
512 text-decoration: none;
513 font-weight: bold;
514 background: transparent;
516 .leaflet-container a.leaflet-popup-close-button:hover {
517 color: #999;
519 .leaflet-popup-scrolled {
520 overflow: auto;
521 border-bottom: 1px solid #ddd;
522 border-top: 1px solid #ddd;
525 .leaflet-oldie .leaflet-popup-content-wrapper {
526 zoom: 1;
528 .leaflet-oldie .leaflet-popup-tip {
529 width: 24px;
530 margin: 0 auto;
532 -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
533 filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
535 .leaflet-oldie .leaflet-popup-tip-container {
536 margin-top: -1px;
539 .leaflet-oldie .leaflet-control-zoom,
540 .leaflet-oldie .leaflet-control-layers,
541 .leaflet-oldie .leaflet-popup-content-wrapper,
542 .leaflet-oldie .leaflet-popup-tip {
543 border: 1px solid #999;
547 /* div icon */
549 .leaflet-div-icon {
550 background: #fff;
551 border: 1px solid #666;
555 /* Tooltip */
556 /* Base styles for the element that has a tooltip */
557 .leaflet-tooltip {
558 position: absolute;
559 padding: 6px;
560 background-color: #fff;
561 border: 1px solid #fff;
562 border-radius: 3px;
563 color: #222;
564 white-space: nowrap;
565 -webkit-user-select: none;
566 -moz-user-select: none;
567 -ms-user-select: none;
568 user-select: none;
569 pointer-events: none;
570 box-shadow: 0 1px 3px rgba(0,0,0,0.4);
572 .leaflet-tooltip.leaflet-clickable {
573 cursor: pointer;
574 pointer-events: auto;
576 .leaflet-tooltip-top:before,
577 .leaflet-tooltip-bottom:before,
578 .leaflet-tooltip-left:before,
579 .leaflet-tooltip-right:before {
580 position: absolute;
581 pointer-events: none;
582 border: 6px solid transparent;
583 background: transparent;
584 content: "";
587 /* Directions */
589 .leaflet-tooltip-bottom {
590 margin-top: 6px;
592 .leaflet-tooltip-top {
593 margin-top: -6px;
595 .leaflet-tooltip-bottom:before,
596 .leaflet-tooltip-top:before {
597 left: 50%;
598 margin-left: -6px;
600 .leaflet-tooltip-top:before {
601 bottom: 0;
602 margin-bottom: -12px;
603 border-top-color: #fff;
605 .leaflet-tooltip-bottom:before {
606 top: 0;
607 margin-top: -12px;
608 margin-left: -6px;
609 border-bottom-color: #fff;
611 .leaflet-tooltip-left {
612 margin-left: -6px;
614 .leaflet-tooltip-right {
615 margin-left: 6px;
617 .leaflet-tooltip-left:before,
618 .leaflet-tooltip-right:before {
619 top: 50%;
620 margin-top: -6px;
622 .leaflet-tooltip-left:before {
623 right: 0;
624 margin-right: -12px;
625 border-left-color: #fff;
627 .leaflet-tooltip-right:before {
628 left: 0;
629 margin-left: -12px;
630 border-right-color: #fff;