_drawer.scss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .drawer {
  2. position: fixed;
  3. top: 0;
  4. left: -100%;
  5. z-index: z('drawer');
  6. width: $drawer-width;
  7. height: 100%;
  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: 100%;
  30. width: 100%;
  31. overflow-y: auto;
  32. }
  33. &__close {
  34. width: $grid-nav-height;
  35. height: 100%;
  36. cursor: pointer;
  37. @include flexbox();
  38. @include align-items(center);
  39. @include justify-content(center);
  40. @include themify($themes) {
  41. color: themed('body-color');
  42. @include on-event {
  43. color: themed('active-font-color');
  44. }
  45. }
  46. }
  47. }