settings.scss 925 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. overflow: auto;
  28. &.open {
  29. right: 0;
  30. }
  31. }
  32. .backdrop {
  33. width: 100%;
  34. height: 100%;
  35. position: fixed;
  36. top: 0;
  37. left: 0;
  38. transition: background-color 400ms;
  39. &.open {
  40. background-color: rgba(0,0,0,0.3);
  41. opacity: 0.5;
  42. }
  43. }
  44. }