settings.scss 873 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .settings {
  2. width: 100%;
  3. height: 100%;
  4. position: fixed;
  5. top: 0;
  6. left: 0;
  7. overflow: hidden;
  8. z-index: -1;
  9. &.open {
  10. z-index: 2000;
  11. }
  12. .container {
  13. position: absolute;
  14. top: 0;
  15. width: 400px;
  16. height: 100%;
  17. right: -400px;
  18. background-color: white;
  19. transition: right 250ms;
  20. box-shadow: 0 8px 17px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);
  21. overflow: auto;
  22. padding: 20px;
  23. padding-top: 50px;
  24. &.open {
  25. right: 0;
  26. }
  27. }
  28. .backdrop {
  29. display: block;
  30. width: 100%;
  31. height: 100%;
  32. position: fixed;
  33. top: 0;
  34. left: 0;
  35. transition: background-color 400ms;
  36. &.open {
  37. background-color: rgba(0,0,0,0.3);
  38. opacity: 0.5;
  39. }
  40. }
  41. }