Skip to content

Commit

Permalink
Merge pull request #269 from alanshaw/master
Browse files Browse the repository at this point in the history
Add leaflet-touch style overrides
  • Loading branch information
jacobtoye committed Feb 4, 2014
2 parents 5176fb8 + 93a5111 commit 2ecf461
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions dist/leaflet.draw.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,20 @@
white-space: nowrap;
}

.leaflet-touch .leaflet-draw-actions {
left: 32px;
}

.leaflet-right .leaflet-draw-actions {
right:26px;
left:auto;
}

.leaflet-touch .leaflet-right .leaflet-draw-actions {
right:32px;
left:auto;
}

.leaflet-draw-actions li {
display: inline-block;
}
Expand Down Expand Up @@ -93,6 +102,12 @@
height: 28px;
}

.leaflet-touch .leaflet-draw-actions a {
font-size: 12px;
line-height: 30px;
height: 30px;
}

.leaflet-draw-actions-bottom {
margin-top: 0;
}
Expand Down Expand Up @@ -124,22 +139,42 @@
background-position: -2px -2px;
}

.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline {
background-position: 0 -1px;
}

.leaflet-draw-toolbar .leaflet-draw-draw-polygon {
background-position: -31px -2px;
}

.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon {
background-position: -29px -1px;
}

.leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
background-position: -62px -2px;
}

.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
background-position: -60px -1px;
}

.leaflet-draw-toolbar .leaflet-draw-draw-circle {
background-position: -92px -2px;
}

.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle {
background-position: -90px -1px;
}

.leaflet-draw-toolbar .leaflet-draw-draw-marker {
background-position: -122px -2px;
}

.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker {
background-position: -120px -1px;
}

/* ================================================================== */
/* Edit toolbar
/* ================================================================== */
Expand All @@ -148,18 +183,34 @@
background-position: -152px -2px;
}

.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit {
background-position: -150px -1px;
}

.leaflet-draw-toolbar .leaflet-draw-edit-remove {
background-position: -182px -2px;
}

.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove {
background-position: -180px -1px;
}

.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled {
background-position: -212px -2px;
}

.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled {
background-position: -210px -1px;
}

.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled {
background-position: -242px -2px;
}

.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled {
background-position: -240px -2px;
}

/* ================================================================== */
/* Drawing styles
/* ================================================================== */
Expand Down

0 comments on commit 2ecf461

Please sign in to comment.