diff --git a/assets/style.scss b/assets/style.scss index 0e269684..a8192c09 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -195,9 +195,44 @@ body { } .sidebar { - @media screen and (max-width: $mobile-width) { - margin-bottom: 60px; - } + @media screen and (max-width: $mobile-width) { + margin-bottom: 60px; + + input[type="checkbox"] { + display: none; + } + label { + font-size: 1.2rem; + display: flex; + justify-content: flex-end; + margin-bottom: 2rem; + } + label i { + margin-right: .25rem; + } + input[type="checkbox"]:not(:checked) + label > .menu-open { + display: none; + } + + input[type="checkbox"]:checked + label > .menu-close { + display: none; + } + + & > ul { + display: none; + } + + #mobile-nav-toggle:checked ~ ul { + display: block; + } + } + + @media screen and (min-width: $mobile-width) { + .mobile-nav-wrapper { + display: none; + } + } + .brand { display: flex; diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index f93a3515..61d9533a 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -2,6 +2,16 @@ + + +