style.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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. --brown: #3E3A39;
  50. }
  51. * {
  52. font-family: "Noto Sans TC", sans-serif;
  53. }
  54. html {
  55. scroll-behavior: smooth;
  56. }
  57. input:focus-visible {
  58. outline: 2px solid var(--sub-color);
  59. }
  60. @media (min-width: 1920px) {
  61. .v-container {
  62. max-width: 1300px !important;
  63. }
  64. }
  65. @media (max-width: 1300px) {
  66. .v-container {
  67. padding: 15px 30px !important;
  68. }
  69. }
  70. .search {
  71. display: flex;
  72. flex-direction: column;
  73. align-items: flex-end;
  74. justify-content: end;
  75. position: relative;
  76. }
  77. .search span {
  78. position: relative;
  79. }
  80. .search input {
  81. padding: 5px 15px;
  82. border-radius: 100px;
  83. border: 1px solid #ccc;
  84. background-color: #fff;
  85. }
  86. .search button {
  87. position: absolute;
  88. right: 10px;
  89. left: 0;
  90. top: 3px;
  91. }
  92. .search button img {
  93. width: 25px;
  94. position: absolute;
  95. top: 2px;
  96. right: 0;
  97. }
  98. .search .error {
  99. position: absolute;
  100. bottom: -30px;
  101. }
  102. .college-bg-img {
  103. width: 100vw;
  104. background-image: url("@/assets/img/college-group/background.png");
  105. background-position: center;
  106. background-size: cover;
  107. background-repeat: no-repeat;
  108. }
  109. .college-banner {
  110. margin-top: 25px;
  111. display: flex;
  112. justify-content: center;
  113. position: relative;
  114. right: 0;
  115. left: 0;
  116. z-index: 1;
  117. }
  118. .college-banner img {
  119. width: 100%;
  120. }
  121. .college-banner h1 {
  122. position: absolute;
  123. top: 45%;
  124. right: 3%;
  125. font-size: 40px;
  126. font-weight: 500;
  127. color: #fff;
  128. text-shadow: 2px 2px 10px #555555;
  129. word-wrap: break-word;
  130. }
  131. @media (max-width: 1200px) {
  132. .college-banner h1 {
  133. right: 5%;
  134. font-size: 36px;
  135. }
  136. }
  137. @media (max-width: 960px) {
  138. .college-banner h1 {
  139. font-size: 24px;
  140. }
  141. }
  142. @media (max-width: 600px) {
  143. .college-banner h1 {
  144. font-size: 20px;
  145. top: 45%;
  146. }
  147. }
  148. .college-content {
  149. padding: 0;
  150. width: 1300px !important;
  151. position: relative;
  152. }
  153. @media (max-width: 600px) {
  154. .college-content {
  155. width: 85%;
  156. }
  157. }
  158. .college-content .main-block {
  159. padding: 150px 80px;
  160. margin-top: -20%;
  161. background-image: url("@/assets/img/course/background.png");
  162. background-size: cover;
  163. position: relative;
  164. left: 0;
  165. right: 0;
  166. z-index: 10;
  167. }
  168. @media (max-width: 960px) {
  169. .college-content .main-block {
  170. padding: 100px 50px;
  171. margin-top: -22%;
  172. background-position: 0 1vw;
  173. }
  174. }
  175. @media (max-width: 600px) {
  176. .college-content .main-block {
  177. padding: 50px 20px;
  178. }
  179. }
  180. .college-content .main-block h2 {
  181. font-size: 30px;
  182. font-weight: 500;
  183. line-height: 32px;
  184. margin-left: 10px;
  185. }
  186. @media (max-width: 960px) {
  187. .college-content .main-block h2 {
  188. font-size: 24px;
  189. }
  190. }
  191. @media (max-width: 600px) {
  192. .college-content .main-block h2 {
  193. margin-left: 0;
  194. margin-bottom: 50px;
  195. }
  196. }
  197. .college-content .main-block .title {
  198. padding: 80px 0;
  199. }
  200. @media (max-width: 960px) {
  201. .college-content .main-block .title {
  202. padding: 50px 0;
  203. }
  204. }
  205. .college-content .main-block .v-breadcrumbs {
  206. position: relative;
  207. z-index: 100;
  208. justify-content: flex-start;
  209. }
  210. @media (max-width: 600px) {
  211. .college-content .main-block .v-breadcrumbs {
  212. justify-content: center;
  213. }
  214. }
  215. .main-card {
  216. letter-spacing: 1px;
  217. border-radius: 10px;
  218. box-shadow: 2px 2px 10px #aaaaaa;
  219. background-color: var(--sub-color);
  220. }
  221. .main-card .card-title {
  222. height: 80px;
  223. padding: 15px;
  224. margin-bottom: 15px;
  225. display: flex;
  226. justify-content: center;
  227. align-items: center;
  228. border-bottom: 2px solid #fff;
  229. }
  230. .main-card .card-title h3 {
  231. font-size: 18px;
  232. font-weight: 400;
  233. text-align: center;
  234. line-height: 24px;
  235. }
  236. .main-card ul {
  237. padding: 20px;
  238. }
  239. .main-card .card-title h3,
  240. .main-card .card-info p {
  241. line-height: 22px;
  242. overflow: hidden;
  243. text-overflow: ellipsis;
  244. display: -webkit-box;
  245. -webkit-line-clamp: 2;
  246. -webkit-box-orient: vertical;
  247. line-break: after-white-space;
  248. }
  249. .main-card .card-info {
  250. padding: 0 15px;
  251. }
  252. .main-card .card-info .cover-img {
  253. height: 220px;
  254. width: 100%;
  255. -o-object-fit: cover;
  256. object-fit: cover;
  257. }
  258. .main-card .card-info span {
  259. height: 60px;
  260. }
  261. .main-card .card-info span p {
  262. line-height: 20px;
  263. }
  264. .favorites-btn {
  265. position: absolute;
  266. bottom: 10px;
  267. right: 10px;
  268. }
  269. .progress-item {
  270. position: fixed;
  271. top: 50%;
  272. left: 50%;
  273. transform: translate(-50%, -50%);
  274. z-index: 1000;
  275. }
  276. @media (max-width: 960px) {
  277. .tag-btn {
  278. margin: auto !important;
  279. max-width: 300px;
  280. flex-direction: column;
  281. }
  282. }
  283. .tag-btn .item {
  284. display: flex;
  285. align-items: center;
  286. justify-content: center;
  287. color: #bda2b5;
  288. border: 1px solid #bda2b5;
  289. border-radius: 20px;
  290. text-align: center;
  291. transition: all 0.3s;
  292. }
  293. .tag-btn .item:hover {
  294. color: #bb8bad;
  295. border-color: #bb8bad;
  296. }
  297. .tag-btn .item a {
  298. width: 100%;
  299. display: block;
  300. }/*# sourceMappingURL=style.css.map */