Toggle navigation

This commit is contained in:
Evert Prants 2018-01-04 16:16:48 +02:00
parent 8000270a64
commit 57605c7424
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
3 changed files with 15 additions and 3 deletions

View File

@ -120,6 +120,14 @@ $(document).ready(function () {
}) })
} }
$('body').click(function (e) {
$('#show-menu').prop('checked', false)
})
$('.menu').click(function (e) {
e.stopPropagation()
})
$('#dialog #close').click(function (e) { $('#dialog #close').click(function (e) {
window.Dialog.close() window.Dialog.close()
}) })

View File

@ -98,8 +98,11 @@ a
cursor: pointer cursor: pointer
color: green color: green
.menu:hover > .list input[type=checkbox]
max-height: 500px display: none
&:checked ~ .list
max-height: 500px
section section
font-family: "Open Sans" font-family: "Open Sans"

View File

@ -69,8 +69,9 @@ html
.part1 Icy .part1 Icy
.part2 Network .part2 Network
.menu .menu
.showButton(for="show-menu") label.showButton(for="show-menu")
i.fa.fa-fw.fa-bars i.fa.fa-fw.fa-bars
input(type="checkbox" id="show-menu")
.list .list
ul ul
li li