Skip to content

Commit 331deab

Browse files
authored
Merge pull request #5 from Lillinator/revert-4-remove-hide-for-anon
Revert "Temporarily remove hide sidebar for anon"
2 parents b46a638 + df3b268 commit 331deab

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

common/common.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,21 @@
111111

112112
// * hide entire Navigaion Menu from anon in desktop and mobile view* * //
113113

114-
// @if $show_navigation_menu_to_logged-in_only =="true" {
115-
// html.anon {
114+
@if $show_navigation_menu_to_logged-in_only =="true" {
115+
html.anon {
116116

117117
// Hide the narrow desktop sidebar
118118
// sidebar mobile version which is activate on desktop too under 1000px width
119-
// .d-header .hamburger-panel {
120-
// display: none;
121-
// }
119+
.d-header .hamburger-panel {
120+
display: none;
121+
}
122122

123123
// Hide the header cloak when menu opens
124-
// .header-cloak {
125-
// display: none !important;
126-
// }
127-
// }
128-
// }
124+
.header-cloak {
125+
display: none !important;
126+
}
127+
}
128+
}
129129

130130
// * menu sections re-order * //
131131

settings.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ hide_custom_menus_globe_icon:
4646
description:
4747
en: "Hide the custom menu globe icon from staff (this setting only affects staff, since non-staff cannot see the globe by default)."
4848

49+
show_navigation_menu_to_logged-in_only:
50+
type: bool
51+
default: false
52+
description:
53+
en: "Show entire navigation menu for only logged-in users (hide the entire menu from anonymous users)."
54+
4955
default_menu_section_ordering:
5056
type: list
5157
list_type: simple

0 commit comments

Comments
 (0)