leaflet.draw-src.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. /* ================================================================== */
  2. /* Toolbars
  3. /* ================================================================== */
  4. .leaflet-draw-section {
  5. position: relative;
  6. }
  7. .leaflet-draw-toolbar {
  8. margin-top: 12px;
  9. }
  10. .leaflet-draw-toolbar-top {
  11. margin-top: 0;
  12. }
  13. .leaflet-draw-toolbar-notop a:first-child {
  14. border-top-right-radius: 0;
  15. }
  16. .leaflet-draw-toolbar-nobottom a:last-child {
  17. border-bottom-right-radius: 0;
  18. }
  19. .leaflet-draw-toolbar a {
  20. background-image: url('images/spritesheet.png');
  21. background-image: linear-gradient(transparent, transparent), url('images/spritesheet.svg');
  22. background-repeat: no-repeat;
  23. background-size: 300px 30px;
  24. background-clip: padding-box;
  25. }
  26. .leaflet-retina .leaflet-draw-toolbar a {
  27. background-image: url('images/spritesheet-2x.png');
  28. background-image: linear-gradient(transparent, transparent), url('images/spritesheet.svg');
  29. }
  30. .leaflet-draw a {
  31. display: block;
  32. text-align: center;
  33. text-decoration: none;
  34. }
  35. .leaflet-draw a .sr-only {
  36. position: absolute;
  37. width: 1px;
  38. height: 1px;
  39. padding: 0;
  40. margin: -1px;
  41. overflow: hidden;
  42. clip: rect(0, 0, 0, 0);
  43. border: 0;
  44. }
  45. /* ================================================================== */
  46. /* Toolbar actions menu
  47. /* ================================================================== */
  48. .leaflet-draw-actions {
  49. display: none;
  50. list-style: none;
  51. margin: 0;
  52. padding: 0;
  53. position: absolute;
  54. left: 26px; /* leaflet-draw-toolbar.left + leaflet-draw-toolbar.width */
  55. top: 0;
  56. white-space: nowrap;
  57. }
  58. .leaflet-touch .leaflet-draw-actions {
  59. left: 32px;
  60. }
  61. .leaflet-right .leaflet-draw-actions {
  62. right: 26px;
  63. left: auto;
  64. }
  65. .leaflet-touch .leaflet-right .leaflet-draw-actions {
  66. right: 32px;
  67. left: auto;
  68. }
  69. .leaflet-draw-actions li {
  70. display: inline-block;
  71. }
  72. .leaflet-draw-actions li:first-child a {
  73. border-left: none;
  74. }
  75. .leaflet-draw-actions li:last-child a {
  76. -webkit-border-radius: 0 4px 4px 0;
  77. border-radius: 0 4px 4px 0;
  78. }
  79. .leaflet-right .leaflet-draw-actions li:last-child a {
  80. -webkit-border-radius: 0;
  81. border-radius: 0;
  82. }
  83. .leaflet-right .leaflet-draw-actions li:first-child a {
  84. -webkit-border-radius: 4px 0 0 4px;
  85. border-radius: 4px 0 0 4px;
  86. }
  87. .leaflet-draw-actions a {
  88. background-color: #919187;
  89. border-left: 1px solid #AAA;
  90. color: #FFF;
  91. font: 11px/19px "Helvetica Neue", Arial, Helvetica, sans-serif;
  92. line-height: 28px;
  93. text-decoration: none;
  94. padding-left: 10px;
  95. padding-right: 10px;
  96. height: 28px;
  97. }
  98. .leaflet-touch .leaflet-draw-actions a {
  99. font-size: 12px;
  100. line-height: 30px;
  101. height: 30px;
  102. }
  103. .leaflet-draw-actions-bottom {
  104. margin-top: 0;
  105. }
  106. .leaflet-draw-actions-top {
  107. margin-top: 1px;
  108. }
  109. .leaflet-draw-actions-top a,
  110. .leaflet-draw-actions-bottom a {
  111. height: 27px;
  112. line-height: 27px;
  113. }
  114. .leaflet-draw-actions a:hover {
  115. background-color: #A0A098;
  116. }
  117. .leaflet-draw-actions-top.leaflet-draw-actions-bottom a {
  118. height: 26px;
  119. line-height: 26px;
  120. }
  121. /* ================================================================== */
  122. /* Draw toolbar
  123. /* ================================================================== */
  124. .leaflet-draw-toolbar .leaflet-draw-draw-polyline {
  125. background-position: -2px -2px;
  126. }
  127. .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline {
  128. background-position: 0 -1px;
  129. }
  130. .leaflet-draw-toolbar .leaflet-draw-draw-polygon {
  131. background-position: -31px -2px;
  132. }
  133. .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon {
  134. background-position: -29px -1px;
  135. }
  136. .leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
  137. background-position: -62px -2px;
  138. }
  139. .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
  140. background-position: -60px -1px;
  141. }
  142. .leaflet-draw-toolbar .leaflet-draw-draw-circle {
  143. background-position: -92px -2px;
  144. }
  145. .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle {
  146. background-position: -90px -1px;
  147. }
  148. .leaflet-draw-toolbar .leaflet-draw-draw-marker {
  149. background-position: -122px -2px;
  150. }
  151. .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker {
  152. background-position: -120px -1px;
  153. }
  154. .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker {
  155. background-position: -273px -2px;
  156. }
  157. .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker {
  158. background-position: -271px -1px;
  159. }
  160. /* ================================================================== */
  161. /* Edit toolbar
  162. /* ================================================================== */
  163. .leaflet-draw-toolbar .leaflet-draw-edit-edit {
  164. background-position: -152px -2px;
  165. }
  166. .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit {
  167. background-position: -150px -1px;
  168. }
  169. .leaflet-draw-toolbar .leaflet-draw-edit-remove {
  170. background-position: -182px -2px;
  171. }
  172. .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove {
  173. background-position: -180px -1px;
  174. }
  175. .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled {
  176. background-position: -212px -2px;
  177. }
  178. .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled {
  179. background-position: -210px -1px;
  180. }
  181. .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled {
  182. background-position: -242px -2px;
  183. }
  184. .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled {
  185. background-position: -240px -2px;
  186. }
  187. /* ================================================================== */
  188. /* Drawing styles
  189. /* ================================================================== */
  190. .leaflet-mouse-marker {
  191. background-color: #fff;
  192. cursor: crosshair;
  193. }
  194. .leaflet-draw-tooltip {
  195. background: rgb(54, 54, 54);
  196. background: rgba(0, 0, 0, 0.5);
  197. border: 1px solid transparent;
  198. -webkit-border-radius: 4px;
  199. border-radius: 4px;
  200. color: #fff;
  201. font: 12px/18px "Helvetica Neue", Arial, Helvetica, sans-serif;
  202. margin-left: 20px;
  203. margin-top: -21px;
  204. padding: 4px 8px;
  205. position: absolute;
  206. visibility: hidden;
  207. white-space: nowrap;
  208. z-index: 6;
  209. }
  210. .leaflet-draw-tooltip:before {
  211. border-right: 6px solid black;
  212. border-right-color: rgba(0, 0, 0, 0.5);
  213. border-top: 6px solid transparent;
  214. border-bottom: 6px solid transparent;
  215. content: "";
  216. position: absolute;
  217. top: 7px;
  218. left: -7px;
  219. }
  220. .leaflet-error-draw-tooltip {
  221. background-color: #F2DEDE;
  222. border: 1px solid #E6B6BD;
  223. color: #B94A48;
  224. }
  225. .leaflet-error-draw-tooltip:before {
  226. border-right-color: #E6B6BD;
  227. }
  228. .leaflet-draw-tooltip-single {
  229. margin-top: -12px
  230. }
  231. .leaflet-draw-tooltip-subtext {
  232. color: #f8d5e4;
  233. }
  234. .leaflet-draw-guide-dash {
  235. font-size: 1%;
  236. opacity: 0.6;
  237. position: absolute;
  238. width: 5px;
  239. height: 5px;
  240. }
  241. /* ================================================================== */
  242. /* Edit styles
  243. /* ================================================================== */
  244. .leaflet-edit-marker-selected {
  245. background-color: rgba(254, 87, 161, 0.1);
  246. border: 4px dashed rgba(254, 87, 161, 0.6);
  247. -webkit-border-radius: 4px;
  248. border-radius: 4px;
  249. box-sizing: content-box;
  250. }
  251. .leaflet-edit-move {
  252. cursor: move;
  253. }
  254. .leaflet-edit-resize {
  255. cursor: pointer;
  256. }
  257. /* ================================================================== */
  258. /* Old IE styles
  259. /* ================================================================== */
  260. .leaflet-oldie .leaflet-draw-toolbar {
  261. border: 1px solid #999;
  262. }