Dropdown properties

master
Bob Mottram 2019-08-25 14:10:58 +01:00
parent 3575137b2e
commit c4d125480a
2 changed files with 7 additions and 2 deletions

View File

@ -669,3 +669,8 @@ input[type=checkbox]
background: var(--main-bg-color);
cursor: pointer;
}
.dropbtn {
border: none;
cursor: pointer;
}

View File

@ -655,7 +655,7 @@ def htmlNewPost(baseDir: str,path: str,inReplyTo: str,mentions: [],reportUrl: st
' <div class="vertical-center">' \
' <label for="nickname"><b>'+newPostText+'</b></label>' \
' <div class="container">' \
' <div class="dropdown" onclick="dropdown()">' \
' <div class="dropbtn" onclick="dropdown()">' \
' <img src="/icons/'+scopeIcon+'"/><b class="scope-desc">'+scopeDescription+'</b>'+ \
dropDownContent+ \
' </div>' \
@ -993,7 +993,7 @@ def clickToDropDownScript() -> str:
' document.getElementById("myDropdown").classList.toggle("show");' \
'}' \
'window.onclick = function(event) {' \
" if (!event.target.matches('scope-desc')) {" \
" if (!event.target.matches('.dropbtn')) {" \
' var dropdowns = document.getElementsByClassName("dropdown-content");' \
' var i;' \
' for (i = 0; i < dropdowns.length; i++) {' \