Skip to content

Commit

Permalink
Fix position of ScaleLineControl (OL3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Oct 12, 2016
1 parent 99e06dd commit 5f87cf0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions scss/ol3-sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,26 @@ $sidebar-inner-border-radius: 2px !default;
margin-left: $width-lg + $sidebar-margins + $sidebar-border-width * 2;
}
}

.ol-scale-line {
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;
}
}
}

&.collapsed ~ .sidebar-map {
Expand All @@ -35,6 +55,12 @@ $sidebar-inner-border-radius: 2px !default;
margin-left: $tab-size + $sidebar-margins + $sidebar-border-width * 2;
}
}

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

Expand Down

0 comments on commit 5f87cf0

Please sign in to comment.