leaflet.css 9.7 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. /* 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. }
  164. .leaflet-container a.leaflet-active {
  165. outline: 2px solid orange;
  166. }
  167. .leaflet-zoom-box {
  168. border: 2px dotted #05f;
  169. background: white;
  170. opacity: 0.5;
  171. }
  172. /* general typography */
  173. .leaflet-container {
  174. font-weight: bold;
  175. font-size: 10px;
  176. color: black;
  177. background-color:rgba(255, 255, 255, 0.7);
  178. box-shadow: 0 1px 7px rgba(0,0,0,0.65);
  179. -webkit-border-radius: 4px;
  180. border-radius: 4px;
  181. }
  182. /* general toolbar styles */
  183. .leaflet-bar {
  184. background-color:rgba(255, 255, 255, 0.7);
  185. box-shadow: 0 1px 7px rgba(0,0,0,0.65);
  186. -webkit-border-radius: 4px;
  187. border-radius: 4px;
  188. }
  189. .leaflet-bar a, .leaflet-bar a:hover {
  190. width: 26px;
  191. height: 26px;
  192. line-height: 26px;
  193. display: block;
  194. text-align: center;
  195. text-decoration: none;
  196. }
  197. .leaflet-bar a,
  198. .leaflet-control-layers-toggle {
  199. background-position: 50% 50%;
  200. background-repeat: no-repeat;
  201. display: block;
  202. }
  203. .leaflet-bar a:hover {
  204. background-color: #f4f4f4;
  205. }
  206. .leaflet-bar a:first-child {
  207. -webkit-border-top-left-radius: 4px;
  208. border-top-left-radius: 4px;
  209. -webkit-border-top-right-radius: 4px;
  210. border-top-right-radius: 4px;
  211. }
  212. .leaflet-bar a:last-child {
  213. -webkit-border-bottom-left-radius: 4px;
  214. border-bottom-left-radius: 4px;
  215. -webkit-border-bottom-right-radius: 4px;
  216. border-bottom-right-radius: 4px;
  217. border-bottom: none;
  218. }
  219. .leaflet-bar a.leaflet-disabled {
  220. cursor: default;
  221. background-color: #f4f4f4;
  222. color: #bbb;
  223. }
  224. .leaflet-touch .leaflet-bar {
  225. -webkit-border-radius: 10px;
  226. border-radius: 10px;
  227. }
  228. .leaflet-touch .leaflet-bar a {
  229. width: 30px;
  230. height: 30px;
  231. }
  232. .leaflet-touch .leaflet-bar a:first-child {
  233. -webkit-border-top-left-radius: 7px;
  234. border-top-left-radius: 7px;
  235. -webkit-border-top-right-radius: 7px;
  236. border-top-right-radius: 7px;
  237. }
  238. .leaflet-touch .leaflet-bar a:last-child {
  239. -webkit-border-bottom-left-radius: 7px;
  240. border-bottom-left-radius: 7px;
  241. -webkit-border-bottom-right-radius: 7px;
  242. border-bottom-right-radius: 7px;
  243. border-bottom: none;
  244. }
  245. /* zoom control */
  246. .leaflet-control-zoom-in {
  247. color: black;
  248. font-weight: 300;
  249. font-size: 20px;
  250. }
  251. .leaflet-control-zoom-out {
  252. color: black;
  253. font-weight: 300;
  254. font-size: 20px;
  255. }
  256. .leaflet-touch .leaflet-control-zoom-in {
  257. font-size: 22px;
  258. line-height: 30px;
  259. }
  260. .leaflet-touch .leaflet-control-zoom-out {
  261. font-size: 22px;
  262. line-height: 30px;
  263. }
  264. /* layers control */
  265. .leaflet-control-layers {
  266. background-color:rgba(255, 255, 255, 0.7);
  267. box-shadow: 0 1px 7px rgba(0,0,0,0.65);
  268. -webkit-border-radius: 4px;
  269. border-radius: 4px;
  270. margin: 0;
  271. }
  272. .leaflet-control-layers-toggle {
  273. background-image: url(images/layers.png);
  274. width: 36px;
  275. height: 36px;
  276. }
  277. .leaflet-retina .leaflet-control-layers-toggle {
  278. background-image: url(images/layers-2x.png);
  279. background-size: 26px 26px;
  280. }
  281. .leaflet-touch .leaflet-control-layers-toggle {
  282. width: 44px;
  283. height: 44px;
  284. }
  285. .leaflet-control-layers .leaflet-control-layers-list,
  286. .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  287. display: none;
  288. }
  289. .leaflet-control-layers-expanded .leaflet-control-layers-list {
  290. display: block;
  291. position: relative;
  292. }
  293. .leaflet-control-layers-expanded {
  294. padding: 6px 10px 6px 6px;
  295. }
  296. .leaflet-control-layers-selector {
  297. margin-top: 2px;
  298. position: relative;
  299. top: 1px;
  300. }
  301. .leaflet-control-layers label {
  302. display: block;
  303. }
  304. .leaflet-control-layers-separator {
  305. height: 0;
  306. border-top: 1px solid #ddd;
  307. margin: 5px -10px 5px -6px;
  308. }
  309. /* attribution and scale controls */
  310. .leaflet-container .leaflet-control-attribution {
  311. background-color:rgba(255, 255, 255, 0.7);
  312. box-shadow: 0 1px 7px rgba(0,0,0,0.65);
  313. -webkit-border-radius: 4px;
  314. border-radius: 4px;
  315. margin: 0;
  316. }
  317. .leaflet-control-attribution,
  318. .leaflet-control-scale-line {
  319. padding: 0 5px;
  320. color: #333;
  321. }
  322. .leaflet-container .leaflet-control-attribution,
  323. .leaflet-container .leaflet-control-scale {
  324. font-size: 11px;
  325. }
  326. .leaflet-left .leaflet-control-scale {
  327. margin-left: 5px;
  328. }
  329. .leaflet-bottom .leaflet-control-scale {
  330. margin-bottom: 5px;
  331. }
  332. .leaflet-control-scale-line {
  333. border: 2px solid #777;
  334. border-top: none;
  335. color: black;
  336. line-height: 1.1;
  337. padding: 2px 5px 1px;
  338. font-size: 11px;
  339. text-shadow: 1px 1px 1px #fff;
  340. background-color:rgba(255, 255, 255, 0.7);
  341. box-shadow: 0 1px 7px rgba(0,0,0,0.65);
  342. -webkit-border-radius: 4px;
  343. border-radius: 4px;
  344. white-space: nowrap;
  345. overflow: hidden;
  346. }
  347. .leaflet-control-scale-line:not(:first-child) {
  348. border-top: 2px solid #777;
  349. border-bottom: none;
  350. margin-top: -2px;
  351. box-shadow: 0 1px 7px rgba(0,0,0,0.65);
  352. -webkit-border-radius: 4px;
  353. border-radius: 4px;
  354. }
  355. .leaflet-control-scale-line:not(:first-child):not(:last-child) {
  356. border-bottom: 2px solid #777;
  357. }
  358. .leaflet-touch .leaflet-control-attribution,
  359. .leaflet-touch .leaflet-control-layers,
  360. .leaflet-touch .leaflet-bar {
  361. box-shadow: none;
  362. }
  363. .leaflet-touch .leaflet-control-layers,
  364. .leaflet-touch .leaflet-bar {
  365. }
  366. /* popup */
  367. .leaflet-popup {
  368. position: absolute;
  369. text-align: center;
  370. }
  371. .leaflet-popup-content-wrapper {
  372. padding: 1px;
  373. text-align: left;
  374. }
  375. .leaflet-popup-content {
  376. margin: 13px 19px;
  377. line-height: 1.4;
  378. }
  379. .leaflet-popup-content p {
  380. margin: 18px 0;
  381. }
  382. .leaflet-popup-content b {
  383. color: green;
  384. font-weight: bold;
  385. font-size: 10px;
  386. }
  387. .leaflet-popup-content-wrapper, .leaflet-popup-tip {
  388. background-color:rgba(255, 255, 255, 0.7);
  389. box-shadow: 0 1px 7px rgba(0,0,0,0.65);
  390. -webkit-border-radius: 4px;
  391. border-radius: 4px;
  392. }
  393. .leaflet-container a.leaflet-popup-close-button {
  394. position: absolute;
  395. top: 0;
  396. right: 0;
  397. text-align: center;
  398. width: 18px;
  399. height: 14px;
  400. font-weight: 400;
  401. color: black;
  402. font-size:15px;
  403. text-decoration: none;
  404. font-weight: bold;
  405. background: transparent;
  406. }
  407. .leaflet-container a.leaflet-popup-close-button:hover {
  408. color: #eeeeee;
  409. }
  410. .leaflet-popup-scrolled {
  411. overflow: auto;
  412. border-bottom: 1px solid #ddd;
  413. border-top: 1px solid #ddd;
  414. }
  415. /* div icon */
  416. .leaflet-div-icon {
  417. background: #fff;
  418. border: 1px solid #666;
  419. }
  420. .leaflet-editing-icon {
  421. -webkit-border-radius: 2px;
  422. border-radius: 2px;
  423. }