style.css 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  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: flex;
  31. flex-direction: column;
  32. overflow-y: scroll;
  33. }
  34. .btn:focus,
  35. .form-control:focus {
  36. border-color: var(--main-color) !important;
  37. box-shadow: none !important;
  38. outline: 0 none !important;
  39. }
  40. .badge {
  41. font-weight: 400 !important;
  42. }
  43. .navbar {
  44. background-color: var(--main-color) !important;
  45. }
  46. .navbar .navbar-collapse {
  47. flex-grow: 0;
  48. }
  49. .navbar .navbar-brand {
  50. font-size: 50px;
  51. font-weight: 500;
  52. font-family: "Roboto Slab", serif !important;
  53. color: var(--sub-color);
  54. transition: all 0.3s;
  55. }
  56. @media (max-width: 575px) {
  57. .navbar .navbar-brand {
  58. padding-left: 1rem;
  59. font-size: 35px;
  60. }
  61. }
  62. .navbar .navbar-brand:hover {
  63. opacity: 0.9;
  64. color: var(--sub-color);
  65. }
  66. .blog-post-tags .badge {
  67. background-color: var(--main-color);
  68. }
  69. .blog-post-tags .badge:hover {
  70. color: var(--main-color);
  71. background-color: #fff;
  72. border: 1px solid var(--main-color);
  73. }
  74. .blog-post-title {
  75. margin: 10px 0 20px;
  76. }
  77. .blog-post-title a {
  78. font-size: 50px;
  79. font-weight: 500;
  80. }
  81. .pagination {
  82. justify-content: center;
  83. }
  84. .pagination .page-link {
  85. color: var(--main-color);
  86. }
  87. .pagination .page-item.active .page-link {
  88. z-index: 3;
  89. color: #fff;
  90. background-color: var(--main-color);
  91. border-color: var(--main-color);
  92. }
  93. .post-title a {
  94. color: #000;
  95. text-decoration: none;
  96. font-size: 22px;
  97. font-weight: 500;
  98. }
  99. .post-block-title {
  100. margin-bottom: 25px;
  101. position: relative;
  102. font-size: 20px;
  103. }
  104. .post-block-title::after {
  105. position: absolute;
  106. z-index: -10;
  107. top: 30px;
  108. left: 0;
  109. width: 100%;
  110. height: 0px;
  111. content: "";
  112. border-bottom: 1px solid var(--sub-color);
  113. bottom: 5px;
  114. }
  115. .post-block-title span {
  116. padding: 5px 20px;
  117. color: #fff;
  118. font-weight: 300;
  119. background: var(--sub-color);
  120. }
  121. .news-info {
  122. margin-top: 10px;
  123. line-height: 20px;
  124. }
  125. .news-info a {
  126. font-size: 14px;
  127. font-weight: 500;
  128. color: var(--gray-color);
  129. text-decoration: none;
  130. transition: all 0.3s;
  131. }
  132. .news-info a:hover {
  133. opacity: 0.8;
  134. }
  135. .news-info small {
  136. color: var(--gray-color);
  137. }
  138. .news-thumbnail {
  139. height: 100%;
  140. -o-object-fit: cover;
  141. object-fit: cover;
  142. }
  143. .line-clamp {
  144. max-width: 150px;
  145. display: -webkit-box;
  146. -webkit-line-clamp: 2;
  147. -webkit-box-orient: vertical;
  148. overflow: hidden;
  149. text-overflow: ellipsis;
  150. }
  151. .post-depiction {
  152. margin: 10px 0;
  153. display: -webkit-box;
  154. -webkit-line-clamp: 2;
  155. -webkit-box-orient: vertical;
  156. overflow: hidden;
  157. text-overflow: ellipsis;
  158. line-height: 26px;
  159. }
  160. .post-depiction a {
  161. color: #7a7a7a;
  162. text-decoration: none;
  163. }
  164. .top-btn {
  165. position: fixed;
  166. bottom: 15px;
  167. right: 15px;
  168. z-index: 10;
  169. opacity: 0;
  170. transition: all 0.5s;
  171. }
  172. .top-btn button {
  173. border: none;
  174. background: var(--sub-color);
  175. border-radius: 100px;
  176. width: 55px;
  177. height: 55px;
  178. }
  179. .show {
  180. opacity: 1;
  181. }
  182. .blog-header .nav-item {
  183. padding: 0 0.3rem;
  184. }
  185. @media (max-width: 575px) {
  186. .blog-header .nav-item {
  187. padding: 0 1rem;
  188. }
  189. }
  190. /* sidebar.html Start */
  191. .news-sidebar {
  192. position: sticky;
  193. top: 15px;
  194. }
  195. .news-sidebar .news-featured {
  196. position: unset;
  197. }
  198. .search-btn {
  199. border: 1px solid var(--main-color) !important;
  200. }
  201. .search-btn svg {
  202. color: var(--main-color);
  203. }
  204. .search-btn:hover {
  205. background-color: var(--main-color) !important;
  206. }
  207. .search-btn:hover svg {
  208. color: #fff;
  209. }
  210. .tags {
  211. margin: 0 5px 5px 0;
  212. padding: 7px 10px !important;
  213. font-size: 14px !important;
  214. font-weight: 400 !important;
  215. color: var(--main-color) !important;
  216. border: 1px solid var(--main-color) !important;
  217. }
  218. .tags:hover {
  219. color: #fff !important;
  220. background-color: var(--main-color);
  221. }
  222. /* sidebar.html End */
  223. /* single.html Start */
  224. .blog-post.content .content {
  225. padding-bottom: 3rem;
  226. }
  227. .blog-post.content .toc-container {
  228. padding: 1.5rem;
  229. margin: 3rem 0;
  230. background: #f9f9f9;
  231. border: 1px solid #aaa;
  232. border-radius: 5px;
  233. }
  234. .blog-post.content .toc-container ul {
  235. margin-bottom: 0;
  236. list-style: disc;
  237. }
  238. .blog-post.content .toc-container ul a {
  239. color: var(--sub-color);
  240. text-decoration: none;
  241. }
  242. .blog-post.content .toc-container .title {
  243. display: block;
  244. margin-left: 1rem;
  245. margin-bottom: 0.5rem !important;
  246. font-size: 1.25rem;
  247. color: #000;
  248. }
  249. .blog-post.content h2 {
  250. padding-left: 1rem;
  251. margin: 5rem 0 1.5rem;
  252. border-left: 7px solid var(--sub-color);
  253. }
  254. .blog-post.content h4 {
  255. margin-top: 3rem;
  256. font-size: 1.25rem;
  257. font-weight: 500;
  258. line-height: 32px;
  259. }
  260. .blog-post.content h4 a {
  261. padding: 5px 8px;
  262. margin-right: 3px;
  263. border: 1px solid #000;
  264. border-radius: 5px;
  265. font-size: 14px;
  266. }
  267. .blog-post.content h4 a:hover {
  268. color: #fff !important;
  269. }
  270. .blog-post.content .back-link {
  271. color: #000;
  272. display: block;
  273. text-align: center;
  274. text-decoration: none;
  275. transition: all 0.3s;
  276. }
  277. .blog-post.content .back-link:hover {
  278. opacity: 0.7;
  279. }
  280. /* single.html End */
  281. /* content.html Start */
  282. .news-main {
  283. height: 100%;
  284. overflow: hidden;
  285. }
  286. .news-main a {
  287. text-decoration: none;
  288. }
  289. .news-main .title-info {
  290. position: absolute;
  291. bottom: 0;
  292. left: 0;
  293. right: 0;
  294. z-index: 10;
  295. padding: 1rem;
  296. 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%);
  297. }
  298. .news-main .title-info a,
  299. .news-main .title-info h2,
  300. .news-main .title-info small {
  301. color: #fff;
  302. letter-spacing: 1px;
  303. }
  304. .news-main .title-info h2 {
  305. line-height: 1.5;
  306. }
  307. .news-main .title-info h2 a {
  308. font-weight: 500;
  309. font-size: 1.5rem;
  310. display: -webkit-box;
  311. -webkit-box-orient: vertical;
  312. -webkit-line-clamp: 2;
  313. overflow: hidden;
  314. text-overflow: ellipsis;
  315. word-break: break-word;
  316. }
  317. @media (max-width: 991px) {
  318. .news-main .title-info h2 a {
  319. font-size: 1.25rem;
  320. }
  321. }
  322. .news-main .title-info .badge-link {
  323. display: inline-block;
  324. padding: 1px 20px;
  325. margin-bottom: 10px;
  326. background-color: var(--sub-color);
  327. font-weight: 500;
  328. }
  329. .news-main .post-title a {
  330. font-size: 34px;
  331. }
  332. .news-main img {
  333. height: 100%;
  334. -o-object-fit: cover;
  335. object-fit: cover;
  336. }
  337. .news-main .news-info a {
  338. font-size: 16px;
  339. }
  340. /* content.html End */
  341. /* focus.html Start */
  342. .focus-content {
  343. position: sticky;
  344. top: 20px;
  345. }
  346. .focus-content img,
  347. .news-featured img {
  348. height: 5vw;
  349. -o-object-fit: cover;
  350. object-fit: cover;
  351. }
  352. @media (max-width: 991px) {
  353. .focus-content img,
  354. .news-featured img {
  355. height: 15vw;
  356. }
  357. }
  358. .focus-content .post-title,
  359. .news-featured .post-title {
  360. overflow: hidden;
  361. text-overflow: ellipsis;
  362. display: -webkit-box;
  363. -webkit-line-clamp: 2;
  364. -webkit-box-orient: vertical;
  365. line-break: after-white-space;
  366. font-size: 1.125rem;
  367. }
  368. /* focus.html End */
  369. /* recent.html Start */
  370. .recent-content .news-list {
  371. margin: 0;
  372. }
  373. .recent-content .news-list li {
  374. margin: 15px 0;
  375. }
  376. .recent-content .news-list li img {
  377. width: 140px;
  378. height: 105px;
  379. -o-object-fit: cover;
  380. object-fit: cover;
  381. }
  382. .recent-content .news-list li small {
  383. display: block;
  384. }
  385. .recent-content .news-list li .news-info {
  386. margin-top: 0px;
  387. }
  388. .recent-content .news-list li:last-child {
  389. margin: 0;
  390. }
  391. /* recent.html End */
  392. /* news-tab.html Start */
  393. .tab-category .nav-link {
  394. color: var(--main-color);
  395. font-weight: 500;
  396. }
  397. .tab-category .nav-pills .nav-link.active,
  398. .tab-category .nav-pills .show > .nav-link {
  399. color: var(--sub-color);
  400. background-color: var(--main-color);
  401. }
  402. .tab-content .bg-img {
  403. position: relative;
  404. height: 370px;
  405. background-blend-mode: multiply;
  406. background-size: cover;
  407. background-position: center center;
  408. cursor: pointer;
  409. }
  410. @media (max-width: 991px) {
  411. .tab-content .bg-img {
  412. height: 50vw;
  413. }
  414. }
  415. .tab-content .bg-img section {
  416. padding: 10px 25px;
  417. position: absolute;
  418. bottom: 0;
  419. color: #fff;
  420. }
  421. .tab-content .bg-img section a {
  422. color: #fff;
  423. text-decoration: none;
  424. }
  425. .tab-content .bg-img section small {
  426. font-size: 12px;
  427. }
  428. .tab-content .col-5 img {
  429. height: 150px;
  430. }
  431. /* news-tab.html End */
  432. /* news-all.html Start */
  433. .news-all .post-title {
  434. margin: 5px auto;
  435. }
  436. .news-all .post-title a {
  437. font-size: 1.5rem;
  438. display: -webkit-box;
  439. -webkit-box-orient: vertical;
  440. -webkit-line-clamp: 2;
  441. overflow: hidden;
  442. text-overflow: ellipsis;
  443. word-break: break-word;
  444. }
  445. .news-all .news-info a {
  446. font-size: 18px;
  447. }
  448. .news-all hr {
  449. margin: 1.5rem 0;
  450. }
  451. .news-all img {
  452. height: 12vw;
  453. -o-object-fit: cover;
  454. object-fit: cover;
  455. }
  456. @media (max-width: 991px) {
  457. .news-all img {
  458. height: 20vw;
  459. }
  460. }
  461. @media (max-width: 575px) {
  462. .news-all img {
  463. height: 50vw;
  464. }
  465. }
  466. .news-all .line {
  467. padding: 0 12px;
  468. }
  469. /* news-all.html End */
  470. /* news-featured.html Start */
  471. .news-featured {
  472. position: sticky;
  473. top: 20px;
  474. }
  475. /* news-featured.html End */
  476. /* news-video.html Start */
  477. .news-video .post-block-title span {
  478. display: block;
  479. width: 100%;
  480. text-align: center;
  481. }
  482. .news-video .post-title a {
  483. font-size: 18px;
  484. display: -webkit-box;
  485. -webkit-line-clamp: 2;
  486. -webkit-box-orient: vertical;
  487. overflow: hidden;
  488. text-overflow: ellipsis;
  489. }
  490. .news-video .news-info a {
  491. font-size: 14px;
  492. }
  493. /* news-video.html End */
  494. .news-main .left-content {
  495. height: 45vh;
  496. }
  497. .news-main .right-content {
  498. height: 55vh;
  499. }
  500. .news-main .bottom-content {
  501. height: 35vh;
  502. }
  503. @media (max-width: 991px) {
  504. .news-main .left-content,
  505. .news-main .right-content,
  506. .news-main .bottom-content {
  507. height: 50vw;
  508. }
  509. }/*# sourceMappingURL=style.css.map */