Implemented button highlighting.

This commit is contained in:
WrinklyNinja
2014-07-12 15:22:23 +01:00
parent f4b8ece259
commit 77c45e6ded
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -478,4 +478,8 @@ label[for=editorPriorityValue] {
}
[draggable] {
-webkit-user-select: none;
}
.highlight {
background: #69aaff;
color: #f8f8f8;
}
+3
View File
@@ -65,6 +65,9 @@ function hideElement(element) {
element.classList.toggle('hidden', true);
}
}
function highlightElement(element, state) {
element.classList.toggle('highlight', state);
}
function toggleDisplayCSS(evt) {
var e = document.getElementsByClassName(evt.target.getAttribute('data-class'));
if (evt.target.checked) {