PopupModal.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. // 팝업 모달 오버레이
  2. .popup-modal-overlay {
  3. position: fixed;
  4. inset: 0;
  5. z-index: 9999;
  6. display: flex;
  7. align-items: center;
  8. justify-content: center;
  9. background: var(--overlay-color);
  10. backdrop-filter: blur(4px);
  11. -webkit-backdrop-filter: blur(4px);
  12. animation: popupFadeIn 0.2s ease-out;
  13. }
  14. // 팝업 컨테이너
  15. .popup-modal-container {
  16. position: relative;
  17. width: 90%;
  18. max-width: 500px;
  19. max-height: 80vh;
  20. background: var(--bg-page);
  21. border-radius: 12px;
  22. overflow: hidden;
  23. box-shadow: 0 20px 60px var(--overlay-color);
  24. animation: popupSlideUp 0.25s ease-out;
  25. }
  26. // 팝업 본문
  27. .popup-modal-body {
  28. max-height: calc(80vh - 50px);
  29. overflow-y: auto;
  30. // Swiper 커스텀 스타일
  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. .popup-slide {
  61. padding: 24px;
  62. }
  63. .popup-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. .popup-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. .popup-slide-link {
  86. display: block;
  87. text-decoration: none;
  88. color: inherit;
  89. cursor: pointer;
  90. &:hover .popup-slide-content {
  91. opacity: 0.85;
  92. }
  93. }
  94. // 하단 - 하루동안 보지않기 + 닫기
  95. .popup-modal-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. .popup-modal-dismiss {
  104. display: flex;
  105. align-items: center;
  106. gap: 6px;
  107. cursor: pointer;
  108. user-select: none;
  109. input[type='checkbox'] {
  110. width: 16px;
  111. height: 16px;
  112. accent-color: var(--color-primary-600, #2563eb);
  113. cursor: pointer;
  114. }
  115. span {
  116. font-size: 0.85rem;
  117. color: var(--text-secondary);
  118. }
  119. }
  120. .popup-modal-close {
  121. padding: 6px 16px;
  122. font-size: 0.85rem;
  123. font-weight: 600;
  124. color: var(--text-secondary);
  125. background: var(--border-default);
  126. border: none;
  127. border-radius: 6px;
  128. cursor: pointer;
  129. transition: background 0.15s;
  130. &:hover {
  131. background: var(--border-strong);
  132. }
  133. }
  134. // 애니메이션
  135. @keyframes popupFadeIn {
  136. from {
  137. opacity: 0;
  138. }
  139. to {
  140. opacity: 1;
  141. }
  142. }
  143. @keyframes popupSlideUp {
  144. from {
  145. opacity: 0;
  146. transform: translateY(20px);
  147. }
  148. to {
  149. opacity: 1;
  150. transform: translateY(0);
  151. }
  152. }
  153. // 반응형
  154. @media (max-width: 480px) {
  155. .popup-modal-container {
  156. width: 95%;
  157. max-height: 85vh;
  158. border-radius: 10px;
  159. }
  160. .popup-slide {
  161. padding: 16px;
  162. }
  163. .popup-slide-subject {
  164. font-size: 1.05rem;
  165. }
  166. .popup-modal-body {
  167. .swiper-button-prev,
  168. .swiper-button-next {
  169. width: 30px;
  170. height: 30px;
  171. &::after {
  172. font-size: 12px;
  173. }
  174. }
  175. }
  176. }