[TASK] Mobile optimization

This commit is contained in:
Xaver Maierhofer 2016-05-29 20:11:05 +02:00
parent 953ce30e1e
commit 2b98e4dbc9
5 changed files with 31 additions and 17 deletions

View File

@ -1,3 +1,6 @@
rules:
no-color-literals: 0
single-line-per-selector: 0
# Allow for new prefixes like -webkit-tap-highlight-color or antialiasing
# Can maybe be enabled again with sass-lint 1.8 https://github.com/sasstools/sass-lint/pull/709
no-vendor-prefixes: 0

View File

@ -1,4 +1,5 @@
body {
-webkit-tap-highlight-color: transparent;
background: $color-white;
color: $color-black;
font-family: $font-family;

View File

@ -1,11 +1,19 @@
.leaflet-control-layers {
background: none;
&.leaflet-control {
background: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
margin: 0;
opacity: .7;
}
}
.leaflet-control-container {
.leaflet-control-layers-toggle {
background: none;
height: auto;
width: auto;
&::before {
color: $color-primary;
@ -18,6 +26,7 @@
text-rendering: auto;
}
}
}
.leaflet-control-layers-expanded {
padding: 0;

View File

@ -15,7 +15,8 @@
margin-left: $buttondistance;
}
@media screen and (max-width: $minscreenwidth) {
right: 0;
right: -1rem;
top: 0;
transform: scale(.8);
}
}

View File

@ -10,13 +10,13 @@
font-family: $font-family-secondary;
list-style: none;
margin: 0;
padding: 1em 0 0;
padding: 0;
li {
color: rgba($color-black, .5);
cursor: pointer;
flex: 1 1 auto;
padding: .5em .5em 1em;
padding: 1.3em .5em 1em;
text-align: center;
text-transform: uppercase;