5
0
mirror of https://github.com/cwinfo/yggdrasil-network.github.io.git synced 2024-11-08 21:10:26 +00:00

Merge pull request #72 from passenger0245/master

add burger menu
This commit is contained in:
Neil Alexander 2019-08-05 21:20:56 +01:00 committed by GitHub
commit 9e5deed710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}