1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 09:13:38 +01:00

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

View File

@ -177,8 +177,7 @@
}
.mobile-nav {
display: none;
background-color: black;
background-color: @blueDeep;
position: absolute;
width: 120%;
left: -10%;
@ -186,13 +185,24 @@
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;
margin-bottom: 20px;
padding-bottom: 20px;
}
}
}