_drawer.scss 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. .drawer {
  2. position: fixed;
  3. top: 0;
  4. left: -100%;
  5. z-index: z('drawer');
  6. width: $drawer-width;
  7. height: 100vh;
  8. @include themify($themes) {
  9. background-color: themed('body-background-color');
  10. }
  11. &__header {
  12. height: $grid-nav-height;
  13. width: 100%;
  14. @include flexbox();
  15. @include themify($themes) {
  16. background-color: themed('navbar-background-color');
  17. box-shadow: 0 1px 0 rgba(12,13,14,0.1), 0 1px 6px rgba(60,65,70,0.1);
  18. }
  19. &--text {
  20. width: 100%;
  21. height: 100%;
  22. padding: 1rem;
  23. @include flexbox();
  24. @include align-items(center);
  25. @include justify-content(flex-start);
  26. }
  27. }
  28. &__body {
  29. height: calc(100vh - $grid-nav-height);
  30. width: 100%;
  31. }
  32. &__close {
  33. width: $grid-nav-height;
  34. height: 100%;
  35. cursor: pointer;
  36. @include flexbox();
  37. @include align-items(center);
  38. @include justify-content(center);
  39. @include themify($themes) {
  40. color: themed('body-color');
  41. @include on-event {
  42. color: themed('active-font-color');
  43. }
  44. }
  45. }
  46. }