settings.scss 901 B

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