Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions common/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
8 changes: 7 additions & 1 deletion settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down