diff --git a/themes/learn2/css/.custom.css.swp b/themes/learn2/css/.custom.css.swp new file mode 100644 index 0000000..cc54333 Binary files /dev/null and b/themes/learn2/css/.custom.css.swp differ diff --git a/themes/learn2/css/custom.css b/themes/learn2/css/custom.css index 107f3fa..5a4efe4 100644 --- a/themes/learn2/css/custom.css +++ b/themes/learn2/css/custom.css @@ -123,3 +123,22 @@ textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[typ blockquote { border-left: 10px solid #9C5EA2; } + +/* Hides the sub-menu item if parent not active */ +.dd-item .dd-item ul li { + display: none; +} + +.dd-item .dd-item.active ul li, +.dd-item.parent > ul > li { + display: block; +} + +/* Hides the sub-sub-menu menu-item if parent not active */ +.dd-item.parent > ul > li.dd-item.active > ul > li > ul > li { + display: none; +} + +.dd-item.parent > ul > li.dd-item.active > ul > li { + display: block; +}