3 background-color: $wcfHeaderMenuBackground;
14 @include screen-sm-up {
15 + .menuOverlayMobileBackdrop {
21 &.androidMenuTouchEnd {
24 transition: transform 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94);
26 &.pageMainMenuMobile:not(.open) {
27 transform: translateX(-100vw);
29 &.pageUserMenuMobile:not(.open) {
30 transform: translateX(100vw);
33 @include screen-sm-up {
34 &.pageMainMenuMobile:not(.open) {
35 transform: translateX(-350px);
37 &.pageUserMenuMobile:not(.open) {
38 transform: translateX(350px);
41 + .menuOverlayMobileBackdrop {
42 transition: left 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94),
43 right 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94);
48 > .menuOverlayItemList {
49 // we use `transform: translateX()` for performance reasons
50 transition: transform 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94);
52 /* work-around to avoid setting explicit visibility */
57 .menuOverlayItemList:not(.hidden) {
59 -webkit-overflow-scrolling: touch;
64 // block UI while switching between menus
81 .menuOverlayItemList {
86 @include screen-sm-up {
89 &.pageMainMenuMobile {
92 & + .menuOverlayMobileBackdrop {
93 box-shadow: inset 5px 0 10px -5px rgba(0, 0, 0, 0.6);
97 .menuOverlayItemList {
102 &.pageUserMenuMobile {
105 & + .menuOverlayMobileBackdrop {
106 box-shadow: inset -5px 0 10px -5px rgba(0, 0, 0, 0.6);
110 .menuOverlayItemList {
117 .menuOverlayMobileBackdrop {
118 background-color: rgba(0, 0, 0, 0.4);
128 .menuOverlayItemWrapper {
130 justify-content: flex-end;
132 > .menuOverlayItemLink {
137 .menuOverlayItemList {
138 background-color: $wcfHeaderMenuBackground;
140 list-style-type: none;
147 width: calc(100vw + 1px);
150 @include screen-sm-up {
159 .menuOverlayItemSpacer {
162 /* avoid successive spacers piling up */
163 & + .menuOverlayItemSpacer {
173 /* nested item list */
174 > .menuOverlayItemList {
180 .menuOverlayItemLink,
182 .menuOverlayBackLink {
183 color: $wcfHeaderMenuLink;
190 .menuOverlayItemLink {
192 background-color: $wcfHeaderMenuLinkBackground;
195 text-overflow: ellipsis;
199 color: $wcfHeaderMenuLink;
203 color: $wcfHeaderMenuLinkActive;
206 /* wrapper class for links containing an additional badge */
207 &.menuOverlayItemBadge {
212 /* different padding if there is no additional icon after the link,
213 ensures proper alignment for links with badges containing a child
216 /* 55px = 10px padding + 1px margin + icon */
217 /* icon = 2x 10px padding + 16px width */
221 > .menuOverlayItemTitle {
230 &.menuOverlayItemLinkMore::after {
231 color: $wcfHeaderMenuLink;
232 content: $fa-var-angle-right;
234 font-family: FontAwesome;
239 transform: translateY(-50%);
242 .menuOverlayItemTitle {
244 text-overflow: ellipsis;
248 /* fix icons in rtl design */
249 html[dir="rtl"] .menuOverlayItemLink.menuOverlayItemLinkMore::after {
250 content: $fa-var-angle-left;
253 .pageUserMenuMobile .menuOverlayItemBadge:last-child {
254 padding-right: 10px !important;
257 .menuOverlayItemLink.active,
258 .menuOverlayItemLinkIcon.active {
259 background-color: $wcfHeaderMenuLinkBackgroundActive;
260 color: $wcfHeaderMenuLinkActive;
263 .menuOverlayItemLinkIcon.active > .icon::before {
264 color: $wcfHeaderMenuLinkActive;
268 color: rgba($wcfHeaderMenuLink, 0.7);
270 text-overflow: ellipsis;
273 &:not(:first-child) {
278 /* icon link sharing the space with a link or (header only) the logo */
279 .menuOverlayItemLinkIcon {
280 background-color: $wcfHeaderMenuLinkBackground;
285 /* force explicit dimensions because no each .icon24 is of equal height/width */
290 color: $wcfHeaderMenuLink;
294 .menuOverlayBackLink::before {
295 color: rgba($wcfHeaderMenuLink, 0.7);
296 content: $fa-var-angle-left;
298 font-family: FontAwesome;
303 transform: translateY(-50%);
306 .menuOverlayLogoWrapper {
313 background-size: contain;
314 background-repeat: no-repeat;
315 background-position: center;