leaflet1.2.0.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. /* required styles */
  2. .leaflet-pane,
  3. .leaflet-tile,
  4. .leaflet-marker-icon,
  5. .leaflet-marker-shadow,
  6. .leaflet-tile-container,
  7. .leaflet-pane > svg,
  8. .leaflet-pane > canvas,
  9. .leaflet-zoom-box,
  10. .leaflet-image-layer,
  11. .leaflet-layer {
  12. position: absolute;
  13. left: 0;
  14. top: 0;
  15. }
  16. .leaflet-container {
  17. overflow: hidden;
  18. }
  19. .leaflet-tile,
  20. .leaflet-marker-icon,
  21. .leaflet-marker-shadow {
  22. -webkit-user-select: none;
  23. -moz-user-select: none;
  24. user-select: none;
  25. -webkit-user-drag: none;
  26. }
  27. /* Safari renders non-retina tile on retina better with this, but Chrome is worse */
  28. .leaflet-safari .leaflet-tile {
  29. image-rendering: -webkit-optimize-contrast;
  30. }
  31. /* hack that prevents hw layers "stretching" when loading new tiles */
  32. .leaflet-safari .leaflet-tile-container {
  33. width: 1600px;
  34. height: 1600px;
  35. -webkit-transform-origin: 0 0;
  36. }
  37. .leaflet-marker-icon,
  38. .leaflet-marker-shadow {
  39. display: block;
  40. }
  41. /* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
  42. /* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
  43. .leaflet-container .leaflet-overlay-pane svg,
  44. .leaflet-container .leaflet-marker-pane img,
  45. .leaflet-container .leaflet-shadow-pane img,
  46. .leaflet-container .leaflet-tile-pane img,
  47. .leaflet-container img.leaflet-image-layer {
  48. max-width: none !important;
  49. }
  50. .leaflet-container.leaflet-touch-zoom {
  51. -ms-touch-action: pan-x pan-y;
  52. touch-action: pan-x pan-y;
  53. }
  54. .leaflet-container.leaflet-touch-drag {
  55. -ms-touch-action: pinch-zoom;
  56. }
  57. .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  58. -ms-touch-action: none;
  59. touch-action: none;
  60. }
  61. .leaflet-container {
  62. -webkit-tap-highlight-color: transparent;
  63. }
  64. .leaflet-container a {
  65. -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
  66. }
  67. .leaflet-tile {
  68. filter: inherit;
  69. visibility: hidden;
  70. }
  71. .leaflet-tile-loaded {
  72. visibility: inherit;
  73. }
  74. .leaflet-zoom-box {
  75. width: 0;
  76. height: 0;
  77. -moz-box-sizing: border-box;
  78. box-sizing: border-box;
  79. z-index: 800;
  80. }
  81. /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
  82. .leaflet-overlay-pane svg {
  83. -moz-user-select: none;
  84. }
  85. .leaflet-pane { z-index: 400; }
  86. .leaflet-tile-pane { z-index: 200; }
  87. .leaflet-overlay-pane { z-index: 400; }
  88. .leaflet-shadow-pane { z-index: 500; }
  89. .leaflet-marker-pane { z-index: 600; }
  90. .leaflet-tooltip-pane { z-index: 650; }
  91. .leaflet-popup-pane { z-index: 700; }
  92. .leaflet-map-pane canvas { z-index: 100; }
  93. .leaflet-map-pane svg { z-index: 200; }
  94. .leaflet-vml-shape {
  95. width: 1px;
  96. height: 1px;
  97. }
  98. .lvml {
  99. behavior: url(#default#VML);
  100. display: inline-block;
  101. position: absolute;
  102. }
  103. /* control positioning */
  104. .leaflet-control {
  105. position: relative;
  106. z-index: 800;
  107. pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
  108. pointer-events: auto;
  109. }
  110. .leaflet-top,
  111. .leaflet-bottom {
  112. position: absolute;
  113. z-index: 1000;
  114. pointer-events: none;
  115. }
  116. .leaflet-top {
  117. top: 0;
  118. }
  119. .leaflet-right {
  120. right: 0;
  121. }
  122. .leaflet-bottom {
  123. bottom: 0;
  124. }
  125. .leaflet-left {
  126. left: 0;
  127. }
  128. .leaflet-control {
  129. float: left;
  130. clear: both;
  131. }
  132. .leaflet-right .leaflet-control {
  133. float: right;
  134. }
  135. .leaflet-top .leaflet-control {
  136. margin-top: 10px;
  137. }
  138. .leaflet-bottom .leaflet-control {
  139. margin-bottom: 10px;
  140. }
  141. .leaflet-left .leaflet-control {
  142. margin-left: 10px;
  143. }
  144. .leaflet-right .leaflet-control {
  145. margin-right: 10px;
  146. }
  147. /* zoom and fade animations */
  148. .leaflet-fade-anim .leaflet-tile {
  149. will-change: opacity;
  150. }
  151. .leaflet-fade-anim .leaflet-popup {
  152. opacity: 0;
  153. -webkit-transition: opacity 0.2s linear;
  154. -moz-transition: opacity 0.2s linear;
  155. -o-transition: opacity 0.2s linear;
  156. transition: opacity 0.2s linear;
  157. }
  158. .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
  159. opacity: 1;
  160. }
  161. .leaflet-zoom-animated {
  162. -webkit-transform-origin: 0 0;
  163. -ms-transform-origin: 0 0;
  164. transform-origin: 0 0;
  165. }
  166. .leaflet-zoom-anim .leaflet-zoom-animated {
  167. will-change: transform;
  168. }
  169. .leaflet-zoom-anim .leaflet-zoom-animated {
  170. -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
  171. -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
  172. -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
  173. transition: transform 0.25s cubic-bezier(0,0,0.25,1);
  174. }
  175. .leaflet-zoom-anim .leaflet-tile,
  176. .leaflet-pan-anim .leaflet-tile {
  177. -webkit-transition: none;
  178. -moz-transition: none;
  179. -o-transition: none;
  180. transition: none;
  181. }
  182. .leaflet-zoom-anim .leaflet-zoom-hide {
  183. visibility: hidden;
  184. }
  185. /* cursors */
  186. .leaflet-interactive {
  187. cursor: pointer;
  188. }
  189. .leaflet-grab {
  190. cursor: -webkit-grab;
  191. cursor: -moz-grab;
  192. }
  193. .leaflet-crosshair,
  194. .leaflet-crosshair .leaflet-interactive {
  195. cursor: crosshair;
  196. }
  197. .leaflet-popup-pane,
  198. .leaflet-control {
  199. cursor: auto;
  200. }
  201. .leaflet-dragging .leaflet-grab,
  202. .leaflet-dragging .leaflet-grab .leaflet-interactive,
  203. .leaflet-dragging .leaflet-marker-draggable {
  204. cursor: move;
  205. cursor: -webkit-grabbing;
  206. cursor: -moz-grabbing;
  207. }
  208. /* marker & overlays interactivity */
  209. .leaflet-marker-icon,
  210. .leaflet-marker-shadow,
  211. .leaflet-image-layer,
  212. .leaflet-pane > svg path,
  213. .leaflet-tile-container {
  214. pointer-events: none;
  215. }
  216. .leaflet-marker-icon.leaflet-interactive,
  217. .leaflet-image-layer.leaflet-interactive,
  218. .leaflet-pane > svg path.leaflet-interactive {
  219. pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
  220. pointer-events: auto;
  221. }
  222. /* visual tweaks */
  223. .leaflet-container {
  224. background: #ddd;
  225. outline: 0;
  226. }
  227. .leaflet-container a {
  228. color: #0078A8;
  229. }
  230. .leaflet-container a.leaflet-active {
  231. outline: 2px solid orange;
  232. }
  233. .leaflet-zoom-box {
  234. border: 2px dotted #38f;
  235. background: rgba(255,255,255,0.5);
  236. }
  237. /* general typography */
  238. .leaflet-container {
  239. font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
  240. }
  241. /* general toolbar styles */
  242. .leaflet-bar {
  243. box-shadow: 0 1px 5px rgba(0,0,0,0.65);
  244. border-radius: 4px;
  245. }
  246. .leaflet-bar a,
  247. .leaflet-bar a:hover {
  248. background-color: #fff;
  249. border-bottom: 1px solid #ccc;
  250. width: 26px;
  251. height: 26px;
  252. line-height: 26px;
  253. display: block;
  254. text-align: center;
  255. text-decoration: none;
  256. color: black;
  257. }
  258. .leaflet-bar a,
  259. .leaflet-control-layers-toggle {
  260. background-position: 50% 50%;
  261. background-repeat: no-repeat;
  262. display: block;
  263. }
  264. .leaflet-bar a:hover {
  265. background-color: #f4f4f4;
  266. }
  267. .leaflet-bar a:first-child {
  268. border-top-left-radius: 4px;
  269. border-top-right-radius: 4px;
  270. }
  271. .leaflet-bar a:last-child {
  272. border-bottom-left-radius: 4px;
  273. border-bottom-right-radius: 4px;
  274. border-bottom: none;
  275. }
  276. .leaflet-bar a.leaflet-disabled {
  277. cursor: default;
  278. background-color: #f4f4f4;
  279. color: #bbb;
  280. }
  281. .leaflet-touch .leaflet-bar a {
  282. width: 30px;
  283. height: 30px;
  284. line-height: 30px;
  285. }
  286. .leaflet-touch .leaflet-bar a:first-child {
  287. border-top-left-radius: 2px;
  288. border-top-right-radius: 2px;
  289. }
  290. .leaflet-touch .leaflet-bar a:last-child {
  291. border-bottom-left-radius: 2px;
  292. border-bottom-right-radius: 2px;
  293. }
  294. /* zoom control */
  295. .leaflet-control-zoom-in,
  296. .leaflet-control-zoom-out {
  297. font: bold 18px 'Lucida Console', Monaco, monospace;
  298. text-indent: 1px;
  299. }
  300. .leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
  301. font-size: 22px;
  302. }
  303. /* layers control */
  304. .leaflet-control-layers {
  305. box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  306. background: #fff;
  307. border-radius: 5px;
  308. }
  309. .leaflet-control-layers-toggle {
  310. background-image: url(images/layers.png);
  311. width: 36px;
  312. height: 36px;
  313. }
  314. .leaflet-retina .leaflet-control-layers-toggle {
  315. background-image: url(images/layers-2x.png);
  316. background-size: 26px 26px;
  317. }
  318. .leaflet-touch .leaflet-control-layers-toggle {
  319. width: 44px;
  320. height: 44px;
  321. }
  322. .leaflet-control-layers .leaflet-control-layers-list,
  323. .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  324. display: none;
  325. }
  326. .leaflet-control-layers-expanded .leaflet-control-layers-list {
  327. display: block;
  328. position: relative;
  329. }
  330. .leaflet-control-layers-expanded {
  331. padding: 6px 10px 6px 6px;
  332. color: #333;
  333. background: #fff;
  334. }
  335. .leaflet-control-layers-scrollbar {
  336. overflow-y: scroll;
  337. overflow-x: hidden;
  338. padding-right: 5px;
  339. }
  340. .leaflet-control-layers-selector {
  341. margin-top: 2px;
  342. position: relative;
  343. top: 1px;
  344. }
  345. .leaflet-control-layers label {
  346. display: block;
  347. }
  348. .leaflet-control-layers-separator {
  349. height: 0;
  350. border-top: 1px solid #ddd;
  351. margin: 5px -10px 5px -6px;
  352. }
  353. /* Default icon URLs */
  354. .leaflet-default-icon-path {
  355. background-image: url(images/marker-icon.png);
  356. }
  357. /* attribution and scale controls */
  358. .leaflet-container .leaflet-control-attribution {
  359. background: #fff;
  360. background: rgba(255, 255, 255, 0.7);
  361. margin: 0;
  362. }
  363. .leaflet-control-attribution {
  364. padding: 0 5px;
  365. color: #333;
  366. }
  367. .leaflet-control-attribution a {
  368. text-decoration: none;
  369. }
  370. .leaflet-control-attribution a:hover {
  371. text-decoration: underline;
  372. }
  373. .leaflet-container .leaflet-control-attribution,
  374. .leaflet-container .leaflet-control-scale {
  375. font-size: 11px;
  376. }
  377. .leaflet-left .leaflet-control-scale {
  378. margin-left: 5px;
  379. }
  380. .leaflet-bottom .leaflet-control-scale {
  381. margin-bottom: 5px;
  382. }
  383. .leaflet-touch .leaflet-control-attribution,
  384. .leaflet-touch .leaflet-control-layers,
  385. .leaflet-touch .leaflet-bar {
  386. box-shadow: none;
  387. }
  388. .leaflet-touch .leaflet-control-layers,
  389. .leaflet-touch .leaflet-bar {
  390. border: 2px solid rgba(0,0,0,0.2);
  391. background-clip: padding-box;
  392. }
  393. /* popup */
  394. .toolBF .leaflet-popup {
  395. position: absolute;
  396. text-align: center;
  397. margin-bottom: 20px;
  398. }
  399. .toolBF .leaflet-popup-content-wrapper {
  400. padding: 1px;
  401. text-align: left;
  402. border-radius: 12px;
  403. }
  404. .toolBF .leaflet-popup-content {
  405. margin: 13px 19px;
  406. line-height: 1.4;
  407. }
  408. .toolBF .leaflet-popup-content p {
  409. margin: 18px 0;
  410. }
  411. .toolBF .leaflet-popup-tip-container {
  412. width: 40px;
  413. height: 20px;
  414. position: absolute;
  415. left: 50%;
  416. margin-left: -20px;
  417. overflow: hidden;
  418. pointer-events: none;
  419. }
  420. .toolBF .leaflet-popup-tip {
  421. width: 17px;
  422. height: 17px;
  423. padding: 1px;
  424. margin: -10px auto 0;
  425. -webkit-transform: rotate(45deg);
  426. -moz-transform: rotate(45deg);
  427. -ms-transform: rotate(45deg);
  428. -o-transform: rotate(45deg);
  429. transform: rotate(45deg);
  430. }
  431. .toolBF .leaflet-popup-content-wrapper,
  432. .toolBF .leaflet-popup-tip {
  433. background: white;
  434. color: #333;
  435. box-shadow: 0 3px 14px rgba(0,0,0,0.4);
  436. }
  437. .toolBF .leaflet-container a.leaflet-popup-close-button {
  438. position: absolute;
  439. top: 0;
  440. right: 0;
  441. padding: 4px 4px 0 0;
  442. border: none;
  443. text-align: center;
  444. width: 18px;
  445. height: 14px;
  446. font: 16px/14px Tahoma, Verdana, sans-serif;
  447. color: #c3c3c3;
  448. text-decoration: none;
  449. font-weight: bold;
  450. background: transparent;
  451. }
  452. .toolBF .leaflet-container a.leaflet-popup-close-button:hover {
  453. color: #999;
  454. }
  455. .toolBF .leaflet-popup-scrolled {
  456. overflow: auto;
  457. border-bottom: 1px solid #ddd;
  458. border-top: 1px solid #ddd;
  459. }
  460. .toolBF .leaflet-oldie .leaflet-popup-content-wrapper {
  461. zoom: 1;
  462. }
  463. .toolBF .leaflet-oldie .leaflet-popup-tip {
  464. width: 24px;
  465. margin: 0 auto;
  466. -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
  467. filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
  468. }
  469. .toolBF .leaflet-oldie .leaflet-popup-tip-container {
  470. margin-top: -1px;
  471. }
  472. .toolBF .leaflet-oldie .leaflet-control-zoom,
  473. .toolBF .leaflet-oldie .leaflet-control-layers,
  474. .toolBF .leaflet-oldie .leaflet-popup-content-wrapper,
  475. .toolBF .leaflet-oldie .leaflet-popup-tip {
  476. border: 1px solid #999;
  477. }
  478. /* div icon */
  479. .leaflet-div-icon {
  480. background: #fff;
  481. border: 1px solid #666;
  482. }
  483. /* Tooltip */
  484. /* Base styles for the element that has a tooltip */
  485. .leaflet-tooltip {
  486. position: absolute;
  487. padding: 6px;
  488. background-color: #fff;
  489. border: 1px solid #fff;
  490. border-radius: 3px;
  491. color: #222;
  492. white-space: nowrap;
  493. -webkit-user-select: none;
  494. -moz-user-select: none;
  495. -ms-user-select: none;
  496. user-select: none;
  497. pointer-events: none;
  498. box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  499. }
  500. .leaflet-tooltip.leaflet-clickable {
  501. cursor: pointer;
  502. pointer-events: auto;
  503. }
  504. .leaflet-tooltip-top:before,
  505. .leaflet-tooltip-bottom:before,
  506. .leaflet-tooltip-left:before,
  507. .leaflet-tooltip-right:before {
  508. position: absolute;
  509. pointer-events: none;
  510. border: 6px solid transparent;
  511. background: transparent;
  512. content: "";
  513. }
  514. /* Directions */
  515. .leaflet-tooltip-bottom {
  516. margin-top: 6px;
  517. }
  518. .leaflet-tooltip-top {
  519. margin-top: -6px;
  520. }
  521. .leaflet-tooltip-bottom:before,
  522. .leaflet-tooltip-top:before {
  523. left: 50%;
  524. margin-left: -6px;
  525. }
  526. .leaflet-tooltip-top:before {
  527. bottom: 0;
  528. margin-bottom: -12px;
  529. border-top-color: #fff;
  530. }
  531. .leaflet-tooltip-bottom:before {
  532. top: 0;
  533. margin-top: -12px;
  534. margin-left: -6px;
  535. border-bottom-color: #fff;
  536. }
  537. .leaflet-tooltip-left {
  538. margin-left: -6px;
  539. }
  540. .leaflet-tooltip-right {
  541. margin-left: 6px;
  542. }
  543. .leaflet-tooltip-left:before,
  544. .leaflet-tooltip-right:before {
  545. top: 50%;
  546. margin-top: -6px;
  547. }
  548. .leaflet-tooltip-left:before {
  549. right: 0;
  550. margin-right: -12px;
  551. border-left-color: #fff;
  552. }
  553. .leaflet-tooltip-right:before {
  554. left: 0;
  555. margin-left: -12px;
  556. border-right-color: #fff;
  557. }