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.

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