3 background-color: $wcfHeaderMenuBackground;
14 @include screen-sm-up {
15 + .menuOverlayMobileBackdrop {
21 &.androidMenuTouchEnd {
24 transition: transform .24s cubic-bezier(.25, .46, .45, .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 .24s cubic-bezier(.25, .46, .45, .94), right .24s cubic-bezier(.25, .46, .45, .94);
47 > .menuOverlayItemList {
48 // we use `transform: translateX()` for performance reasons
49 transition: transform .24s cubic-bezier(.25, .46, .45, .94);
51 /* work-around to avoid setting explicit visibility */
56 .menuOverlayItemList:not(.hidden) {
58 -webkit-overflow-scrolling: touch;
63 // block UI while switching between menus
80 .menuOverlayItemList {
85 @include screen-sm-up {
88 &.pageMainMenuMobile {
91 & + .menuOverlayMobileBackdrop {
92 box-shadow: inset 5px 0 10px -5px rgba(0, 0, 0, .6);
96 .menuOverlayItemList {
101 &.pageUserMenuMobile {
104 & + .menuOverlayMobileBackdrop {
105 box-shadow: inset -5px 0 10px -5px rgba(0, 0, 0, .6);
109 .menuOverlayItemList {
116 .menuOverlayMobileBackdrop {
117 background-color: rgba(0, 0, 0, .4);
127 .menuOverlayItemWrapper {
129 justify-content: flex-end;
131 > .menuOverlayItemLink {
136 .menuOverlayItemList {
137 background-color: $wcfHeaderMenuBackground;
139 list-style-type: none;
146 width: calc(100vw + 1px);
149 @include screen-sm-up {
158 .menuOverlayItemSpacer {
161 /* avoid successive spacers piling up */
162 & + .menuOverlayItemSpacer {
172 /* nested item list */
173 > .menuOverlayItemList {
179 .menuOverlayItemLink,
181 .menuOverlayBackLink {
182 color: $wcfHeaderMenuLink;
189 .menuOverlayItemLink {
191 background-color: $wcfHeaderMenuLinkBackground;
194 text-overflow: ellipsis;
198 color: $wcfHeaderMenuLink;
202 color: $wcfHeaderMenuLinkActive;
205 /* wrapper class for links containing an additional badge */
206 &.menuOverlayItemBadge {
211 /* different padding if there is no additional icon after the link,
212 ensures proper alignment for links with badges containing a child
215 /* 55px = 10px padding + 1px margin + icon */
216 /* icon = 2x 10px padding + 16px width */
220 > .menuOverlayItemTitle {
229 &.menuOverlayItemLinkMore::after {
230 color: $wcfHeaderMenuLink;
231 content: $fa-var-angle-right;
233 font-family: FontAwesome;
238 transform: translateY(-50%);
241 .menuOverlayItemTitle {
243 text-overflow: ellipsis;
247 /* fix icons in rtl design */
248 html[dir="rtl"] .menuOverlayItemLink.menuOverlayItemLinkMore::after {
249 content: $fa-var-angle-left;
252 .pageUserMenuMobile .menuOverlayItemBadge:last-child {
253 padding-right: 10px !important;
256 .menuOverlayItemLink.active,
257 .menuOverlayItemLinkIcon.active {
258 background-color: $wcfHeaderMenuLinkBackgroundActive;
259 color: $wcfHeaderMenuLinkActive;
262 .menuOverlayItemLinkIcon.active > .icon::before {
263 color: $wcfHeaderMenuLinkActive;
267 color: rgba($wcfHeaderMenuLink, .7);
269 text-overflow: ellipsis;
272 &:not(:first-child) {
277 /* icon link sharing the space with a link or (header only) the logo */
278 .menuOverlayItemLinkIcon {
279 background-color: $wcfHeaderMenuLinkBackground;
284 /* force explicit dimensions because no each .icon24 is of equal height/width */
289 color: $wcfHeaderMenuLink;
293 .menuOverlayBackLink::before {
294 color: rgba($wcfHeaderMenuLink, .7);
295 content: $fa-var-angle-left;
297 font-family: FontAwesome;
302 transform: translateY(-50%);
305 .menuOverlayLogoWrapper {
312 background-size: contain;
313 background-repeat: no-repeat;
314 background-position: center;