popup.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. .popup-modal {
  2. // ── 오버레이 ──────────────────────────────────
  3. &__overlay {
  4. position: fixed;
  5. inset: 0;
  6. z-index: 9999;
  7. display: flex;
  8. align-items: center;
  9. justify-content: center;
  10. background: var(--overlay-color);
  11. -webkit-backdrop-filter: blur(4px);
  12. backdrop-filter: blur(4px);
  13. animation: popupFadeIn 0.2s ease-out;
  14. }
  15. // ── 컨테이너 ─────────────────────────────────
  16. &__container {
  17. position: relative;
  18. width: 90%;
  19. max-width: 500px;
  20. max-height: 80vh;
  21. background: var(--bg-page);
  22. border-radius: 12px;
  23. overflow: hidden;
  24. box-shadow: 0 20px 60px var(--overlay-color);
  25. animation: popupSlideUp 0.25s ease-out;
  26. }
  27. // ── 본문 ─────────────────────────────────────
  28. &__body {
  29. max-height: calc(80vh - 50px);
  30. overflow-y: auto;
  31. .swiper {
  32. width: 100%;
  33. }
  34. .swiper-button-prev,
  35. .swiper-button-next {
  36. color: #fff;
  37. background: var(--overlay-color);
  38. width: 36px;
  39. height: 36px;
  40. border-radius: 50%;
  41. transition: background 0.2s;
  42. &:hover {
  43. background: var(--overlay-color);
  44. }
  45. &::after {
  46. font-size: 14px;
  47. font-weight: bold;
  48. }
  49. }
  50. .swiper-pagination-bullet {
  51. background: #fff;
  52. opacity: 0.5;
  53. &-active {
  54. opacity: 1;
  55. background: var(--color-primary-600, #2563eb);
  56. }
  57. }
  58. }
  59. // ── 슬라이드 ─────────────────────────────────
  60. &__slide {
  61. padding: 24px;
  62. }
  63. &__slide-subject {
  64. font-size: 1.15rem;
  65. font-weight: 700;
  66. margin-bottom: 12px;
  67. color: var(--text-primary);
  68. line-height: 1.4;
  69. }
  70. &__slide-content {
  71. font-size: 0.95rem;
  72. line-height: 1.7;
  73. color: var(--text-primary);
  74. word-break: keep-all;
  75. img {
  76. max-width: 100%;
  77. height: auto;
  78. border-radius: 8px;
  79. }
  80. a {
  81. color: var(--color-primary-600, #2563eb);
  82. text-decoration: underline;
  83. }
  84. }
  85. &__slide-link {
  86. display: block;
  87. text-decoration: none;
  88. color: inherit;
  89. cursor: pointer;
  90. &:hover .popup-modal__slide-content {
  91. opacity: 0.85;
  92. }
  93. }
  94. // ── 하단 ─────────────────────────────────────
  95. &__footer {
  96. display: flex;
  97. align-items: center;
  98. justify-content: space-between;
  99. padding: 10px 16px;
  100. border-top: 1px solid var(--border-default);
  101. background: var(--bg-elevated);
  102. }
  103. &__dismiss {
  104. display: flex;
  105. align-items: center;
  106. gap: 6px;
  107. cursor: pointer;
  108. -webkit-user-select: none;
  109. user-select: none;
  110. input[type='checkbox'] {
  111. width: 16px;
  112. height: 16px;
  113. accent-color: var(--color-primary-600, #2563eb);
  114. cursor: pointer;
  115. }
  116. span {
  117. font-size: 0.85rem;
  118. color: var(--text-secondary);
  119. }
  120. }
  121. &__close {
  122. padding: 6px 16px;
  123. font-size: 0.85rem;
  124. font-weight: 600;
  125. color: var(--text-secondary);
  126. background: var(--border-default);
  127. border: none;
  128. border-radius: 6px;
  129. cursor: pointer;
  130. transition: background 0.15s;
  131. &:hover {
  132. background: var(--border-strong);
  133. }
  134. }
  135. // ── 반응형 ───────────────────────────────────
  136. @media (max-width: 480px) {
  137. &__container {
  138. width: 95%;
  139. max-height: 85vh;
  140. border-radius: 10px;
  141. }
  142. &__slide {
  143. padding: 16px;
  144. }
  145. &__slide-subject {
  146. font-size: 1.05rem;
  147. }
  148. &__body {
  149. .swiper-button-prev,
  150. .swiper-button-next {
  151. width: 30px;
  152. height: 30px;
  153. &::after {
  154. font-size: 12px;
  155. }
  156. }
  157. }
  158. }
  159. }
  160. // ── 애니메이션 ───────────────────────────────────
  161. @keyframes popupFadeIn {
  162. from { opacity: 0; }
  163. to { opacity: 1; }
  164. }
  165. @keyframes popupSlideUp {
  166. from { opacity: 0; transform: translateY(20px); }
  167. to { opacity: 1; transform: translateY(0); }
  168. }