diff --git a/www/css/common.v2.css b/www/css/common.v2.css index 27a34c61..1bd088fb 100644 --- a/www/css/common.v2.css +++ b/www/css/common.v2.css @@ -28,18 +28,6 @@ html, body { /* -------------------- */ /* -= Left navbar section =- */ -.menu-list .icon-text-part { - max-width: 240px; - transition: transform 0.3s; -} - -.menu-list .icon-text-part.is-collapsed { - transform: translateX(-100%); -} - -/* ------------------ */ -/* -= Other styles =- */ - #citation_c { max-width: 200px; } @@ -52,6 +40,14 @@ html, body { font-size: 90%; } +/* CSS class for the hide animation */ +.hidden-sidenavbar { + opacity: 0; + max-height: 0; + overflow: hidden; + transition: opacity 0.3s ease, max-height 0.3s ease; +} + .menu-list a { border-radius: 10px; padding: 0.25rem 0.5rem; @@ -59,6 +55,24 @@ html, body { font-size: 90%; } +.menu-list li { + /*border: 1px solid black; */ + min-height: 2.5rem; +} + +p.menu-label { + min-height: 1.5rem; +} + +/* CSS class for the show animation */ +.shown-sidenavbar { + opacity: 1; + max-height: 1000px; /* Adjust the maximum height as needed */ + transition: opacity 0.3s ease, max-height 0.3s ease; +} + +/* ------------------ */ +/* -= Other styles =- */ .js-step-collapsable { display: none; } diff --git a/www/include/primary_nav.html b/www/include/primary_nav.html index 012c923a..7206a2db 100644 --- a/www/include/primary_nav.html +++ b/www/include/primary_nav.html @@ -4,7 +4,7 @@