Skip to content
Snippets Groups Projects
Commit 34872538 authored by Frank Steinberg's avatar Frank Steinberg
Browse files

Minor.

parent 2c764607
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ styleguide subcategory {
transition-duration: .3s;
transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
overflow-y: hidden;
max-height: 10000px;
max-height: 6000px;
}
styleguide b {
......
......@@ -70,8 +70,13 @@ function renderStyleguide(styleguide) {
});
nav.addEventListener("click", function() {
this.parentNode.classList.toggle("closed");
this.parentNode.classList.toggle("open");
if (this.parentNode.classList.contains("closed")) {
this.parentNode.classList.remove("closed");
this.parentNode.classList.add("open");
} else {
this.parentNode.classList.add("closed");
this.parentNode.classList.remove("open");
}
});
parts[i].classList.add("closed");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment