maybe more clear menu icon structure

This commit is contained in:
q
2016-07-09 22:36:59 +03:00
parent 4e4a174338
commit 31b99fd614
5 changed files with 55 additions and 25 deletions

View File

@@ -33,14 +33,11 @@ function hideOthers(name) {
}
}
function dropDown(name) {
dropDownHide();
document.getElementById(name).classList.toggle("show");
hideOthers('foo');
}
// Close the dropdown menu if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
function dropDownHide() {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
@@ -49,6 +46,12 @@ window.onclick = function(event) {
openDropdown.classList.remove('show');
}
}
}
// Close the dropdown menu if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
dropDownHide();
}
}

View File

@@ -6,6 +6,7 @@ h2 { font-size: 1.2em; border-top: 2px solid #eee; margin-top: 0.25
td { height: 1.75em; }
textarea { border: 2px solid #ccc; }
input[type=text]{ border: 2px solid #ccc; }
hr { border-color: #377ba8; }
.submit { font-family: monospace; }
.tickbox { margin-right: 0.5em; width:2em; height:1.8em; }
@@ -32,7 +33,11 @@ input[type=text]{ border: 2px solid #ccc; }
-moz-animation: notifier 500ms alternate infinite;
-o-animation: notifier 500ms alternate infinite;
animation: notifier 500ms alternate infinite; }
#date { font-size: 0.75em; margin-top: 1.2em; }
.date { font-size: 0.75em; margin-top: 1.2em; }
/* MD rendering */
.md_head { color: #377ba8; font-weight: bold; }
/* dropdown */
@@ -68,7 +73,7 @@ input[type=text]{ border: 2px solid #ccc; }
/* Links inside the dropdown */
.dropdown-content a {
padding: 12px 16px;
padding: 8px 16px;
display: block;
}