_slider-panel.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .slider-panel {
  2. padding: 0;
  3. background-color: $white;
  4. position: fixed;
  5. top: 0;
  6. bottom: 0;
  7. height: 100vh;
  8. height: calc(var(--vh, 1vh) * 100);
  9. transition: right 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
  10. backface-visibility: hidden;
  11. border-left: 1px solid rgba(0, 0, 0, 0.05);
  12. box-shadow: $menu-shadow;
  13. width: 450px;
  14. right: -450px;
  15. z-index: 998;
  16. &.open{
  17. right: 0;
  18. }
  19. .slider-content {
  20. position: relative;
  21. height: 100%;
  22. width: 450px;
  23. }
  24. .slider-close{
  25. position: absolute;
  26. right: 30px;
  27. top: 20px;
  28. padding: 7px;
  29. width: auto;
  30. z-index: 10;
  31. color: #626262;
  32. i{
  33. font-size: 1.35rem;
  34. }
  35. }
  36. .slider-toggle {
  37. background: $primary;
  38. color: $white;
  39. display: block;
  40. box-shadow: -3px 0px 8px rgba(0, 0, 0, 0.1);
  41. border-top-left-radius: 6px;
  42. border-bottom-left-radius: 6px;
  43. position: absolute;
  44. top: 50%;
  45. width: 38px;
  46. height: 38px;
  47. left: -39px;
  48. text-align: center;
  49. line-height: 40px;
  50. cursor: pointer;
  51. }
  52. }
  53. @media (max-width: 576px) {
  54. .slider-panel {
  55. width: 410px;
  56. right: -410px;
  57. .slider-content {
  58. width: 410px;
  59. }
  60. }
  61. }