modal.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. @import "variables";
  2. .backdrop-container {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. bottom: 0;
  7. right: 0;
  8. z-index: 50;
  9. background-color: rgba($color-purple-900, 0.4);
  10. > .backdrop {
  11. position: absolute;
  12. top: 0;
  13. left: 0;
  14. bottom: 0;
  15. right: 0;
  16. display: flex;
  17. justify-content: center;
  18. align-items: center;
  19. > .modal {
  20. background-color: $color-purple-50;
  21. opacity: 0.2;
  22. min-width: 400px;
  23. max-width: 1200px;
  24. max-height: 100%;
  25. border-radius: 10px;
  26. position: relative;
  27. overflow: hidden;
  28. > .close {
  29. position: absolute;
  30. right: 12px;
  31. top: 5px;
  32. padding: 5px 10px;
  33. font-size: 18px;
  34. transition: color 100ms linear;
  35. color: $color-white;
  36. &:hover {
  37. cursor: pointer;
  38. color: $color-purple-A400;
  39. }
  40. }
  41. > .head {
  42. padding: 10px 40px 10px 20px;
  43. background-color: $color-purple-900;
  44. color: $color-purple-50;
  45. font-weight: 700;
  46. }
  47. > .body {
  48. padding: 20px;
  49. }
  50. }
  51. &:last-child {
  52. > .modal {
  53. opacity: 1;
  54. box-shadow: 0 0 15px rgba($color-purple-900, 0.2);
  55. border: 1px solid $color-purple-900;
  56. }
  57. }
  58. }
  59. input,
  60. button {
  61. appearance: none;
  62. border-radius: $border-radius;
  63. border-color: $color-purple-500;
  64. outline: none;
  65. box-shadow: none;
  66. color: $color-purple-900;
  67. &::placeholder {
  68. color: rgba($color-black, 0.3);
  69. }
  70. &:focus,
  71. &:active {
  72. border-color: $color-purple-A400;
  73. box-shadow: 0 0 2px $color-purple-A400;
  74. }
  75. }
  76. }
  77. @media screen AND (max-width: 559px) {
  78. .backdrop-container {
  79. top: $mobile-hamburger-height;
  80. > .backdrop {
  81. > .modal {
  82. min-width: 100%;
  83. max-width: 100%;
  84. overflow-y: auto;
  85. border-radius: 0;
  86. > .body {
  87. padding: 5px;
  88. }
  89. }
  90. }
  91. }
  92. .content-editor {
  93. min-width: 100% !important;
  94. max-width: 100%;
  95. }
  96. }