Skip to content

Commit

Permalink
Merge pull request #93 from jbelien/master
Browse files Browse the repository at this point in the history
Fix position of ScaleLine Control (OL3)
  • Loading branch information
Turbo87 authored Oct 12, 2016
2 parents 3b1dbec + 1d5f6b6 commit 9fe8ae3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions css/ol3-sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,25 @@
.sidebar-left.collapsed ~ .sidebar-map .ol-zoom {
margin-left: 52px; } }

.sidebar-left ~ .sidebar-map .ol-scale-line {
margin-left: 46px; }
@media (min-width: 768px) {
.sidebar-left ~ .sidebar-map .ol-scale-line {
transition: margin-left 500ms; } }
@media (min-width: 768px) and (max-width: 991px) {
.sidebar-left ~ .sidebar-map .ol-scale-line {
margin-left: 317px; } }
@media (min-width: 992px) and (max-width: 1199px) {
.sidebar-left ~ .sidebar-map .ol-scale-line {
margin-left: 402px; } }
@media (min-width: 1200px) {
.sidebar-left ~ .sidebar-map .ol-scale-line {
margin-left: 472px; } }

@media (min-width: 768px) {
.sidebar-left.collapsed ~ .sidebar-map .ol-scale-line {
margin-left: 52px; } }

.sidebar-right ~ .sidebar-map .ol-rotate,
.sidebar-right ~ .sidebar-map .ol-attribution,
.sidebar-right ~ .sidebar-map .ol-full-screen {
Expand Down
2 changes: 1 addition & 1 deletion css/ol3-sidebar.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions scss/ol3-sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $sidebar-inner-border-radius: 2px !default;

& ~ .sidebar-map {

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

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

&.collapsed ~ .sidebar-map {

.ol-zoom {
.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 9fe8ae3

Please sign in to comment.