Skip to content

Commit

Permalink
Regroup SCSS .ol-zoom, .ol-scale-line (OL3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Oct 12, 2016
1 parent 5f87cf0 commit 1d5f6b6
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions scss/ol3-sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,7 @@ $sidebar-inner-border-radius: 2px !default;

& ~ .sidebar-map {

.ol-zoom {
margin-left: $tab-size + $sidebar-border-width * 2;

@media(min-width: $threshold-sm) {
transition: margin-left $sidebar-transition;
}

@media(min-width: $threshold-sm) and (max-width: $threshold-md - 1px) {
margin-left: $width-sm + $sidebar-margins + $sidebar-border-width * 2;
}

@media(min-width: $threshold-md) and (max-width: $threshold-lg - 1px) {
margin-left: $width-md + $sidebar-margins + $sidebar-border-width * 2;
}

@media(min-width: $threshold-lg) {
margin-left: $width-lg + $sidebar-margins + $sidebar-border-width * 2;
}
}

.ol-scale-line {
.ol-zoom, .ol-scale-line {
margin-left: $tab-size + $sidebar-border-width * 2;

@media(min-width: $threshold-sm) {
Expand All @@ -50,13 +30,7 @@ $sidebar-inner-border-radius: 2px !default;

&.collapsed ~ .sidebar-map {

.ol-zoom {
@media(min-width:$threshold-sm) {
margin-left: $tab-size + $sidebar-margins + $sidebar-border-width * 2;
}
}

.ol-scale-line {
.ol-zoom, .ol-scale-line {
@media(min-width:$threshold-sm) {
margin-left: $tab-size + $sidebar-margins + $sidebar-border-width * 2;
}
Expand Down

0 comments on commit 1d5f6b6

Please sign in to comment.