1.js-mobile-menu { 2 display: none; 3 flex-direction: column; 4 justify-content: center; 5 float: left; 6 padding-top: 0; 7 margin-right: 0.6rem; 8 margin-left: 0.6rem; 9 font-size: 1.8rem; 10 cursor: pointer; 11 12 @include media-breakpoint-down(md) { 13 display: inline-flex; 14 } 15} 16 17.nav-bar { 18 position: fixed; 19 top: 0; 20 bottom: 0; 21 z-index: 502; 22 width: $size-navbar-width; 23 height: 100%; 24 margin-top: $size-header-height; 25 overflow-y: auto; 26 background: $gray-dark-menu; 27 transition: all 0.5s ease-out; 28 29 .material-icons { 30 font-size: 1.188rem; 31 line-height: inherit; 32 color: #fff; 33 } 34 35 &.mobile-nav { 36 width: 70%; 37 margin-top: $size-header-height + (0.625rem * 2); 38 margin-left: -100%; 39 40 &::before { 41 position: fixed; 42 top: 5rem; 43 left: 75%; 44 display: none; 45 font-family: "Material Icons", sans-serif; 46 font-size: 1.5rem; 47 color: #fff; 48 pointer-events: none; 49 content: "\e5cd"; 50 51 @include media-breakpoint-only(md) { 52 left: 50%; 53 } 54 } 55 56 @include media-breakpoint-only(sm) { 57 width: 60%; 58 } 59 60 @include media-breakpoint-only(md) { 61 width: 40%; 62 } 63 64 &.expanded { 65 display: block; 66 margin-left: 0; 67 68 &::before { 69 @include media-breakpoint-down(md) { 70 display: block; 71 } 72 } 73 } 74 75 .onboarding-navbar { 76 display: none; 77 } 78 79 .panel-collapse { 80 padding-left: 0; 81 82 .link-leveltwo .link { 83 padding-left: 1rem; 84 85 @include media-breakpoint-down(md) { 86 padding-left: 0.625rem; 87 } 88 } 89 } 90 91 .employee_avatar { 92 padding-top: 1rem; 93 padding-left: 1.5rem; 94 text-align: center; 95 text-decoration: none; 96 97 @include media-breakpoint-down(md) { 98 display: flex; 99 align-items: center; 100 } 101 102 > .employee_avatar { 103 @include media-breakpoint-down(md) { 104 padding-top: 0; 105 padding-left: 0; 106 margin-right: 1rem; 107 } 108 } 109 110 .material-icons { 111 font-size: 3.75rem; 112 line-height: 3.75rem; 113 114 @include media-breakpoint-down(md) { 115 font-size: 4.6875rem; 116 line-height: 4.6875rem; 117 } 118 } 119 120 span { 121 display: block; 122 margin-bottom: 0.625rem; 123 color: #fff; 124 125 @include media-breakpoint-down(md) { 126 font-size: 1rem; 127 font-weight: 500; 128 } 129 } 130 131 img { 132 width: 3.75rem; 133 height: 3.75rem; 134 135 @include media-breakpoint-down(md) { 136 width: 2.25rem; 137 height: 2.25rem; 138 } 139 140 &.img-thumbnail { 141 border-radius: 36px; 142 } 143 } 144 } 145 146 .shop-list { 147 padding-bottom: 1rem; 148 font-weight: 700; 149 text-align: center; 150 151 a { 152 @include media-breakpoint-down(md) { 153 font-size: 1.09375rem; 154 } 155 } 156 } 157 158 .main-menu { 159 margin-top: 0.625rem; 160 161 & > li:first-child { 162 padding-bottom: 1rem; 163 } 164 } 165 166 .shop-list-title { 167 margin-bottom: 0.9375rem; 168 font-size: 1rem; 169 color: $brand-primary; 170 text-align: center; 171 text-transform: uppercase; 172 173 &::after { 174 margin-left: 0.625rem; 175 font-family: "Material Icons", sans-serif; 176 font-size: 1.25rem; 177 line-height: 1.375rem; 178 vertical-align: bottom; 179 content: "\E313"; 180 } 181 } 182 183 .items-list { 184 padding-left: 0; 185 186 a:focus { 187 background-color: transparent; 188 } 189 190 li { 191 background-color: #fff; 192 border-bottom: $gray-light 1px solid; 193 194 &.group a { 195 padding: 0.9375rem 2.5rem; 196 font-weight: 700; 197 } 198 199 &.shop { 200 padding: 0.9375rem 0.9375rem 0.9375rem 2.5rem; 201 202 a { 203 display: inline-block; 204 width: auto; 205 206 &.link-shop { 207 float: right; 208 209 .material-icons { 210 font-size: 1.25rem; 211 color: $gray-medium; 212 } 213 } 214 } 215 } 216 } 217 218 li:first-child a { 219 padding: 0.9375rem 1.25rem; 220 font-size: 0.9375rem; 221 color: $brand-primary; 222 text-transform: uppercase; 223 } 224 } 225 } 226} 227 228.main-menu { 229 padding: 0 0 13.313rem; 230 margin: 0; 231 232 &.sidebar-closed { 233 .link-levelone { 234 .link > span { 235 display: none; 236 237 &.open { 238 > .submenu { 239 display: none; 240 } 241 } 242 } 243 } 244 245 .category-title > .title { 246 display: none; 247 } 248 } 249 250 .category-title > .title { 251 text-transform: uppercase; 252 } 253 254 .link-levelone { 255 $padding-size: 1.25rem; 256 display: block; 257 258 #header_logout { 259 margin-top: 1rem; 260 color: #f44336; 261 262 i { 263 margin-right: 0.625rem; 264 color: #f44336; 265 } 266 } 267 268 &[data-submenu] { 269 @include media-breakpoint-down(md) { 270 a.link { 271 padding-top: 0.5rem; 272 padding-bottom: 0.5rem; 273 padding-left: 1.5rem; 274 font-size: 1rem; 275 line-height: inherit; 276 277 .material-icons { 278 font-size: 1.25rem; 279 line-height: 1.4rem; 280 281 &.sub-tabs-arrow { 282 padding-right: 1.2rem; 283 } 284 } 285 } 286 } 287 288 &.has_submenu { 289 @include media-breakpoint-down(md) { 290 .sub-tabs-arrow { 291 visibility: visible; 292 } 293 } 294 } 295 } 296 297 &.link-active { 298 > .link { 299 padding-left: 0.638rem; 300 border-left: 0.25rem solid #25b9d7; 301 302 .material-icons { 303 &:first-child { 304 color: #25b9d7; 305 } 306 } 307 } 308 309 @include media-breakpoint-down(md) { 310 border-right: none; 311 } 312 } 313 314 &:not(#subtab-AdminParentModulesSf) { 315 i.material-icons.mi-extension { 316 color: #6c868e; 317 } 318 } 319 320 > .link { 321 display: flex; 322 align-items: end; 323 height: initial; 324 padding: 0.5rem 0.3125rem 0.5rem 0.938rem; 325 overflow: hidden; 326 font-size: 0.75rem; 327 line-height: 1rem; 328 color: $gray-dark-text; 329 text-decoration: none; 330 text-overflow: initial; 331 word-break: break-word; 332 white-space: initial; 333 @include media-breakpoint-down(md) { 334 font-size: 1rem; 335 } 336 337 span { 338 padding-left: 0.625rem; 339 } 340 341 .sub-tabs-arrow { 342 margin-left: auto; 343 line-height: inherit; 344 color: #6c868e; 345 vertical-align: middle; 346 visibility: hidden; 347 } 348 } 349 350 &.ul-open, 351 &.link-active, 352 &.-hover { 353 & > .link { 354 color: #fff; 355 background: #202226; 356 transition: background 300ms ease; 357 358 @include media-breakpoint-down(md) { 359 background: $gray-dark-menu; 360 } 361 } 362 363 &.has_submenu { 364 .link { 365 .sub-tabs-arrow { 366 visibility: visible; 367 } 368 } 369 } 370 } 371 372 > .submenu { 373 display: none; 374 padding-left: 2.75rem; 375 white-space: nowrap; 376 list-style: none; 377 background: #202226; 378 379 & > li { 380 @include media-breakpoint-down(md) { 381 a.link { 382 padding-top: 0.5rem; 383 padding-bottom: 0.5rem; 384 color: #bebebe; 385 } 386 } 387 388 &:first-of-type { 389 padding-top: 0.625rem; 390 391 @include media-breakpoint-down(md) { 392 padding-top: 0; 393 } 394 } 395 396 &:last-of-type { 397 padding-bottom: 0.75rem; 398 399 @include media-breakpoint-down(md) { 400 padding-bottom: 0; 401 } 402 } 403 } 404 } 405 406 &.ul-open, 407 &.link-active { 408 .link { 409 background: #202226; 410 } 411 } 412 413 &.open { 414 > .submenu { 415 display: block; 416 } 417 } 418 } 419 420 .link-leveltwo { 421 @extend .link-levelone; 422 423 &.link-active { 424 > .link { 425 padding-left: 0; 426 color: #fff; 427 border-left: none; 428 } 429 } 430 431 > .link { 432 height: initial; 433 padding: 0.3125rem 0.3rem 0.3125rem 0; 434 line-height: 0.9rem; 435 436 @include media-breakpoint-down(md) { 437 padding-top: 1.4rem; 438 padding-bottom: 1.4rem; 439 line-height: 1.6rem; 440 } 441 } 442 443 > .link:hover { 444 color: $gray-dark-text-hover; 445 } 446 } 447} 448 449.category-title { 450 display: block; 451 padding: 0.875rem 0 0.75rem; 452 margin: 1.813rem 0 0 0.938rem; 453 font-size: 0.75rem; 454 font-weight: 700; 455 border-top: 1px solid #bbcdd2; 456 457 @include media-breakpoint-down(md) { 458 padding-bottom: 0.25rem; 459 margin-top: 1rem; 460 font-size: 1rem; 461 font-weight: 500; 462 line-height: 1.25rem; 463 border-top: none; 464 } 465 466 & > .title { 467 color: #fff; 468 background: $gray-dark-menu; 469 } 470} 471 472.menu-collapse { 473 display: block; 474 height: 0.813rem; 475 padding: 0.688rem 0.938rem 1.188rem 0; 476 font-size: 2rem; 477 line-height: 0.813rem; 478 color: $gray-dark-text; 479 text-align: right; 480 cursor: pointer; 481 482 @include media-breakpoint-down(md) { 483 display: none; 484 padding-bottom: 1rem; 485 } 486 487 .material-icons { 488 color: #bebebe; 489 490 &:last-child { 491 margin-left: -1.313rem; 492 } 493 } 494} 495 496.page-sidebar-closed:not(.mobile) { 497 .content-div, 498 #content { 499 transition: padding 1s ease; 500 } 501 502 .menu-collapse { 503 padding-right: 0.8rem; 504 transform: rotate(180deg); 505 } 506 507 .nav-bar { 508 width: $size-navbar-width-mini; 509 overflow: visible !important; 510 511 &-overflow { 512 height: 100%; 513 overflow: hidden; 514 } 515 516 .main-menu { 517 overflow: hidden; 518 519 .category-title > .title, 520 .link-levelone span { 521 display: none; 522 } 523 524 .sub-tabs-arrow { 525 display: none !important; 526 } 527 528 .category-title { 529 padding-bottom: 0; 530 margin-top: 0.8rem; 531 } 532 533 .link-levelone { 534 .link { 535 line-height: initial; 536 } 537 538 &:first-of-type { 539 margin-bottom: 0; 540 } 541 542 &.ul-open { 543 > .link { 544 width: 14.6875rem; 545 transition: all 0s ease 0s; 546 547 > span { 548 display: inline-block; 549 padding-left: 1.563rem; 550 } 551 } 552 553 ul.submenu { 554 position: absolute !important; 555 left: 50px; 556 display: block !important; 557 width: 200px !important; 558 padding-left: 5px; 559 } 560 } 561 562 .link-leveltwo { 563 &:first-of-type { 564 padding-top: 0 !important; 565 margin-top: 0.2rem; 566 } 567 568 &:last-of-type { 569 padding-bottom: 0 !important; 570 margin-bottom: 1rem; 571 } 572 573 .link { 574 padding-left: 1.5rem; 575 } 576 } 577 } 578 } 579 580 @media (max-height: 870px) { // this two tabs need to be flipped, otherwise 581 // css issue with bottom of the page 582 #subtab-ShopParameters.ul-open, 583 #subtab-AdminAdvancedParameters.ul-open { 584 ul.submenu { 585 display: flex !important; 586 flex-direction: column-reverse; 587 margin-top: 35px; 588 transform: rotate(180deg); 589 transform-origin: top; 590 591 li { 592 transform: rotate(180deg); 593 594 &:last-of-type { 595 margin-bottom: 0; 596 } 597 } 598 } 599 } 600 } 601 } 602} 603 604.mobile-layer { 605 position: fixed; 606 top: 0; 607 left: 0; 608 z-index: 501; 609 display: none; 610 width: 100%; 611 height: 100%; 612 background: rgba(0, 0, 0, 0.8); 613 transition: all 0.2s ease-in-out; 614 615 &.expanded { 616 display: block; 617 } 618} 619