style.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  1. @charset "UTF-8";
  2. /* 共通樣式 */
  3. :root {
  4. --main-color: #000;
  5. --sub-color: #e47140;
  6. --gray-color: #727272;
  7. }
  8. * {
  9. letter-spacing: 1px;
  10. font-weight: 400;
  11. font-family: "Noto Sans TC", sans-serif !important;
  12. }
  13. p,
  14. li {
  15. line-height: 32px;
  16. }
  17. ul {
  18. list-style: none;
  19. }
  20. img {
  21. width: 100%;
  22. height: auto;
  23. }
  24. html,
  25. body {
  26. height: 100%;
  27. margin: 0;
  28. }
  29. body {
  30. display: -webkit-box;
  31. display: -ms-flexbox;
  32. display: flex;
  33. -webkit-box-orient: vertical;
  34. -webkit-box-direction: normal;
  35. -ms-flex-direction: column;
  36. flex-direction: column;
  37. overflow-y: scroll;
  38. }
  39. .btn:focus,
  40. .form-control:focus {
  41. border-color: var(--main-color) !important;
  42. -webkit-box-shadow: none !important;
  43. box-shadow: none !important;
  44. outline: 0 none !important;
  45. }
  46. .badge {
  47. font-weight: 400 !important;
  48. }
  49. .navbar {
  50. background-color: var(--main-color) !important;
  51. }
  52. .navbar .navbar-collapse {
  53. -webkit-box-flex: 0;
  54. -ms-flex-positive: 0;
  55. flex-grow: 0;
  56. }
  57. .navbar .navbar-brand {
  58. font-size: 50px;
  59. font-weight: 500;
  60. font-family: "Roboto Slab", serif !important;
  61. color: var(--sub-color);
  62. -webkit-transition: all 0.3s;
  63. transition: all 0.3s;
  64. }
  65. @media (max-width: 575px) {
  66. .navbar .navbar-brand {
  67. padding-left: 1rem;
  68. font-size: 35px;
  69. }
  70. }
  71. .navbar .navbar-brand:hover {
  72. opacity: 0.9;
  73. color: var(--sub-color);
  74. }
  75. .blog-post-tags .badge {
  76. background-color: var(--main-color);
  77. }
  78. .blog-post-tags .badge:hover {
  79. color: var(--main-color);
  80. background-color: #fff;
  81. border: 1px solid var(--main-color);
  82. }
  83. .blog-post-title {
  84. margin: 10px 0 20px;
  85. }
  86. .blog-post-title a {
  87. font-size: 50px;
  88. font-weight: 500;
  89. }
  90. .pagination {
  91. -webkit-box-pack: center;
  92. -ms-flex-pack: center;
  93. justify-content: center;
  94. }
  95. .pagination .page-link {
  96. color: var(--main-color);
  97. }
  98. .pagination .page-item.active .page-link {
  99. z-index: 3;
  100. color: #fff;
  101. background-color: var(--main-color);
  102. border-color: var(--main-color);
  103. }
  104. .post-title a {
  105. color: #000;
  106. text-decoration: none;
  107. font-size: 22px;
  108. font-weight: 500;
  109. }
  110. .post-block-title {
  111. margin-bottom: 25px;
  112. position: relative;
  113. font-size: 20px;
  114. }
  115. .post-block-title::after {
  116. position: absolute;
  117. z-index: -10;
  118. top: 30px;
  119. left: 0;
  120. width: 100%;
  121. height: 0px;
  122. content: "";
  123. border-bottom: 1px solid var(--sub-color);
  124. bottom: 5px;
  125. }
  126. .post-block-title span {
  127. padding: 5px 20px;
  128. color: #fff;
  129. font-weight: 300;
  130. background: var(--sub-color);
  131. }
  132. .news-info {
  133. margin-top: 10px;
  134. line-height: 20px;
  135. }
  136. .news-info a {
  137. font-size: 14px;
  138. font-weight: 500;
  139. color: var(--gray-color);
  140. text-decoration: none;
  141. -webkit-transition: all 0.3s;
  142. transition: all 0.3s;
  143. }
  144. .news-info a:hover {
  145. opacity: 0.8;
  146. }
  147. .news-info small {
  148. color: var(--gray-color);
  149. }
  150. .news-thumbnail {
  151. height: 100%;
  152. -o-object-fit: cover;
  153. object-fit: cover;
  154. }
  155. .line-clamp {
  156. max-width: 150px;
  157. display: -webkit-box;
  158. -webkit-line-clamp: 2;
  159. -webkit-box-orient: vertical;
  160. overflow: hidden;
  161. text-overflow: ellipsis;
  162. }
  163. .post-depiction {
  164. margin: 10px 0;
  165. display: -webkit-box;
  166. -webkit-line-clamp: 2;
  167. -webkit-box-orient: vertical;
  168. overflow: hidden;
  169. text-overflow: ellipsis;
  170. line-height: 26px;
  171. }
  172. .post-depiction a {
  173. color: #7a7a7a;
  174. text-decoration: none;
  175. }
  176. .top-btn {
  177. position: fixed;
  178. bottom: 15px;
  179. right: 15px;
  180. z-index: 10;
  181. opacity: 0;
  182. -webkit-transition: all 0.5s;
  183. transition: all 0.5s;
  184. }
  185. .top-btn button {
  186. border: none;
  187. background: var(--sub-color);
  188. border-radius: 100px;
  189. width: 55px;
  190. height: 55px;
  191. }
  192. .show {
  193. opacity: 1;
  194. }
  195. .blog-header .nav-item {
  196. padding: 0 0.3rem;
  197. }
  198. @media (max-width: 575px) {
  199. .blog-header .nav-item {
  200. padding: 0 1rem;
  201. }
  202. }
  203. /* sidebar.html Start */
  204. .news-sidebar {
  205. position: -webkit-sticky;
  206. position: sticky;
  207. top: 15px;
  208. }
  209. .news-sidebar .news-featured {
  210. position: unset;
  211. }
  212. .search-btn {
  213. border: 1px solid var(--main-color) !important;
  214. }
  215. .search-btn svg {
  216. color: var(--main-color);
  217. }
  218. .search-btn:hover {
  219. background-color: var(--main-color) !important;
  220. }
  221. .search-btn:hover svg {
  222. color: #fff;
  223. }
  224. .tags {
  225. margin: 0 5px 5px 0;
  226. padding: 7px 10px !important;
  227. font-size: 14px !important;
  228. font-weight: 400 !important;
  229. color: var(--main-color) !important;
  230. border: 1px solid var(--main-color) !important;
  231. }
  232. .tags:hover {
  233. color: #fff !important;
  234. background-color: var(--main-color);
  235. }
  236. /* sidebar.html End */
  237. /* single.html Start */
  238. .blog-post.content .content {
  239. padding-bottom: 3rem;
  240. }
  241. .blog-post.content .toc-container {
  242. padding: 1.5rem;
  243. margin: 3rem 0;
  244. background: #f9f9f9;
  245. border: 1px solid #aaa;
  246. border-radius: 5px;
  247. }
  248. .blog-post.content .toc-container ul {
  249. margin-bottom: 0;
  250. list-style: disc;
  251. }
  252. .blog-post.content .toc-container ul a {
  253. color: var(--sub-color);
  254. text-decoration: none;
  255. }
  256. .blog-post.content .toc-container .title {
  257. display: block;
  258. margin-left: 1rem;
  259. margin-bottom: 0.5rem !important;
  260. font-size: 1.25rem;
  261. color: #000;
  262. }
  263. .blog-post.content h2 {
  264. padding-left: 1rem;
  265. margin: 5rem 0 1.5rem;
  266. border-left: 7px solid var(--sub-color);
  267. }
  268. .blog-post.content h4 {
  269. margin-top: 3rem;
  270. font-size: 1.25rem;
  271. font-weight: 500;
  272. line-height: 32px;
  273. }
  274. .blog-post.content h4 a {
  275. padding: 5px 8px;
  276. margin-right: 3px;
  277. border: 1px solid #000;
  278. border-radius: 5px;
  279. font-size: 14px;
  280. }
  281. .blog-post.content h4 a:hover {
  282. color: #fff !important;
  283. }
  284. .back-link {
  285. color: #000;
  286. display: block;
  287. text-align: center;
  288. text-decoration: none;
  289. -webkit-transition: all 0.3s;
  290. transition: all 0.3s;
  291. }
  292. .back-link:hover {
  293. opacity: 0.7;
  294. }
  295. /* single.html End */
  296. /* content.html Start */
  297. .news-main {
  298. height: 100%;
  299. overflow: hidden;
  300. }
  301. .news-main a {
  302. text-decoration: none;
  303. }
  304. .news-main .title-info {
  305. position: absolute;
  306. bottom: 0;
  307. left: 0;
  308. right: 0;
  309. z-index: 10;
  310. padding: 1rem;
  311. background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.95)), color-stop(50%, rgba(0, 0, 0, 0.7)), color-stop(80%, rgba(0, 0, 0, 0.3)), to(transparent));
  312. background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 80%, transparent 100%);
  313. }
  314. .news-main .title-info a,
  315. .news-main .title-info h2,
  316. .news-main .title-info small {
  317. color: #fff;
  318. letter-spacing: 1px;
  319. }
  320. .news-main .title-info h2 {
  321. line-height: 1.5;
  322. }
  323. .news-main .title-info h2 a {
  324. font-weight: 500;
  325. font-size: 1.5rem;
  326. display: -webkit-box;
  327. -webkit-box-orient: vertical;
  328. -webkit-line-clamp: 2;
  329. overflow: hidden;
  330. text-overflow: ellipsis;
  331. word-break: break-word;
  332. }
  333. @media (max-width: 991px) {
  334. .news-main .title-info h2 a {
  335. font-size: 1.25rem;
  336. }
  337. }
  338. .news-main .title-info .badge-link {
  339. display: inline-block;
  340. padding: 1px 20px;
  341. margin-bottom: 10px;
  342. background-color: var(--sub-color);
  343. font-weight: 500;
  344. }
  345. .news-main .post-title a {
  346. font-size: 34px;
  347. }
  348. .news-main img {
  349. height: 100%;
  350. -o-object-fit: cover;
  351. object-fit: cover;
  352. }
  353. .news-main .news-info a {
  354. font-size: 16px;
  355. }
  356. /* content.html End */
  357. /* focus.html Start */
  358. .focus-content {
  359. position: -webkit-sticky;
  360. position: sticky;
  361. top: 20px;
  362. }
  363. .focus-content img,
  364. .news-featured img {
  365. height: 5vw;
  366. -o-object-fit: cover;
  367. object-fit: cover;
  368. }
  369. @media (max-width: 991px) {
  370. .focus-content img,
  371. .news-featured img {
  372. height: 15vw;
  373. }
  374. }
  375. .focus-content .post-title,
  376. .news-featured .post-title {
  377. overflow: hidden;
  378. text-overflow: ellipsis;
  379. display: -webkit-box;
  380. -webkit-line-clamp: 2;
  381. -webkit-box-orient: vertical;
  382. line-break: after-white-space;
  383. font-size: 1.125rem;
  384. }
  385. /* focus.html End */
  386. /* recent.html Start */
  387. .recent-content .news-list {
  388. margin: 0;
  389. }
  390. .recent-content .news-list li {
  391. margin: 15px 0;
  392. }
  393. .recent-content .news-list li img {
  394. width: 140px;
  395. height: 105px;
  396. -o-object-fit: cover;
  397. object-fit: cover;
  398. }
  399. .recent-content .news-list li small {
  400. display: block;
  401. }
  402. .recent-content .news-list li .news-info {
  403. margin-top: 0px;
  404. }
  405. .recent-content .news-list li:last-child {
  406. margin: 0;
  407. }
  408. /* recent.html End */
  409. /* news-tab.html Start */
  410. .tab-category .nav-link {
  411. color: var(--main-color);
  412. font-weight: 500;
  413. }
  414. .tab-category .nav-pills .nav-link.active,
  415. .tab-category .nav-pills .show > .nav-link {
  416. color: var(--sub-color);
  417. background-color: var(--main-color);
  418. }
  419. .tab-content .bg-img {
  420. position: relative;
  421. height: 370px;
  422. background-blend-mode: multiply;
  423. background-size: cover;
  424. background-position: center center;
  425. cursor: pointer;
  426. }
  427. @media (max-width: 991px) {
  428. .tab-content .bg-img {
  429. height: 50vw;
  430. }
  431. }
  432. .tab-content .bg-img section {
  433. padding: 10px 25px;
  434. position: absolute;
  435. bottom: 0;
  436. color: #fff;
  437. }
  438. .tab-content .bg-img section a {
  439. color: #fff;
  440. text-decoration: none;
  441. }
  442. .tab-content .bg-img section small {
  443. font-size: 12px;
  444. }
  445. .tab-content .col-5 img {
  446. height: 150px;
  447. }
  448. /* news-tab.html End */
  449. /* news-all.html Start */
  450. .news-all .post-title {
  451. margin: 5px auto;
  452. }
  453. .news-all .post-title a {
  454. font-size: 1.5rem;
  455. display: -webkit-box;
  456. -webkit-box-orient: vertical;
  457. -webkit-line-clamp: 2;
  458. overflow: hidden;
  459. text-overflow: ellipsis;
  460. word-break: break-word;
  461. }
  462. .news-all .news-info a {
  463. font-size: 18px;
  464. }
  465. .news-all hr {
  466. margin: 1.5rem 0;
  467. }
  468. .news-all img {
  469. height: 12vw;
  470. -o-object-fit: cover;
  471. object-fit: cover;
  472. }
  473. @media (max-width: 991px) {
  474. .news-all img {
  475. height: 20vw;
  476. }
  477. }
  478. @media (max-width: 575px) {
  479. .news-all img {
  480. height: 50vw;
  481. }
  482. }
  483. .news-all .line {
  484. padding: 0 12px;
  485. }
  486. /* news-all.html End */
  487. /* news-featured.html Start */
  488. .news-featured {
  489. position: -webkit-sticky;
  490. position: sticky;
  491. top: 20px;
  492. }
  493. /* news-featured.html End */
  494. /* news-video.html Start */
  495. .news-video .post-block-title span {
  496. display: block;
  497. width: 100%;
  498. text-align: center;
  499. }
  500. .news-video .post-title a {
  501. font-size: 18px;
  502. display: -webkit-box;
  503. -webkit-line-clamp: 2;
  504. -webkit-box-orient: vertical;
  505. overflow: hidden;
  506. text-overflow: ellipsis;
  507. }
  508. .news-video .news-info a {
  509. font-size: 14px;
  510. }
  511. /* news-video.html End */
  512. .news-main .left-content {
  513. height: 45vh;
  514. }
  515. .news-main .right-content {
  516. height: 55vh;
  517. }
  518. .news-main .bottom-content {
  519. height: 35vh;
  520. }
  521. @media (max-width: 991px) {
  522. .news-main .left-content,
  523. .news-main .right-content,
  524. .news-main .bottom-content {
  525. height: 50vw;
  526. }
  527. }
  528. .tags-list .cover-img {
  529. height: 230px;
  530. -o-object-fit: cover;
  531. object-fit: cover;
  532. }
  533. .feature-article .float-right {
  534. float: right;
  535. max-width: 60%;
  536. margin: 1rem 0 0 1rem;
  537. border-radius: 12px;
  538. -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  539. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  540. }
  541. .feature-article .float-left {
  542. float: left;
  543. max-width: 60%;
  544. margin: 1rem 1.5rem 0 0;
  545. border-radius: 12px;
  546. -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  547. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  548. }
  549. @media (max-width: 768px) {
  550. .feature-article .float-right,
  551. .feature-article .float-left {
  552. float: none;
  553. display: block;
  554. max-width: 100%;
  555. margin: 1rem auto;
  556. /* 圖片置中 */
  557. }
  558. }
  559. .feature-article figure {
  560. margin: 2rem 0;
  561. text-align: center;
  562. }
  563. .feature-article figure img {
  564. width: 100%;
  565. height: auto;
  566. -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  567. box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  568. }
  569. .feature-article h1 {
  570. font-size: 3.5rem;
  571. margin: 3rem auto;
  572. padding-top: 1.5rem;
  573. border-top: 12px solid var(--sub-color);
  574. }
  575. .feature-article h2 {
  576. padding: 1.5rem 0;
  577. margin: 2.5rem auto;
  578. border-top: 1px solid var(--sub-color);
  579. border-bottom: 1px solid var(--sub-color);
  580. text-align: center;
  581. color: var(--sub-color);
  582. font-size: 2.5rem;
  583. font-weight: 500;
  584. }
  585. .feature-article h3,
  586. .feature-article h4 {
  587. margin-bottom: 1rem;
  588. color: var(--sub-color);
  589. }
  590. .feature-article hr {
  591. margin: 3rem 0;
  592. }
  593. .feature-article .feature-body div,
  594. .feature-article .feature-body p {
  595. margin: 1.5rem 0 0;
  596. line-height: 1.8;
  597. font-size: 1.05rem;
  598. color: #222;
  599. }
  600. .feature-article .lead {
  601. display: inline-block;
  602. padding: 0.5rem 1.5rem;
  603. margin-bottom: 1.5rem;
  604. background-color: #f8f8f8;
  605. border-left: 5px solid var(--sub-color);
  606. border: 2px dotted #ccc;
  607. }
  608. .feature-article ul {
  609. list-style: disc;
  610. }
  611. .feature-article ol {
  612. list-style: auto;
  613. }
  614. .feature-article b,
  615. .feature-article strong {
  616. font-weight: 700;
  617. }
  618. .feature-article .toc {
  619. margin: 3rem 0;
  620. background: #f9f9f9;
  621. padding: 1rem 1.5rem;
  622. border-left: 4px solid var(--sub-color);
  623. font-size: 0.95rem;
  624. }
  625. .feature-article .toc .toc-title {
  626. font-size: 1.25rem;
  627. font-weight: bold;
  628. margin: 1rem 0;
  629. }
  630. .feature-article .toc ul {
  631. list-style: none;
  632. padding-left: 0;
  633. }
  634. .feature-article .toc ul li {
  635. margin: 0.15rem 0;
  636. font-size: 1rem;
  637. }
  638. .feature-article .toc ul li a {
  639. text-decoration: none;
  640. color: var(--sub-color);
  641. }
  642. .feature-article .toc ul li a:hover {
  643. text-decoration: underline;
  644. }
  645. .feature-article .toc ul li:empty {
  646. display: none;
  647. }
  648. .feature-article .quote-accent {
  649. display: -webkit-box;
  650. display: -ms-flexbox;
  651. display: flex;
  652. -webkit-box-align: start;
  653. -ms-flex-align: start;
  654. align-items: flex-start;
  655. gap: 0.5rem;
  656. padding: 1rem 0;
  657. font-size: 2rem;
  658. font-weight: 600;
  659. border-top: 4px solid var(--sub-color);
  660. }
  661. .feature-article .quote-accent::before {
  662. content: "“";
  663. -webkit-box-flex: 0;
  664. -ms-flex: 0 0 auto;
  665. flex: 0 0 auto;
  666. font-family: Georgia, "Times New Roman", serif;
  667. font-size: 2.8em;
  668. line-height: 0.6;
  669. color: var(--sub-color);
  670. margin-top: 0.1em;
  671. }
  672. .feature-article .quote-accent > p {
  673. margin: 0;
  674. }
  675. /*# sourceMappingURL=style.css.map */