Skip to content
Snippets Groups Projects
Commit 18bb5a53 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

update: toggle the user list on chevron

parent 7f4115de
No related branches found
Tags v0.10.5
1 merge request!208update: toggle the user list on chevron
Pipeline #7486 canceled
document.addEventListener("DOMContentLoaded", () => {
const menuWrappers = Array.from(document.querySelectorAll(".menu-wrapper"));
//- Toggle sub-menus
menuWrappers.forEach(menuWrapper => {
const menu = menuWrapper.querySelector(".menu");
menu.addEventListener("click", e => {
menuWrapper.classList.toggle("is-closed");
});
});
});
\ No newline at end of file
......@@ -61,7 +61,7 @@ solid-dashboard section {
position: sticky;
top: 0;
overflow-x: hidden;
overflow-y: auto;
overflow-y: scroll;
}
&.jsLeftMenu {
......
......@@ -13,13 +13,21 @@
solid-router {
.menu-wrapper {
&.is-closed {
.sub-menu {
display: none;
.menu-icon.icon-arrow-up {
visibility: hidden;
}
@include breakpoint(lg) {
.menu-icon.icon-arrow-up {
visibility: visible;
}
&.is-closed {
.sub-menu {
display: none;
}
.menu-chevron {
transform: rotate(180deg);
.menu-chevron {
transform: rotate(180deg);
}
}
}
}
......
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