Merge pull request #93 from albertov/toolbar-offset

Configurable toolbar top offset.
This commit is contained in:
Lukas Martinelli 2017-01-26 23:18:17 +01:00 committed by GitHub
commit fd291490d0
4 changed files with 8 additions and 7 deletions

View file

@ -1,10 +1,10 @@
// MAP
.maputnik-map {
position: fixed !important;
top: 40px;
top: $toolbar-height + $toolbar-offset;
right: 0;
bottom: 0;
height: calc(100% - $toolbar-height);
height: calc(100% - #{$toolbar-height + $toolbar-offset});
width: 75%;
}

View file

@ -17,8 +17,8 @@
&-list {
position: fixed;
bottom: 0;
height: calc(100% - $toolbar-height);
top: 40px;
height: calc(100% - #{$toolbar-height + $toolbar-offset});
top: $toolbar-height + $toolbar-offset;
left: 0;
z-index: 3;
width: 200px;
@ -29,8 +29,8 @@
&-drawer {
position: fixed;
bottom: 0;
height: calc(100% - $toolbar-height);
top: 40px;
height: calc(100% - #{$toolbar-height + $toolbar-offset});
top: $toolbar-height + $toolbar-offset;
left: 200px;
z-index: 1;
width: 350px;

View file

@ -5,7 +5,7 @@
width: 100%;
z-index: 100;
left: 0;
top: 0;
top: $toolbar-offset;
background-color: $color-black;
}

View file

@ -18,6 +18,7 @@ $font-size-6: 12px;
$font-family: Roboto, sans-serif;
$toolbar-height: 40px;
$toolbar-offset: 0;
@import 'mixins';
@import 'reset';