style.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. /* CSS Reset */
  2. html,
  3. body,
  4. div,
  5. span,
  6. h1,
  7. h2,
  8. h3,
  9. h4,
  10. h5,
  11. h6,
  12. p,
  13. a,
  14. img,
  15. ul,
  16. ol,
  17. li,
  18. form,
  19. label,
  20. fieldset,
  21. legend {
  22. margin: 0;
  23. padding: 0;
  24. border: 0;
  25. font-size: 100%;
  26. vertical-align: baseline;
  27. box-sizing: border-box;
  28. }
  29. /* Additional Resets */
  30. body {
  31. line-height: 1;
  32. }
  33. ol,
  34. ul {
  35. list-style: none;
  36. }
  37. img {
  38. max-width: 100%;
  39. height: auto;
  40. }
  41. a {
  42. text-decoration: none;
  43. color: inherit;
  44. }
  45. /* CSS Reset End */
  46. :root {
  47. --main-color: #C39F68;
  48. --sub-color: #E9F1F4;
  49. }
  50. * {
  51. font-family: 'Noto Sans TC', sans-serif;
  52. }
  53. input:focus-visible {
  54. outline: 2px solid (var(--sub-color));
  55. }
  56. .search {
  57. display: flex;
  58. flex-direction: column;
  59. align-items: flex-end;
  60. justify-content: end;
  61. position: relative;
  62. span {
  63. position: relative;
  64. }
  65. input {
  66. padding: 5px 15px;
  67. border-radius: 100px;
  68. border: 1px solid #ccc;
  69. background-color: #fff;
  70. // box-shadow: 1px 1px 3px #ccc;
  71. }
  72. button {
  73. position: absolute;
  74. right: 10px;
  75. left: 0;
  76. top: 3px;
  77. img {
  78. width: 25px;
  79. position: absolute;
  80. top: 2px;
  81. right: 0;
  82. }
  83. }
  84. .error {
  85. position: absolute;
  86. bottom: -30px;
  87. }
  88. }
  89. .college-bg-img {
  90. width: 100vw;
  91. background-image: url("@/assets/img/college-group/background.png");
  92. background-position: center;
  93. background-size: cover;
  94. background-repeat: no-repeat;
  95. }
  96. .college-banner {
  97. display: flex;
  98. justify-content: center;
  99. position: relative;
  100. top: -8vw;
  101. right: 0;
  102. left: 0;
  103. z-index: 1;
  104. img {
  105. width: 100%;
  106. }
  107. h1 {
  108. position: absolute;
  109. top: 50%;
  110. left: 11%;
  111. font-size: 40px;
  112. font-weight: 500;
  113. word-wrap: break-word;
  114. @media (max-width: 1200px) {
  115. font-size: 36px;
  116. }
  117. @media (max-width: 960px) {
  118. font-size: 24px;
  119. }
  120. @media (max-width: 600px) {
  121. font-size: 20px;
  122. top: 45%;
  123. left: 5%;
  124. }
  125. }
  126. }
  127. .college-content {
  128. padding: 0;
  129. width: 1300px !important;
  130. @media (max-width: 600px) {
  131. width: 85%;
  132. }
  133. .main-block {
  134. padding: 150px 80px;
  135. margin-top: -30%;
  136. background-color: #fff;
  137. @media (max-width: 960px) {
  138. padding: 100px 50px;
  139. }
  140. @media (max-width: 600px) {
  141. padding: 50px 20px;
  142. }
  143. h2 {
  144. font-size: 30px;
  145. font-weight: 500;
  146. line-height: 32px;
  147. margin-left: 10px;
  148. @media (max-width: 960px) {
  149. font-size: 24px;
  150. }
  151. @media (max-width: 600px) {
  152. margin-left: 0;
  153. margin-bottom: 50px;
  154. }
  155. }
  156. .title {
  157. margin: 80px 0;
  158. @media (max-width: 960px) {
  159. margin: 50px 0;
  160. }
  161. }
  162. .v-breadcrumbs {
  163. position: relative;
  164. z-index: 100;
  165. justify-content: flex-start;
  166. @media (max-width: 600px) {
  167. justify-content: center;
  168. }
  169. }
  170. }
  171. }
  172. .main-card {
  173. letter-spacing: 1px;
  174. border-radius: 10px;
  175. box-shadow: 2px 2px 10px #aaaaaa;
  176. background-color: var(--sub-color);
  177. .card-title {
  178. height: 80px;
  179. padding: 15px;
  180. margin-bottom: 15px;
  181. display: flex;
  182. justify-content: center;
  183. align-items: center;
  184. border-bottom: 2px solid #fff;
  185. h3 {
  186. font-size: 18px;
  187. font-weight: 400;
  188. text-align: center;
  189. line-height: 24px;
  190. }
  191. }
  192. ul {
  193. padding: 20px;
  194. }
  195. .card-title h3,
  196. .card-info p {
  197. // 超過兩行則省略
  198. overflow: hidden;
  199. text-overflow: ellipsis;
  200. display: -webkit-box;
  201. -webkit-line-clamp: 2;
  202. -webkit-box-orient: vertical;
  203. line-break: after-white-space;
  204. }
  205. .card-info {
  206. padding: 0 15px;
  207. .cover-img {
  208. height: 220px;
  209. width: 100%;
  210. object-fit: cover;
  211. }
  212. span {
  213. height: 60px;
  214. p {
  215. line-height: 20px;
  216. }
  217. }
  218. }
  219. }