leaflet.css 7.7 KB

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