_modals.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .modal-backdrop {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. right: 0;
  6. bottom: 0;
  7. margin-top: 0;
  8. background-color: rgba($color-text, .4);
  9. z-index: $zindex-modal;
  10. backdrop-filter: blur(2px);
  11. display: flex;
  12. align-items: flex-start;
  13. justify-content: center;
  14. @include media-breakpoint-up(md) {
  15. align-items: center;
  16. padding: $gap-8;
  17. }
  18. }
  19. .modal {
  20. background: $color-background;
  21. width: 40rem;
  22. max-width: 100%;
  23. border-radius: $border-radius;
  24. box-shadow: 0 20px 40px 0 rgba($color-text, .1), 0 0 2px 0 rgba($color-text, .06);
  25. position: relative;
  26. margin: $gap-4;
  27. }
  28. .modal-side {
  29. position: fixed;
  30. left: 0;
  31. top: 0;
  32. bottom: 0;
  33. width: 25rem;
  34. max-width: calc(100% - 6rem);
  35. border-radius: 0;
  36. margin: 0;
  37. padding: 1rem;
  38. padding-top: 4rem;
  39. }
  40. .modal-close {
  41. position: absolute;
  42. top: 0;
  43. right: 0;
  44. width: 3rem;
  45. height: 3rem;
  46. color: inherit;
  47. display: flex;
  48. align-items: center;
  49. justify-content: center;
  50. opacity: .5;
  51. transition: .3s opacity;
  52. cursor: pointer;
  53. svg {
  54. width: 1.5rem;
  55. height: 1.5rem;
  56. stroke-width: 1.5;
  57. }
  58. &:hover {
  59. opacity: 1;
  60. }
  61. }
  62. .modal-body {
  63. padding: 1rem;
  64. @include media-breakpoint-up(md) {
  65. padding: 2rem;
  66. }
  67. & + & {
  68. border-top: 1px solid $color-border;
  69. }
  70. }
  71. .modal-title {
  72. margin-bottom: $gap-3;
  73. }
  74. .modal-more {
  75. display: block;
  76. text-decoration: none;
  77. border-top: 1px solid $color-border-light;
  78. }
  79. .modal-wide {
  80. width: 60rem;
  81. }