You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

462 lines
9.7 KiB

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