fix hamburger link
This commit is contained in:
parent
bb481eb77c
commit
3640464841
2 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@
|
|||
<script src="lib/prism/prism.js"></script>
|
||||
<script>
|
||||
document.querySelector(".hamburger").onclick = function() {
|
||||
document.body.className = 'navigating'
|
||||
document.body.className = document.body.className === "navigating" ? "" : "navigating"
|
||||
document.querySelector("h1 + ul").onclick = function() {
|
||||
document.body.className = ''
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ h1 + ul strong + ul {border-left:3px solid #1e5799;}
|
|||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.hamburger {display:block;font-size:30px;padding:0 10px;position:fixed;right:0;top:0;}
|
||||
.hamburger {display:block;font-size:30px;padding:0 10px;position:fixed;right:0;top:0;z-index:2;}
|
||||
.hamburger:hover {text-decoration:none;}
|
||||
main section {margin:0;}
|
||||
header section {margin:0 0 20px;position:static;width:auto;}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue