_modals.scss 1.4 KB

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