5
0
mirror of https://github.com/cwinfo/yggdrasil-network.github.io.git synced 2024-11-09 16:50:31 +00:00

add burger menu

This commit is contained in:
passenger 2019-08-05 19:03:40 +02:00
parent 34f0cd8673
commit cfa406ed84

View File

@ -22,15 +22,67 @@ div.wrapper section p a code {
section {
flex: auto;
max-width: 100vw;
margin-right: 20px;
@media screen and (max-width: 767px) {
border: 0;
}
}
header {
flex: initial;
position: relative;
width: 240px !important;
margin-right: 1em;
@media screen and (max-width: 767px) {
font-size: 0;
&:before {
content:'\2261';
display: block;
position: absolute;
left: 0px;
font-size: 32px;
top: -30px;
}
img {
display: none;
}
> a {
position: absolute;
top: -23px;
left: 50px;
}
&:hover {
padding: 0;
font-size: initial;
> a {
pointer-events: none;
position: initial;
}
position: fixed;
height: 100%;
overflow: scroll;
background-color: white;
top: 0px;
width: 100%;
z-index: 100;
padding-top: 45px;
padding-bottom: 50px;
p {
a {
font-size: 24px;
padding-top: 2px;
padding-bottom: 2px;
display: block;
}
br {
display: none;
}
}
&:before {
display: none;
}
}
}
}
pre {
overflow-x: scroll;
}