5
0
mirror of https://github.com/cwinfo/yggdrasil-network.github.io.git synced 2024-09-19 21:52: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 { section {
flex: auto; flex: auto;
max-width: 100vw; max-width: 100vw;
margin-right: 20px;
@media screen and (max-width: 767px) {
border: 0;
}
} }
header { header {
flex: initial; flex: initial;
position: relative; position: relative;
width: 240px !important;
margin-right: 1em; 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 { pre {
overflow-x: scroll; overflow-x: scroll;
} }