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