style.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. // FAQ
  2. #faq {
  3. padding: 24px 32px 32px 32px;
  4. min-width: 410px;
  5. max-width: 1920px;
  6. margin: 0 auto;
  7. > p {
  8. font-weight: 500;
  9. font-size: 1.375rem;
  10. margin-bottom: 1.25rem;
  11. }
  12. > form {
  13. > dl {
  14. > dt {
  15. display: flex;
  16. flex-direction: row;
  17. flex-wrap: nowrap;
  18. justify-content: flex-start;
  19. align-items: center;
  20. gap: 0.625rem;
  21. > input {
  22. flex-grow: 0.08;
  23. flex-basis: auto;
  24. }
  25. > button {
  26. flex-grow: auto;
  27. }
  28. }
  29. > dd {
  30. margin-top: 14px;
  31. > ul {
  32. display: flex;
  33. flex-direction: row;
  34. flex-wrap: wrap;
  35. column-gap: 14px;
  36. row-gap: 8px;
  37. list-style: none;
  38. > li {
  39. font-size: 16px;
  40. &.active > button {
  41. color: var(--brand-orange);
  42. font-weight: 600;
  43. }
  44. > button {
  45. cursor: pointer;
  46. &:hover {
  47. color: var(--brand-orange);
  48. background-color: var(--color-primary-100);
  49. text-decoration: underline;
  50. }
  51. }
  52. // 수직선 구분
  53. &::after {
  54. content: '';
  55. display: inline-block;
  56. width: 1px;
  57. height: 14px;
  58. background-color: #858585;
  59. margin-left: 15px;
  60. position: relative;
  61. top: 2px;
  62. }
  63. &:last-child::after {
  64. display: none;
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }
  71. // 검색 결과 안내
  72. > .search-result {
  73. font-size: 14px;
  74. margin: 16px 0 8px;
  75. font-weight: 400;
  76. }
  77. // FAQ 목록
  78. > #questions {
  79. margin-top: 16px;
  80. > .faq-item {
  81. border-bottom: 1px solid var(--color-border, #e5e5e5);
  82. > summary {
  83. display: flex;
  84. align-items: center;
  85. gap: 12px;
  86. padding: 16px 4px;
  87. cursor: pointer;
  88. list-style: none;
  89. user-select: none;
  90. transition: background-color 0.15s;
  91. &::-webkit-details-marker {
  92. display: none;
  93. }
  94. &::before {
  95. content: 'Q.';
  96. font-weight: 700;
  97. color: var(--brand-orange);
  98. flex-shrink: 0;
  99. }
  100. &::after {
  101. content: '';
  102. display: inline-block;
  103. width: 8px;
  104. height: 8px;
  105. border-right: 2px solid var(--text-muted);
  106. border-bottom: 2px solid var(--text-muted);
  107. transform: rotate(45deg);
  108. transition: transform 0.2s ease;
  109. flex-shrink: 0;
  110. margin-left: auto;
  111. }
  112. &:hover {
  113. background-color: var(--bg-elevated);
  114. }
  115. > .faq-category {
  116. font-size: 13px;
  117. color: var(--text-secondary);
  118. background-color: var(--bg-subtle);
  119. padding: 2px 8px;
  120. border-radius: 4px;
  121. flex-shrink: 0;
  122. white-space: nowrap;
  123. }
  124. > .faq-question {
  125. font-size: 15px;
  126. font-weight: 500;
  127. flex-grow: 1;
  128. }
  129. }
  130. &[open] > summary {
  131. &::after {
  132. transform: rotate(-135deg);
  133. }
  134. }
  135. > .faq-answer {
  136. padding: 12px 4px 20px 32px;
  137. font-size: 14px;
  138. line-height: 1.7;
  139. color: #444;
  140. &::before {
  141. content: 'A.';
  142. font-weight: 700;
  143. color: #3b82f6;
  144. margin-right: 8px;
  145. }
  146. > .no-answer {
  147. color: var(--text-muted);
  148. font-style: italic;
  149. }
  150. }
  151. }
  152. // 결과 없음
  153. > .no-results {
  154. padding: 48px 0;
  155. text-align: center;
  156. color: var(--text-muted);
  157. font-size: 15px;
  158. }
  159. }
  160. // highlight
  161. mark {
  162. background-color: #fef08a;
  163. color: inherit;
  164. padding: 1px 2px;
  165. border-radius: 2px;
  166. }
  167. }
  168. // 반응형
  169. @media (max-width: 768px) {
  170. #faq {
  171. padding: 0 16px 24px 16px;
  172. min-width: unset;
  173. > p {
  174. font-size: 18px;
  175. margin-bottom: 16px;
  176. }
  177. > form > dl {
  178. > dt {
  179. flex-wrap: wrap;
  180. > input {
  181. flex-grow: 1;
  182. width: 100%;
  183. }
  184. > button {
  185. flex-shrink: 0;
  186. }
  187. }
  188. > dd > ul {
  189. column-gap: 10px;
  190. > li {
  191. font-size: 14px;
  192. &::after {
  193. margin-left: 10px;
  194. }
  195. }
  196. }
  197. }
  198. > #questions > .faq-item {
  199. > summary {
  200. flex-wrap: wrap;
  201. gap: 8px;
  202. padding: 12px 4px;
  203. > .faq-category {
  204. font-size: 12px;
  205. }
  206. > .faq-question {
  207. font-size: 14px;
  208. width: 100%;
  209. order: 1;
  210. }
  211. &::after {
  212. order: 0;
  213. }
  214. }
  215. > .faq-answer {
  216. padding: 10px 4px 16px 16px;
  217. font-size: 13px;
  218. }
  219. }
  220. }
  221. }