_drawer.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 transition(all, 0.3s, ease-out);
  9. @include themify($themes) {
  10. background-color: themed('body-background-color');
  11. }
  12. &__header {
  13. height: $grid-nav-height;
  14. width: 100%;
  15. @include flexbox();
  16. @include themify($themes) {
  17. background-color: themed('navbar-background-color');
  18. box-shadow: 0 1px 0 rgba(12,13,14,0.1), 0 1px 6px rgba(60,65,70,0.1);
  19. }
  20. &--text {
  21. width: 100%;
  22. height: 100%;
  23. padding: 1rem;
  24. @include flexbox();
  25. @include align-items(center);
  26. @include justify-content(flex-start);
  27. @include themify($themes) {
  28. color: themed('title-color');
  29. }
  30. }
  31. }
  32. &__body {
  33. height: 100%;
  34. width: 100%;
  35. overflow-y: auto;
  36. }
  37. &__close {
  38. width: $grid-nav-height;
  39. height: 100%;
  40. cursor: pointer;
  41. @include flexbox();
  42. @include align-items(center);
  43. @include justify-content(center);
  44. @include themify($themes) {
  45. color: themed('body-color');
  46. @include on-event {
  47. color: themed('active-font-color');
  48. }
  49. }
  50. }
  51. }