mobile menu refactor & tweaks

- transition between open/close
- clean up font sizes, spacing
This commit is contained in:
Matthias Kretschmann 2016-02-02 23:10:02 +01:00
parent d3ce8295cb
commit 62ea0e3b97
1 changed files with 22 additions and 20 deletions

View File

@ -177,22 +177,32 @@
}
.mobile-nav {
display: none;
background-color: black;
background-color: @blueDeep;
position: absolute;
width: 120%;
left: -10%;
top: 0;
text-align:center;
z-index:4;
text-align: center;
z-index: 4;
// open/close transition, slide in from top
transition: transform .2s ease-out;
transform: translate3d(0,-100%,0);
&.active {
transform: translate3d(0,0,0);
}
@media (min-width: @phoneWidth) {
display: none;
}
ul {
padding: 40px 0 20px;
padding: 30px 0 20px;
}
li {
font-weight: 400;
padding-bottom: 15px;
font-size: 13px;
font-weight: @font-weight-normal;
padding-bottom: 5px;
a {
color: @white;
@ -202,20 +212,12 @@
}
}
&:nth-child(-n+3) {
font-size: 16px;
padding-bottom: 35px;
&:extend(.large);
}
&:nth-child(3) {
border-bottom:1px solid @white;
margin-bottom:25px;
}
}
@media screen and (max-width: @phoneWidth) {
display:none;
&.active {
display: block;
border-bottom: 1px solid @white;
margin-bottom: 20px;
padding-bottom: 20px;
}
}
}