leaflet.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. /* required styles */
  2. .leaflet-map-pane,
  3. .leaflet-tile,
  4. .leaflet-marker-icon,
  5. .leaflet-marker-shadow,
  6. .leaflet-tile-pane,
  7. .leaflet-tile-container,
  8. .leaflet-overlay-pane,
  9. .leaflet-shadow-pane,
  10. .leaflet-marker-pane,
  11. .leaflet-popup-pane,
  12. .leaflet-overlay-pane svg,
  13. .leaflet-zoom-box,
  14. .leaflet-image-layer,
  15. .leaflet-layer {
  16. position: absolute;
  17. left: 0;
  18. top: 0;
  19. }
  20. .leaflet-container {
  21. overflow: hidden;
  22. -ms-touch-action: none;
  23. }
  24. .leaflet-tile,
  25. .leaflet-marker-icon,
  26. .leaflet-marker-shadow {
  27. -webkit-user-select: none;
  28. -moz-user-select: none;
  29. user-select: none;
  30. -webkit-user-drag: none;
  31. }
  32. .leaflet-marker-icon,
  33. .leaflet-marker-shadow {
  34. display: block;
  35. }
  36. /* map is broken in FF if you have max-width: 100% on tiles */
  37. .leaflet-container img {
  38. max-width: none !important;
  39. }
  40. /* stupid Android 2 doesn't understand "max-width: none" properly */
  41. .leaflet-container img.leaflet-image-layer {
  42. max-width: 15000px !important;
  43. }
  44. .leaflet-tile {
  45. filter: inherit;
  46. visibility: hidden;
  47. }
  48. .leaflet-tile-loaded {
  49. visibility: inherit;
  50. }
  51. .leaflet-zoom-box {
  52. width: 0;
  53. height: 0;
  54. }
  55. /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
  56. .leaflet-overlay-pane svg {
  57. -moz-user-select: none;
  58. }
  59. .leaflet-tile-pane { z-index: 2; }
  60. .leaflet-objects-pane { z-index: 3; }
  61. .leaflet-overlay-pane { z-index: 4; }
  62. .leaflet-shadow-pane { z-index: 5; }
  63. .leaflet-marker-pane { z-index: 6; }
  64. .leaflet-popup-pane { z-index: 7; }
  65. /* control positioning */
  66. .leaflet-control {
  67. position: relative;
  68. z-index: 7;
  69. pointer-events: auto;
  70. }
  71. .leaflet-top,
  72. .leaflet-bottom {
  73. position: absolute;
  74. z-index: 1000;
  75. pointer-events: none;
  76. }
  77. .leaflet-top {
  78. top: 0;
  79. }
  80. .leaflet-right {
  81. right: 0;
  82. }
  83. .leaflet-bottom {
  84. bottom: 0;
  85. }
  86. .leaflet-left {
  87. left: 0;
  88. }
  89. .leaflet-control {
  90. float: left;
  91. clear: both;
  92. }
  93. .leaflet-right .leaflet-control {
  94. float: right;
  95. }
  96. .leaflet-top .leaflet-control {
  97. margin-top: 10px;
  98. }
  99. .leaflet-bottom .leaflet-control {
  100. margin-bottom: 10px;
  101. }
  102. .leaflet-left .leaflet-control {
  103. margin-left: 10px;
  104. }
  105. .leaflet-right .leaflet-control {
  106. margin-right: 10px;
  107. }
  108. /* zoom and fade animations */
  109. .leaflet-fade-anim .leaflet-tile,
  110. .leaflet-fade-anim .leaflet-popup {
  111. opacity: 0;
  112. -webkit-transition: opacity 0.2s linear;
  113. -moz-transition: opacity 0.2s linear;
  114. -o-transition: opacity 0.2s linear;
  115. transition: opacity 0.2s linear;
  116. }
  117. .leaflet-fade-anim .leaflet-tile-loaded,
  118. .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
  119. opacity: 1;
  120. }
  121. .leaflet-zoom-anim .leaflet-zoom-animated {
  122. -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
  123. -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
  124. -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
  125. transition: transform 0.25s cubic-bezier(0,0,0.25,1);
  126. }
  127. .leaflet-zoom-anim .leaflet-tile,
  128. .leaflet-pan-anim .leaflet-tile,
  129. .leaflet-touching .leaflet-zoom-animated {
  130. -webkit-transition: none;
  131. -moz-transition: none;
  132. -o-transition: none;
  133. transition: none;
  134. }
  135. .leaflet-zoom-anim .leaflet-zoom-hide {
  136. visibility: hidden;
  137. }
  138. /* cursors */
  139. .leaflet-clickable {
  140. cursor: pointer;
  141. }
  142. .leaflet-container {
  143. cursor: -webkit-grab;
  144. cursor: -moz-grab;
  145. }
  146. .leaflet-popup-pane,
  147. .leaflet-control {
  148. cursor: auto;
  149. }
  150. .leaflet-dragging,
  151. .leaflet-dragging .leaflet-clickable,
  152. .leaflet-dragging .leaflet-container {
  153. cursor: move;
  154. cursor: -webkit-grabbing;
  155. cursor: -moz-grabbing;
  156. }
  157. /* visual tweaks */
  158. .leaflet-container {
  159. background: #ddd;
  160. outline: 0;
  161. }
  162. .leaflet-container a {
  163. color: #0078A8;
  164. }
  165. .leaflet-container a.leaflet-active {
  166. outline: 2px solid orange;
  167. }
  168. .leaflet-zoom-box {
  169. border: 2px dotted #05f;
  170. background: white;
  171. opacity: 0.5;
  172. }
  173. /* general typography */
  174. .leaflet-container {
  175. font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
  176. }
  177. /* general toolbar styles */
  178. .leaflet-bar {
  179. box-shadow: 0 1px 7px rgba(0,0,0,0.65);
  180. -webkit-border-radius: 4px;
  181. border-radius: 4px;
  182. }
  183. .leaflet-bar a, .leaflet-bar a:hover {
  184. background-color: #fff;
  185. border-bottom: 1px solid #ccc;
  186. width: 26px;
  187. height: 26px;
  188. line-height: 26px;
  189. display: block;
  190. text-align: center;
  191. text-decoration: none;
  192. color: black;
  193. }
  194. .leaflet-bar a,
  195. .leaflet-control-layers-toggle {
  196. background-position: 50% 50%;
  197. background-repeat: no-repeat;
  198. display: block;
  199. }
  200. .leaflet-bar a:hover {
  201. background-color: #f4f4f4;
  202. }
  203. .leaflet-bar a:first-child {
  204. -webkit-border-top-left-radius: 4px;
  205. border-top-left-radius: 4px;
  206. -webkit-border-top-right-radius: 4px;
  207. border-top-right-radius: 4px;
  208. }
  209. .leaflet-bar a:last-child {
  210. -webkit-border-bottom-left-radius: 4px;
  211. border-bottom-left-radius: 4px;
  212. -webkit-border-bottom-right-radius: 4px;
  213. border-bottom-right-radius: 4px;
  214. border-bottom: none;
  215. }
  216. .leaflet-bar a.leaflet-disabled {
  217. cursor: default;
  218. background-color: #f4f4f4;
  219. color: #bbb;
  220. }
  221. .leaflet-touch .leaflet-bar {
  222. -webkit-border-radius: 10px;
  223. border-radius: 10px;
  224. }
  225. .leaflet-touch .leaflet-bar a {
  226. width: 30px;
  227. height: 30px;
  228. }
  229. .leaflet-touch .leaflet-bar a:first-child {
  230. -webkit-border-top-left-radius: 7px;
  231. border-top-left-radius: 7px;
  232. -webkit-border-top-right-radius: 7px;
  233. border-top-right-radius: 7px;
  234. }
  235. .leaflet-touch .leaflet-bar a:last-child {
  236. -webkit-border-bottom-left-radius: 7px;
  237. border-bottom-left-radius: 7px;
  238. -webkit-border-bottom-right-radius: 7px;
  239. border-bottom-right-radius: 7px;
  240. border-bottom: none;
  241. }
  242. /* zoom control */
  243. .leaflet-control-zoom-in {
  244. font: bold 18px 'Lucida Console', Monaco, monospace;
  245. }
  246. .leaflet-control-zoom-out {
  247. font: bold 22px 'Lucida Console', Monaco, monospace;
  248. }
  249. .leaflet-touch .leaflet-control-zoom-in {
  250. font-size: 22px;
  251. line-height: 30px;
  252. }
  253. .leaflet-touch .leaflet-control-zoom-out {
  254. font-size: 28px;
  255. line-height: 30px;
  256. }
  257. /* layers control */
  258. .leaflet-control-layers {
  259. box-shadow: 0 1px 7px rgba(0,0,0,0.4);
  260. background: #f8f8f9;
  261. -webkit-border-radius: 5px;
  262. border-radius: 5px;
  263. }
  264. .leaflet-control-layers-toggle {
  265. background-image: url(images/layers.png);
  266. width: 36px;
  267. height: 36px;
  268. }
  269. .leaflet-retina .leaflet-control-layers-toggle {
  270. background-image: url(images/layers-2x.png);
  271. background-size: 26px 26px;
  272. }
  273. .leaflet-touch .leaflet-control-layers-toggle {
  274. width: 44px;
  275. height: 44px;
  276. }
  277. .leaflet-control-layers .leaflet-control-layers-list,
  278. .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  279. display: none;
  280. }
  281. .leaflet-control-layers-expanded .leaflet-control-layers-list {
  282. display: block;
  283. position: relative;
  284. }
  285. .leaflet-control-layers-expanded {
  286. padding: 6px 10px 6px 6px;
  287. color: #333;
  288. background: #fff;
  289. }
  290. .leaflet-control-layers-selector {
  291. margin-top: 2px;
  292. position: relative;
  293. top: 1px;
  294. }
  295. .leaflet-control-layers label {
  296. display: block;
  297. }
  298. .leaflet-control-layers-separator {
  299. height: 0;
  300. border-top: 1px solid #ddd;
  301. margin: 5px -10px 5px -6px;
  302. }
  303. /* attribution and scale controls */
  304. .leaflet-container .leaflet-control-attribution {
  305. background-color: rgba(255, 255, 255, 0.7);
  306. box-shadow: 0 0 5px #bbb;
  307. margin: 0;
  308. }
  309. .leaflet-control-attribution,
  310. .leaflet-control-scale-line {
  311. padding: 0 5px;
  312. color: #333;
  313. }
  314. .leaflet-container .leaflet-control-attribution,
  315. .leaflet-container .leaflet-control-scale {
  316. font-size: 11px;
  317. }
  318. .leaflet-left .leaflet-control-scale {
  319. margin-left: 5px;
  320. }
  321. .leaflet-bottom .leaflet-control-scale {
  322. margin-bottom: 5px;
  323. }
  324. .leaflet-control-scale-line {
  325. border: 2px solid #777;
  326. border-top: none;
  327. color: black;
  328. line-height: 1.1;
  329. padding: 2px 5px 1px;
  330. font-size: 11px;
  331. text-shadow: 1px 1px 1px #fff;
  332. background-color: rgba(255, 255, 255, 0.5);
  333. box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
  334. white-space: nowrap;
  335. overflow: hidden;
  336. }
  337. .leaflet-control-scale-line:not(:first-child) {
  338. border-top: 2px solid #777;
  339. border-bottom: none;
  340. margin-top: -2px;
  341. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  342. }
  343. .leaflet-control-scale-line:not(:first-child):not(:last-child) {
  344. border-bottom: 2px solid #777;
  345. }
  346. .leaflet-touch .leaflet-control-attribution,
  347. .leaflet-touch .leaflet-control-layers,
  348. .leaflet-touch .leaflet-bar {
  349. box-shadow: none;
  350. }
  351. .leaflet-touch .leaflet-control-layers,
  352. .leaflet-touch .leaflet-bar {
  353. border: 4px solid rgba(0,0,0,0.3);
  354. }
  355. /* popup */
  356. .leaflet-popup {
  357. position: absolute;
  358. text-align: center;
  359. }
  360. .leaflet-popup-content-wrapper {
  361. padding: 1px;
  362. text-align: left;
  363. -webkit-border-radius: 12px;
  364. border-radius: 12px;
  365. }
  366. .leaflet-popup-content {
  367. margin: 13px 19px;
  368. line-height: 1.4;
  369. }
  370. .leaflet-popup-content p {
  371. margin: 18px 0;
  372. }
  373. .leaflet-popup-tip-container {
  374. margin: 0 auto;
  375. width: 40px;
  376. height: 20px;
  377. position: relative;
  378. overflow: hidden;
  379. }
  380. .leaflet-popup-tip {
  381. width: 17px;
  382. height: 17px;
  383. padding: 1px;
  384. margin: -10px auto 0;
  385. -webkit-transform: rotate(45deg);
  386. -moz-transform: rotate(45deg);
  387. -ms-transform: rotate(45deg);
  388. -o-transform: rotate(45deg);
  389. transform: rotate(45deg);
  390. }
  391. .leaflet-popup-content-wrapper, .leaflet-popup-tip {
  392. background: white;
  393. box-shadow: 0 3px 14px rgba(0,0,0,0.4);
  394. }
  395. .leaflet-container a.leaflet-popup-close-button {
  396. position: absolute;
  397. top: 0;
  398. right: 0;
  399. padding: 4px 4px 0 0;
  400. text-align: center;
  401. width: 18px;
  402. height: 14px;
  403. font: 16px/14px Tahoma, Verdana, sans-serif;
  404. color: #c3c3c3;
  405. text-decoration: none;
  406. font-weight: bold;
  407. background: transparent;
  408. }
  409. .leaflet-container a.leaflet-popup-close-button:hover {
  410. color: #999;
  411. }
  412. .leaflet-popup-scrolled {
  413. overflow: auto;
  414. border-bottom: 1px solid #ddd;
  415. border-top: 1px solid #ddd;
  416. }
  417. /* div icon */
  418. .leaflet-div-icon {
  419. background: #fff;
  420. border: 1px solid #666;
  421. }
  422. .leaflet-editing-icon {
  423. -webkit-border-radius: 2px;
  424. border-radius: 2px;
  425. }