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.

478 lines
9.9 KiB

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