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) {
window.Dialog.close()
})

View File

@ -98,7 +98,10 @@ a
cursor: pointer
color: green
.menu:hover > .list
input[type=checkbox]
display: none
&:checked ~ .list
max-height: 500px
section

View File

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