diff --git a/common/common.scss b/common/common.scss index 9e9e938..66fe0d1 100644 --- a/common/common.scss +++ b/common/common.scss @@ -59,6 +59,22 @@ color: $link_icon_color; } +// * hide entire Sidebar from anon * + +@if $hide_all_from_anon == "true" { + html.anon { + // Hide the narrow desktop sidebar + // sidebar mobile version which is activate on desktop too under 1000px width + .d-header .hamburger-panel { + display: none; + } + // Hide the header cloak when menu opens + .header-cloak { + display: none !important; + } + } +} + // * hide the Community Section * @if $hide_community_section == "true" { diff --git a/settings.yml b/settings.yml index c286be7..e79fe0a 100644 --- a/settings.yml +++ b/settings.yml @@ -86,7 +86,13 @@ current_link_icon_color: default: "" description: en: "Color of the active side-bar link icon. Leave blank to use current default." - + +hide_all_from_anon: + type: bool + default: false + description: + en: "Hide the entire side-bar from anonymous users" + hide_community_section: type: bool default: false