leaflet.css 9.9 KB

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