leaflet.css 9.9 KB

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