You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.1 KiB

  1. .sidebar {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. width: 100%;
  6. height: 100%;
  7. max-width: 33%;
  8. z-index: 1;
  9. visibility: hidden;
  10. transition: visibility 0s linear 0.5s;
  11. &__body {
  12. @extend .panel__body;
  13. }
  14. &__inner {
  15. @extend .panel;
  16. position: relative;
  17. height: 100%;
  18. transition: transform 0.2s;
  19. transform: translateX(-100%);
  20. }
  21. &__footer {
  22. position: fixed;
  23. left: 0;
  24. bottom: 0;
  25. display: flex;
  26. justify-content: space-between;
  27. background: var(--background);
  28. width: 100%;
  29. padding: 1rem;
  30. }
  31. &:before {
  32. position: fixed;
  33. top: 0;
  34. left: 0;
  35. width: 100%;
  36. height: 100%;
  37. background-color: transparent;
  38. transition: background-color 0.5s;
  39. z-index: 0;
  40. content: "";
  41. }
  42. &--open {
  43. visibility: visible;
  44. transition: visibility 0s linear 0s;
  45. .sidebar__inner {
  46. transform: translateX(0);
  47. }
  48. &:before {
  49. background: rgba(0,0,0,.7);
  50. }
  51. }
  52. }