Toggle navigation
This commit is contained in:
parent
8000270a64
commit
57605c7424
@ -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()
|
||||
})
|
||||
|
@ -98,7 +98,10 @@ a
|
||||
cursor: pointer
|
||||
color: green
|
||||
|
||||
.menu:hover > .list
|
||||
input[type=checkbox]
|
||||
display: none
|
||||
|
||||
&:checked ~ .list
|
||||
max-height: 500px
|
||||
|
||||
section
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user