psy_test.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. // <!-- -------------common----------------->
  2. // 心理測驗英文字
  3. @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap');
  4. $main-color: #727679;
  5. a {
  6. &:hover {
  7. color: #727679;
  8. }
  9. }
  10. .psyWrapper {
  11. max-width: 1310px;
  12. margin-left: auto;
  13. margin-right: auto;
  14. @media(max-width: 576px) {
  15. background-color: #F6F6F6;
  16. }
  17. }
  18. //心理測驗-default 狀態
  19. .psy {
  20. padding: 3.5rem 0 0.5rem;
  21. transition: all 300ms ease-in-out;
  22. @media(max-width: 576px) {
  23. padding: 0;
  24. }
  25. article {
  26. position: sticky;
  27. top: 80px;
  28. }
  29. &__state {
  30. padding: 0;
  31. transition: all 300ms ease-in-out;
  32. @media(max-width: 576px) {
  33. position: unset;
  34. padding: 0;
  35. }
  36. &__img {
  37. width: 100%;
  38. }
  39. &__bgImg {
  40. height: 435px;
  41. background-position: center center;
  42. background-size: cover;
  43. background-repeat: no-repeat;
  44. transition: all 300ms ease-in-out;
  45. @media(max-width: 576px) {
  46. height: 250px;
  47. }
  48. }
  49. &__caption {
  50. padding: 1rem 0.5rem;
  51. transition: all 300ms ease-in-out;
  52. @media(max-width: 576px) {
  53. padding: 1rem;
  54. }
  55. }
  56. h2 {
  57. color: #4D4D4D;
  58. font-size: 2rem;
  59. font-weight: bold;
  60. transition: all 300ms ease-in-out;
  61. @media(max-width: 576px) {
  62. font-size: 1.375rem;
  63. }
  64. }
  65. p {
  66. color: #4D4D4D;
  67. font-size: 1.1875rem;
  68. letter-spacing: 0.9px;
  69. transition: all 300ms ease-in-out;
  70. @media(max-width: 576px) {
  71. font-size: 1rem;
  72. letter-spacing: 0.28px;
  73. }
  74. }
  75. }
  76. .ans {
  77. padding: 1rem 1.5rem 1.5rem;
  78. position: relative;
  79. transition: all 300ms ease-in-out;
  80. @media(max-width: 576px) {
  81. padding: 1.5rem;
  82. }
  83. &__option {
  84. display: flex;
  85. justify-content: flex-start;
  86. align-items: center;
  87. span {
  88. color: #727679;
  89. font-size: 5rem;
  90. font-family: 'Nunito', sans-serif;
  91. transition: all 300ms ease-in-out;
  92. @media(max-width: 576px) {
  93. font-size: 3.5rem;
  94. }
  95. }
  96. &__letter {
  97. margin: 0 2rem 0 0.5rem;
  98. transition: all 300ms ease-in-out;
  99. @media(max-width: 576px) {
  100. margin: 0 2rem;
  101. }
  102. }
  103. &__title {
  104. font-size: 2rem;
  105. font-weight: bold;
  106. margin: 0;
  107. transition: all 300ms ease-in-out;
  108. @media(max-width: 576px) {
  109. font-size: 1.75rem;
  110. margin: 0 0.5rem;
  111. }
  112. }
  113. }
  114. &__content {
  115. text-align: left;
  116. letter-spacing: 0.19px;
  117. margin: -1rem 0 0;
  118. transition: all 300ms ease-in-out;
  119. @media(max-width: 576px) {
  120. letter-spacing: 0.16px;
  121. margin: -0.5rem 0 0;
  122. }
  123. }
  124. }
  125. //心理測驗-active 狀態
  126. .ansBlock {
  127. color: #727679;
  128. &.active {
  129. .ans {
  130. padding: 1rem 1.5rem 1.5rem;
  131. transition: all 300ms ease-in-out;
  132. @media(max-width: 576px) {
  133. padding: 1.5rem;
  134. }
  135. }
  136. .ans__option__title {
  137. color: #EE7800;
  138. margin: 0;
  139. transition: all 300ms ease-in-out;
  140. @media(max-width: 576px) {
  141. margin: 0 0.5rem;
  142. }
  143. }
  144. .ans__section {
  145. display: flex;
  146. justify-content: center;
  147. align-items: center;
  148. }
  149. span {
  150. color: #EE7800;
  151. font-size: 6.5rem;
  152. font-family: 'Nunito', sans-serif;
  153. transition: all 300ms ease-in-out;
  154. @media(max-width: 576px) {
  155. font-size: 4.5rem;
  156. }
  157. }
  158. .ans__content {
  159. margin: 0;
  160. transition: all 300ms ease-in-out;
  161. @media(max-width: 576px) {
  162. margin: 0 0 1.5rem 0;
  163. }
  164. }
  165. p {
  166. margin: 1rem 0;
  167. transition: all 300ms ease-in-out;
  168. @media(max-width: 576px) {
  169. margin: 0;
  170. }
  171. }
  172. }
  173. }
  174. .angle {
  175. width: 100%;
  176. height: 60px;
  177. background-repeat: no-repeat;
  178. background-size: cover;
  179. background-position: 100% 100%;
  180. position: absolute;
  181. right: 0;
  182. bottom: 0;
  183. }
  184. }
  185. //心理測驗-社群媒體分享
  186. .scMedia {
  187. &__block {
  188. width: 70%;
  189. transition: all 300ms ease-in-out;
  190. @media(max-width: 576px) {
  191. padding: 1rem 0 2rem 0;
  192. }
  193. }
  194. &__list {
  195. background-color: transparent;
  196. }
  197. }