Changeset 315 for binary-improvements/webserver/leaflet/leaflet.css
- Timestamp:
- Jan 31, 2018, 2:52:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/webserver/leaflet/leaflet.css
r133 r315 1 1 /* required styles */ 2 2 3 .leaflet- map-pane,3 .leaflet-pane, 4 4 .leaflet-tile, 5 5 .leaflet-marker-icon, 6 6 .leaflet-marker-shadow, 7 .leaflet-tile-pane,8 7 .leaflet-tile-container, 9 .leaflet-overlay-pane, 10 .leaflet-shadow-pane, 11 .leaflet-marker-pane, 12 .leaflet-popup-pane, 13 .leaflet-overlay-pane svg, 8 .leaflet-pane > svg, 9 .leaflet-pane > canvas, 14 10 .leaflet-zoom-box, 15 11 .leaflet-image-layer, … … 21 17 .leaflet-container { 22 18 overflow: hidden; 23 -ms-touch-action: none;24 19 } 25 20 .leaflet-tile, … … 29 24 -moz-user-select: none; 30 25 user-select: none; 31 -webkit-user-drag: none; 26 -webkit-user-drag: none; 27 } 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; 31 } 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; 32 37 } 33 38 .leaflet-marker-icon, … … 35 40 display: block; 36 41 } 37 /* map is broken in FF if you have max-width: 100% on tiles */ 38 .leaflet-container img { 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 { 39 49 max-width: none !important; 40 50 } 41 /* stupid Android 2 doesn't understand "max-width: none" properly */ 42 .leaflet-container img.leaflet-image-layer { 43 max-width: 15000px !important; 44 } 51 52 .leaflet-container.leaflet-touch-zoom { 53 -ms-touch-action: pan-x pan-y; 54 touch-action: pan-x pan-y; 55 } 56 .leaflet-container.leaflet-touch-drag { 57 -ms-touch-action: pinch-zoom; 58 } 59 .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom { 60 -ms-touch-action: none; 61 touch-action: none; 62 } 63 .leaflet-container { 64 -webkit-tap-highlight-color: transparent; 65 } 66 .leaflet-container a { 67 -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4); 68 } 45 69 .leaflet-tile { 46 70 filter: inherit; … … 53 77 width: 0; 54 78 height: 0; 79 -moz-box-sizing: border-box; 80 box-sizing: border-box; 81 z-index: 800; 55 82 } 56 83 /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */ … … 59 86 } 60 87 61 .leaflet-tile-pane { z-index: 2; } 62 .leaflet-objects-pane { z-index: 3; } 63 .leaflet-overlay-pane { z-index: 4; } 64 .leaflet-shadow-pane { z-index: 5; } 65 .leaflet-marker-pane { z-index: 6; } 66 .leaflet-popup-pane { z-index: 7; } 88 .leaflet-pane { z-index: 400; } 89 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; } 96 97 .leaflet-map-pane canvas { z-index: 100; } 98 .leaflet-map-pane svg { z-index: 200; } 67 99 68 100 .leaflet-vml-shape { … … 81 113 .leaflet-control { 82 114 position: relative; 83 z-index: 7; 115 z-index: 800; 116 pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */ 84 117 pointer-events: auto; 85 118 } … … 125 158 /* zoom and fade animations */ 126 159 127 .leaflet-fade-anim .leaflet-tile, 160 .leaflet-fade-anim .leaflet-tile { 161 will-change: opacity; 162 } 128 163 .leaflet-fade-anim .leaflet-popup { 129 164 opacity: 0; … … 133 168 transition: opacity 0.2s linear; 134 169 } 135 .leaflet-fade-anim .leaflet-tile-loaded,136 170 .leaflet-fade-anim .leaflet-map-pane .leaflet-popup { 137 171 opacity: 1; 138 172 } 139 173 .leaflet-zoom-animated { 174 -webkit-transform-origin: 0 0; 175 -ms-transform-origin: 0 0; 176 transform-origin: 0 0; 177 } 178 .leaflet-zoom-anim .leaflet-zoom-animated { 179 will-change: transform; 180 } 140 181 .leaflet-zoom-anim .leaflet-zoom-animated { 141 182 -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1); … … 145 186 } 146 187 .leaflet-zoom-anim .leaflet-tile, 147 .leaflet-pan-anim .leaflet-tile, 148 .leaflet-touching .leaflet-zoom-animated { 188 .leaflet-pan-anim .leaflet-tile { 149 189 -webkit-transition: none; 150 190 -moz-transition: none; … … 160 200 /* cursors */ 161 201 162 .leaflet- clickable {202 .leaflet-interactive { 163 203 cursor: pointer; 164 204 } 165 .leaflet- container{205 .leaflet-grab { 166 206 cursor: -webkit-grab; 167 207 cursor: -moz-grab; 208 } 209 .leaflet-crosshair, 210 .leaflet-crosshair .leaflet-interactive { 211 cursor: crosshair; 168 212 } 169 213 .leaflet-popup-pane, … … 171 215 cursor: auto; 172 216 } 173 .leaflet-dragging .leaflet-container, 174 .leaflet-dragging .leaflet-clickable { 217 .leaflet-dragging .leaflet-grab, 218 .leaflet-dragging .leaflet-grab .leaflet-interactive, 219 .leaflet-dragging .leaflet-marker-draggable { 175 220 cursor: move; 176 221 cursor: -webkit-grabbing; … … 178 223 } 179 224 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; 232 } 233 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; 239 } 180 240 181 241 /* visual tweaks */ … … 250 310 line-height: 30px; 251 311 } 252 312 .leaflet-touch .leaflet-bar a:first-child { 313 border-top-left-radius: 2px; 314 border-top-right-radius: 2px; 315 } 316 .leaflet-touch .leaflet-bar a:last-child { 317 border-bottom-left-radius: 2px; 318 border-bottom-right-radius: 2px; 319 } 253 320 254 321 /* zoom control */ … … 259 326 text-indent: 1px; 260 327 } 261 .leaflet-control-zoom-out { 262 font-size: 20px; 263 } 264 265 .leaflet-touch .leaflet-control-zoom-in { 328 329 .leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out { 266 330 font-size: 22px; 267 }268 .leaflet-touch .leaflet-control-zoom-out {269 font-size: 24px;270 331 } 271 332 … … 304 365 background: #fff; 305 366 } 367 .leaflet-control-layers-scrollbar { 368 overflow-y: scroll; 369 overflow-x: hidden; 370 padding-right: 5px; 371 } 306 372 .leaflet-control-layers-selector { 307 373 margin-top: 2px; … … 316 382 border-top: 1px solid #ddd; 317 383 margin: 5px -10px 5px -6px; 384 } 385 386 /* Default icon URLs */ 387 .leaflet-default-icon-path { 388 background-image: url(images/marker-icon.png); 318 389 } 319 390 … … 355 426 white-space: nowrap; 356 427 overflow: hidden; 357 -moz-box-sizing: content-box;358 box-sizing: content-box;428 -moz-box-sizing: border-box; 429 box-sizing: border-box; 359 430 360 431 background: #fff; … … 387 458 position: absolute; 388 459 text-align: center; 460 margin-bottom: 20px; 389 461 } 390 462 .leaflet-popup-content-wrapper { … … 401 473 } 402 474 .leaflet-popup-tip-container { 403 margin: 0 auto;404 475 width: 40px; 405 476 height: 20px; 406 position: relative; 477 position: absolute; 478 left: 50%; 479 margin-left: -20px; 407 480 overflow: hidden; 481 pointer-events: none; 408 482 } 409 483 .leaflet-popup-tip { … … 423 497 .leaflet-popup-tip { 424 498 background: white; 425 499 color: #333; 426 500 box-shadow: 0 3px 14px rgba(0,0,0,0.4); 427 501 } … … 431 505 right: 0; 432 506 padding: 4px 4px 0 0; 507 border: none; 433 508 text-align: center; 434 509 width: 18px; … … 477 552 border: 1px solid #666; 478 553 } 554 555 556 /* Tooltip */ 557 /* Base styles for the element that has a tooltip */ 558 .leaflet-tooltip { 559 position: absolute; 560 padding: 6px; 561 background-color: #fff; 562 border: 1px solid #fff; 563 border-radius: 3px; 564 color: #222; 565 white-space: nowrap; 566 -webkit-user-select: none; 567 -moz-user-select: none; 568 -ms-user-select: none; 569 user-select: none; 570 pointer-events: none; 571 box-shadow: 0 1px 3px rgba(0,0,0,0.4); 572 } 573 .leaflet-tooltip.leaflet-clickable { 574 cursor: pointer; 575 pointer-events: auto; 576 } 577 .leaflet-tooltip-top:before, 578 .leaflet-tooltip-bottom:before, 579 .leaflet-tooltip-left:before, 580 .leaflet-tooltip-right:before { 581 position: absolute; 582 pointer-events: none; 583 border: 6px solid transparent; 584 background: transparent; 585 content: ""; 586 } 587 588 /* Directions */ 589 590 .leaflet-tooltip-bottom { 591 margin-top: 6px; 592 } 593 .leaflet-tooltip-top { 594 margin-top: -6px; 595 } 596 .leaflet-tooltip-bottom:before, 597 .leaflet-tooltip-top:before { 598 left: 50%; 599 margin-left: -6px; 600 } 601 .leaflet-tooltip-top:before { 602 bottom: 0; 603 margin-bottom: -12px; 604 border-top-color: #fff; 605 } 606 .leaflet-tooltip-bottom:before { 607 top: 0; 608 margin-top: -12px; 609 margin-left: -6px; 610 border-bottom-color: #fff; 611 } 612 .leaflet-tooltip-left { 613 margin-left: -6px; 614 } 615 .leaflet-tooltip-right { 616 margin-left: 6px; 617 } 618 .leaflet-tooltip-left:before, 619 .leaflet-tooltip-right:before { 620 top: 50%; 621 margin-top: -6px; 622 } 623 .leaflet-tooltip-left:before { 624 right: 0; 625 margin-right: -12px; 626 border-left-color: #fff; 627 } 628 .leaflet-tooltip-right:before { 629 left: 0; 630 margin-left: -12px; 631 border-right-color: #fff; 632 }
Note:
See TracChangeset
for help on using the changeset viewer.