style.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. $desktop: 1025px;
  7. $table: 1024px;
  8. $moblie: 767px;
  9. $navbgcolor: #eb144c;
  10. @media screen and(max-width:$table) {
  11. }
  12. @media screen and(max-width:$moblie) {
  13. }
  14. .container-fluid {
  15. width: 80vw;
  16. margin: 0 auto;
  17. @media screen and(max-width:$moblie) {
  18. width: 100vw;
  19. }
  20. }
  21. // 主選單
  22. #Navigation {
  23. width: 100vw;
  24. background-color: $navbgcolor;
  25. color: #fff;
  26. position: fixed;
  27. opacity: 1 !important;
  28. z-index: 20;
  29. #logo {
  30. padding-top: 3vw;
  31. @media screen and(max-width:$moblie) {
  32. padding: 15px;
  33. }
  34. img {
  35. width: 180px;
  36. @media screen and(max-width:$moblie) {
  37. width: 140px;
  38. }
  39. }
  40. }
  41. #link {
  42. padding: 4vw 1vw 2vw 1vw;
  43. @media screen and(max-width:$moblie) {
  44. display: none;
  45. }
  46. a {
  47. text-decoration: none;
  48. color: #fff;
  49. letter-spacing: 1px;
  50. font-size: 0.9rem;
  51. font-weight: 600;
  52. cursor: pointer;
  53. padding: 15px;
  54. position: relative;
  55. :hover {
  56. opacity: 0.8;
  57. }
  58. &:after {
  59. content: "";
  60. display: block;
  61. width: 80%;
  62. height: 3px;
  63. background-color: #fff;
  64. position: absolute;
  65. left: 12%;
  66. bottom: 0;
  67. transition: all 0.3s;
  68. opacity: 0;
  69. }
  70. &:hover:after {
  71. width: 80%;
  72. opacity: 1;
  73. }
  74. @media screen and(max-width:$table) {
  75. padding: 5px;
  76. padding-top: 2vw;
  77. }
  78. }
  79. }
  80. #menu-btn1 {
  81. position: absolute;
  82. right: 2vw;
  83. top: 5vw;
  84. width: 15vw;
  85. z-index: 6;
  86. @media screen and(min-width:$desktop) {
  87. display: none;
  88. }
  89. @media screen and(min-width:768px) {
  90. display: none;
  91. }
  92. }
  93. }
  94. // 行動版彈跳式選單
  95. #menu-box {
  96. width: 40vw;
  97. right: 0px;
  98. position: fixed;
  99. z-index: 20;
  100. overflow: hidden;
  101. display: none;
  102. @media screen and(min-width:$desktop) {
  103. display: none;
  104. }
  105. hr {
  106. margin: 5px auto !important;
  107. width: 25vw;
  108. background: #fff;
  109. opacity: 1 !important;
  110. }
  111. #menu-box2 {
  112. padding-bottom: 5vw;
  113. position: relative;
  114. width: 40vw;
  115. background-color: $navbgcolor;
  116. z-index: 7;
  117. text-align: center;
  118. @media screen and(max-width:$moblie) {
  119. }
  120. @media screen and(max-width:350px) {
  121. }
  122. .close {
  123. padding: 30px 15px 15px 15px;
  124. }
  125. a {
  126. display: inline-block;
  127. text-decoration: none;
  128. color: #fff;
  129. font-size: 14px;
  130. font-weight: 900;
  131. text-align: center;
  132. padding: 0 !important;
  133. }
  134. }
  135. }
  136. // banner
  137. #banner {
  138. width: 100vw;
  139. display: inline-block;
  140. background: #fff;
  141. #banner-container {
  142. width: 80vw;
  143. margin: 50px auto;
  144. padding-bottom: 5vw;
  145. @media screen and(max-width:$moblie) {
  146. width: 100vw;
  147. margin: 0;
  148. padding-bottom: 15vw;
  149. }
  150. img {
  151. padding-top: 10vw;
  152. width: 80vw;
  153. object-fit: cover;
  154. @media screen and(max-width:$moblie) {
  155. padding-top: 15vw;
  156. width: 100vw;
  157. }
  158. }
  159. }
  160. }
  161. // 最新課程-電腦版
  162. #sec01 {
  163. padding-bottom: 10vw;
  164. background: #fff;
  165. @media screen and(max-width:$moblie) {
  166. display: none;
  167. }
  168. #sec01-title {
  169. margin-bottom: 50px;
  170. h1 {
  171. text-align: center;
  172. color: #e02d4b;
  173. font-size: 45px;
  174. font-weight: 900;
  175. padding: 5px 10px;
  176. @media screen and(max-width:$moblie) {
  177. font-weight: 900;
  178. font-size: 32px;
  179. }
  180. }
  181. hr {
  182. width: 5vw;
  183. height: 5px;
  184. color: #e02d4b;
  185. margin: 10px auto;
  186. opacity: 1 !important;
  187. @media screen and(max-width:$moblie) {
  188. width: 30vw;
  189. }
  190. }
  191. }
  192. .learn-more {
  193. width: 45%;
  194. }
  195. #sec01-container {
  196. .card {
  197. box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  198. border-radius: 10px;
  199. img {
  200. padding: 5px;
  201. height: 150px;
  202. object-fit: cover;
  203. }
  204. .card-title {
  205. font-weight: 900;
  206. }
  207. }
  208. }
  209. }
  210. // 最新課程-手機板
  211. #sec01-moblie {
  212. padding-top: 5vw;
  213. padding-bottom: 5vw;
  214. background: #fff;
  215. position: relative;
  216. overflow: hidden;
  217. .arrow-table {
  218. position: fixed;
  219. width: 25px;
  220. right: 15px;
  221. bottom: 240px;
  222. z-index: 6;
  223. @media screen and(max-width:350px) {
  224. right: 10px;
  225. }
  226. }
  227. @media screen and(min-width:$desktop) {
  228. display: none;
  229. }
  230. #sec01-moblie-header {
  231. h1 {
  232. text-align: center;
  233. color: #e02d4b;
  234. font-size: 45px;
  235. font-weight: 900;
  236. padding: 5px 10px;
  237. @media screen and(max-width:$moblie) {
  238. font-weight: 900;
  239. font-size: 32px;
  240. }
  241. }
  242. hr {
  243. margin: 10px auto !important ;
  244. width: 25vw;
  245. height: 5px;
  246. color: #e02d4b;
  247. margin: 10px;
  248. opacity: 1 !important;
  249. }
  250. }
  251. #sec01-moblie-container {
  252. padding-top: 10vw;
  253. .col {
  254. margin: 10px;
  255. .card {
  256. img {
  257. height: 150px;
  258. object-fit: cover;
  259. }
  260. box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  261. border-radius: 10px;
  262. .card-title {
  263. font-weight: 900;
  264. }
  265. .learn-more {
  266. width: 120px;
  267. }
  268. }
  269. }
  270. }
  271. }
  272. // sec02 TOP排名 電腦版
  273. #sec02 {
  274. background: $navbgcolor;
  275. padding: 5vw 0px;
  276. @media screen and(max-width:$moblie) {
  277. display: none;
  278. }
  279. #sec02-container {
  280. width: 90vw;
  281. padding: 15px;
  282. font-weight: 900;
  283. color: #fff;
  284. position: relative;
  285. // 電腦版top圖片排行
  286. #sec02-top-box {
  287. #sec02-top-title {
  288. text-align: center;
  289. hr {
  290. width: 5vw;
  291. height: 5px;
  292. color: #fff;
  293. margin: 10px auto;
  294. opacity: 1 !important;
  295. @media screen and(max-width:$moblie) {
  296. width: 30vw;
  297. }
  298. }
  299. }
  300. position: relative;
  301. #sec02-content {
  302. position: absolute;
  303. top: -150px;
  304. left: 300px;
  305. }
  306. .sec02-box1 {
  307. color: #fff;
  308. img {
  309. display: inline;
  310. width: 200px;
  311. height: 200px;
  312. object-fit: cover;
  313. }
  314. .sec02-top-text {
  315. font-size: 20px;
  316. span {
  317. font-size: 30px;
  318. }
  319. }
  320. }
  321. }
  322. }
  323. }
  324. // sec02 TOP排名 手機板
  325. #sec02-moblie {
  326. padding-top: 3vw;
  327. @media screen and(min-width:$desktop) {
  328. display: none;
  329. }
  330. #sec02-moblie-header {
  331. h1 {
  332. text-align: center;
  333. color:$navbgcolor;
  334. font-size: 45px;
  335. font-weight: 900;
  336. padding: 5px 10px;
  337. @media screen and(max-width:$moblie) {
  338. font-weight: 900;
  339. font-size: 32px;
  340. }
  341. }
  342. hr {
  343. margin: 10px auto !important;
  344. width: 25vw;
  345. height: 5px;
  346. color:$navbgcolor;
  347. margin: 10px;
  348. opacity: 1 !important;
  349. }
  350. }
  351. #sec02-container {
  352. background: linear-gradient(180deg, #fff 20%, transparent 40%, #eb144c 20%);
  353. padding: 15px;
  354. font-weight: 900;
  355. color: #fff;
  356. text-align: right;
  357. padding: 20vw 0;
  358. #sec02-content {
  359. position: relative;
  360. }
  361. #sec02-top-box {
  362. @media screen and(max-width:350px) {
  363. left: 10px;
  364. }
  365. .sec02-box1 {
  366. color: #fff;
  367. #top1 {
  368. @media screen and(max-width:350px) {
  369. width: 100px;
  370. height: 130px;
  371. }
  372. }
  373. img {
  374. @media screen and(max-width:350px) {
  375. width: 70px;
  376. height: 100px;
  377. }
  378. }
  379. .sec02-top-text {
  380. font-size: 12px;
  381. text-align: center;
  382. @media screen and(max-width:350px) {
  383. }
  384. span {
  385. font-size: 30px;
  386. @media screen and(max-width:350px) {
  387. font-size: 25px;
  388. }
  389. }
  390. }
  391. }
  392. }
  393. }
  394. }
  395. // sec03 排名table-電腦版
  396. #sec03 {
  397. padding-bottom: 5vw;
  398. @media screen and(max-width:$moblie) {
  399. display: none;
  400. }
  401. #sec03-table {
  402. .sec03-table-title {
  403. font-family: 微軟正黑體;
  404. font-weight: 900;
  405. padding: 15px;
  406. font-size: 35px;
  407. }
  408. .table {
  409. th {
  410. font-size: 40px;
  411. display: table-cell;
  412. vertical-align: middle;
  413. }
  414. td {
  415. padding: 15px;
  416. }
  417. img {
  418. width: 80px;
  419. }
  420. .sec03-table-text {
  421. padding: 10px;
  422. display: table-cell;
  423. vertical-align: middle;
  424. h1 {
  425. font-size: 20px;
  426. margin: 0;
  427. }
  428. p {
  429. margin: 0;
  430. }
  431. }
  432. }
  433. }
  434. }
  435. // sec03排名table-手機板
  436. #sec03-moblie {
  437. position: relative;
  438. .arrow-table {
  439. position: fixed;
  440. width: 25px;
  441. right: 15px;
  442. bottom: 250px;
  443. z-index: 6;
  444. @media screen and(max-width:350px) {
  445. right: 10px;
  446. bottom: 200px;
  447. }
  448. }
  449. .sec03-table-title,
  450. .sec03-table-title2 {
  451. font-family: 微軟正黑體;
  452. font-weight: 900;
  453. font-size: 14px;
  454. display: inline-block;
  455. color: #9b9b9b;
  456. }
  457. .contant-toggle {
  458. display: inline-block;
  459. color: #000;
  460. padding-bottom: 10px;
  461. border-bottom: 2px solid #000;
  462. }
  463. #sec03-slider {
  464. padding-top: 5vw;
  465. .slick-slide img {
  466. display: inline;
  467. }
  468. #sec03-slider1,
  469. #sec03-slider2 {
  470. margin: 0 5px;
  471. @media screen and(max-width:350px) {
  472. margin: 0 5px;
  473. }
  474. }
  475. .table {
  476. th {
  477. font-size: 40px;
  478. display: table-cell;
  479. vertical-align: middle;
  480. padding: 15px;
  481. @media screen and(max-width:350px) {
  482. font-size: 30px;
  483. }
  484. }
  485. td {
  486. display: table-cell;
  487. vertical-align: middle;
  488. padding: 15px;
  489. padding: 10px;
  490. @media screen and(max-width:350px) {
  491. padding: 0px;
  492. }
  493. }
  494. img {
  495. width: 70px;
  496. }
  497. .sec03-table-text {
  498. padding: 0px 0px 0px 3px;
  499. display: table-cell;
  500. vertical-align: middle;
  501. @media screen and(max-width:350px) {
  502. padding: 0px;
  503. }
  504. h1 {
  505. font-size: 14px;
  506. margin: 0;
  507. }
  508. p {
  509. margin: 0;
  510. font-size: 12px;
  511. }
  512. }
  513. }
  514. }
  515. @media screen and(min-width:$desktop) {
  516. display: none;
  517. }
  518. }
  519. // sec04 專欄報導-電腦版
  520. #sec04 {
  521. background: linear-gradient(180deg, #fff 50%, #ededf9 50%);
  522. padding-bottom: 10vw;
  523. @media screen and(max-width:$moblie) {
  524. display: none;
  525. }
  526. #sec04-title {
  527. margin-bottom: 50px;
  528. h1 {
  529. text-align: center;
  530. color: $navbgcolor;
  531. font-size: 45px;
  532. font-weight: 900;
  533. padding: 5px 10px;
  534. @media screen and(max-width:$moblie) {
  535. font-weight: 900;
  536. font-size: 32px;
  537. }
  538. }
  539. hr {
  540. width: 5vw;
  541. height: 5px;
  542. color: $navbgcolor;
  543. margin: 10px auto;
  544. opacity: 1 !important;
  545. @media screen and(max-width:$moblie) {
  546. width: 30vw;
  547. }
  548. }
  549. }
  550. .learn-more {
  551. width: 45%;
  552. }
  553. #sec04-container {
  554. .card {
  555. box-shadow: 0 10px 1px $navbgcolor;
  556. border-radius: 10px;
  557. img {
  558. padding: 5px;
  559. height: 150px;
  560. object-fit: cover;
  561. }
  562. .card-title {
  563. font-weight: 900;
  564. }
  565. }
  566. }
  567. }
  568. // sec04專欄報導 手機板
  569. #sec04-moblie {
  570. padding-top: 5vw;
  571. padding-bottom: 5vw;
  572. background: #fff;
  573. position: relative;
  574. overflow: hidden;
  575. .arrow-table {
  576. position: fixed;
  577. width: 25px;
  578. right: 15px;
  579. bottom: 240px;
  580. z-index: 6;
  581. @media screen and(max-width:350px) {
  582. right: 10px;
  583. }
  584. }
  585. @media screen and(min-width:$desktop) {
  586. display: none;
  587. }
  588. #sec04-moblie-header {
  589. h1 {
  590. text-align: center;
  591. color: $navbgcolor;
  592. font-size: 45px;
  593. font-weight: 900;
  594. padding: 5px 10px;
  595. @media screen and(max-width:$moblie) {
  596. font-weight: 900;
  597. font-size: 32px;
  598. }
  599. }
  600. hr {
  601. margin: 10px auto !important ;
  602. width: 25vw;
  603. height: 5px;
  604. color: $navbgcolor;
  605. margin: 10px;
  606. opacity: 1 !important;
  607. }
  608. }
  609. #sec04-moblie-container {
  610. padding-top: 10vw;
  611. .col {
  612. margin: 10px;
  613. .card {
  614. img {
  615. height: 150px;
  616. object-fit: cover;
  617. }
  618. box-shadow: 0 10px 1px $navbgcolor;
  619. border-radius: 10px;
  620. .card-title {
  621. font-weight: 900;
  622. }
  623. .learn-more {
  624. width: 120px;
  625. }
  626. }
  627. }
  628. }
  629. }
  630. // sec05 課程分類-電腦版
  631. #sec05 {
  632. padding-top: 5vw;
  633. padding-bottom: 5vw;
  634. #sec05-title {
  635. margin-bottom: 50px;
  636. h1 {
  637. text-align: center;
  638. color: $navbgcolor;
  639. font-size: 45px;
  640. font-weight: 900;
  641. padding: 5px 10px;
  642. @media screen and(max-width:$moblie) {
  643. font-weight: 900;
  644. font-size: 32px;
  645. }
  646. }
  647. hr {
  648. width: 5vw;
  649. height: 5px;
  650. color: $navbgcolor;
  651. margin: 10px auto;
  652. opacity: 1 !important;
  653. @media screen and(max-width:$moblie) {
  654. width: 30vw;
  655. }
  656. }
  657. }
  658. background-image: url();
  659. #sec05-container {
  660. img {
  661. width: 78vw;
  662. margin: 30px 0;
  663. @media screen and(max-width:$moblie) {
  664. width: 95vw;
  665. }
  666. }
  667. }
  668. }
  669. // sec06 合作對象 - 電腦版
  670. #sec06 {
  671. padding-top: 5vw;
  672. padding-bottom: 5vw;
  673. #sec06-container-box {
  674. padding-top: 8vw;
  675. background: url(./img/sec06/sec06-1.png), linear-gradient(180deg, transparent 50%, #fff 30%);
  676. background-size: contain;
  677. background-repeat: no-repeat;
  678. background-blend-mode: overlay;
  679. }
  680. #sec06-title {
  681. width: 80vw;
  682. margin: 0 auto;
  683. text-align: right !important;
  684. h1 {
  685. color: $navbgcolor;
  686. font-size: 45px;
  687. font-weight: 900;
  688. padding: 5px 10px;
  689. margin-top: 50px;
  690. margin-right:50px;
  691. @media screen and(max-width:$moblie) {
  692. font-weight: 900;
  693. font-size: 32px;
  694. }
  695. }
  696. hr {
  697. display: inline-block;
  698. margin-right:80px;
  699. width: 8vw;
  700. height: 5px;
  701. color: $navbgcolor;
  702. opacity: 1 !important;
  703. @media screen and(max-width:$moblie) {
  704. width: 30vw;
  705. }
  706. }
  707. }
  708. #sec06-container {
  709. text-align: center;
  710. .card {
  711. box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  712. background: #fff;
  713. padding-top: 5vw;
  714. padding-bottom: 5vw;
  715. border: none;
  716. .sec09-7{
  717. width: 200px;
  718. }
  719. .adv4 {
  720. display: flex;
  721. align-items: center;
  722. img {
  723. align-items: center;
  724. }
  725. }
  726. }
  727. .col-3 {
  728. margin: 10px 0;
  729. @media screen and(max-width:$desktop) {
  730. padding: 15px;
  731. }
  732. @media screen and(max-width:$moblie) {
  733. padding: 5px;
  734. }
  735. img {
  736. object-fit: cover;
  737. @media screen and(max-width:$moblie) {
  738. padding: 0px;
  739. }
  740. }
  741. }
  742. .sec09-1 {
  743. padding: 50px;
  744. @media screen and(max-width:$moblie) {
  745. padding: 20px;
  746. }
  747. }
  748. }
  749. }
  750. // 頁尾
  751. #footer {
  752. width: 100vw;
  753. text-align: center;
  754. line-height: 2;
  755. background: $navbgcolor;
  756. color: #fff;
  757. padding-bottom: 3vw !important;
  758. .footer-link {
  759. padding-top: 3vw;
  760. a {
  761. text-decoration: none;
  762. font-size: 20px;
  763. padding: 10px;
  764. color: #fff;
  765. @media screen and(max-width:$moblie) {
  766. font-size: 14px;
  767. padding: 0 !important;
  768. }
  769. @media screen and(max-width:400px) {
  770. font-size: 12px;
  771. }
  772. span {
  773. font-size: 28px;
  774. @media screen and(max-width:$moblie) {
  775. font-size: 16px;
  776. }
  777. @media screen and(max-width:350px) {
  778. font-size: 14px;
  779. }
  780. }
  781. }
  782. }
  783. .text {
  784. padding-top: 3vw;
  785. a {
  786. text-decoration: none;
  787. color: #fff;
  788. }
  789. h2 {
  790. font-size: 20px;
  791. margin: 10px;
  792. letter-spacing: 1px;
  793. display: inline;
  794. @media screen and(max-width:$moblie) {
  795. display: block;
  796. font-size: 16px;
  797. margin: 8px;
  798. }
  799. }
  800. p {
  801. margin: 0 !important;
  802. }
  803. }
  804. }