style.css 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  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. h2 {
  14. margin-bottom: 1rem;
  15. }
  16. p,
  17. li {
  18. line-height: 32px;
  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: 600;
  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: 20px;
  101. position: relative;
  102. font-size: 22px;
  103. }
  104. .post-block-title::after {
  105. position: absolute;
  106. z-index: -10;
  107. top: 15px;
  108. left: 0;
  109. width: 100%;
  110. height: 0px;
  111. content: "";
  112. border-bottom: 1px solid #929292;
  113. bottom: 5px;
  114. }
  115. .post-block-title span {
  116. font-weight: 500;
  117. background: #fff;
  118. }
  119. .news-info {
  120. margin-top: 10px;
  121. line-height: 20px;
  122. }
  123. .news-info a {
  124. font-size: 14px;
  125. font-weight: 500;
  126. color: var(--gray-color);
  127. text-decoration: none;
  128. transition: all 0.3s;
  129. }
  130. .news-info a:hover {
  131. opacity: 0.8;
  132. }
  133. .news-info small {
  134. color: var(--gray-color);
  135. }
  136. .news-thumbnail {
  137. height: 100%;
  138. -o-object-fit: cover;
  139. object-fit: cover;
  140. }
  141. .line-clamp {
  142. max-width: 150px;
  143. display: -webkit-box;
  144. -webkit-line-clamp: 2;
  145. -webkit-box-orient: vertical;
  146. overflow: hidden;
  147. text-overflow: ellipsis;
  148. }
  149. .post-depiction {
  150. margin: 10px 0;
  151. display: -webkit-box;
  152. -webkit-line-clamp: 2;
  153. -webkit-box-orient: vertical;
  154. overflow: hidden;
  155. text-overflow: ellipsis;
  156. line-height: 26px;
  157. }
  158. .post-depiction a {
  159. color: #7a7a7a;
  160. text-decoration: none;
  161. }
  162. .top-btn {
  163. position: fixed;
  164. bottom: 15px;
  165. right: 15px;
  166. z-index: 10;
  167. opacity: 0;
  168. transition: all 0.5s;
  169. }
  170. .top-btn button {
  171. border: none;
  172. background: var(--sub-color);
  173. border-radius: 100px;
  174. width: 55px;
  175. height: 55px;
  176. }
  177. .show {
  178. opacity: 1;
  179. }
  180. .blog-header .nav-item {
  181. padding: 0 0.3rem;
  182. }
  183. @media (max-width: 575px) {
  184. .blog-header .nav-item {
  185. padding: 0 1rem;
  186. }
  187. }
  188. /* sidebar.html Start */
  189. .news-sidebar {
  190. position: sticky;
  191. top: 15px;
  192. }
  193. .news-sidebar .news-featured {
  194. position: unset;
  195. }
  196. .search-btn {
  197. border: 1px solid var(--main-color) !important;
  198. }
  199. .search-btn svg {
  200. color: var(--main-color);
  201. }
  202. .search-btn:hover {
  203. background-color: var(--main-color) !important;
  204. }
  205. .search-btn:hover svg {
  206. color: #fff;
  207. }
  208. .tags {
  209. margin: 0 5px 5px 0;
  210. padding: 7px 10px !important;
  211. font-size: 14px !important;
  212. font-weight: 400 !important;
  213. color: var(--main-color) !important;
  214. border: 1px solid var(--main-color) !important;
  215. }
  216. .tags:hover {
  217. color: #fff !important;
  218. background-color: var(--main-color);
  219. }
  220. /* sidebar.html End */
  221. /* single.html Start */
  222. .blog-post.content h4 {
  223. margin-top: 3rem;
  224. font-size: 1.25rem;
  225. font-weight: 500;
  226. line-height: 32px;
  227. }
  228. .blog-post.content h4 a {
  229. padding: 5px 8px;
  230. margin-right: 3px;
  231. border: 1px solid #000;
  232. border-radius: 5px;
  233. font-size: 14px;
  234. }
  235. .blog-post.content h4 a:hover {
  236. color: #fff !important;
  237. }
  238. .blog-post.content .back-link {
  239. color: #000;
  240. display: block;
  241. text-align: center;
  242. text-decoration: none;
  243. transition: all 0.3s;
  244. }
  245. .blog-post.content .back-link:hover {
  246. opacity: 0.7;
  247. }
  248. /* single.html End */
  249. /* content.html Start */
  250. .news-main {
  251. height: 100%;
  252. overflow: hidden;
  253. }
  254. .news-main .post-title a {
  255. font-size: 34px;
  256. }
  257. @media (max-width: 991px) {
  258. .news-main .post-title a {
  259. font-size: 22px;
  260. }
  261. }
  262. .news-main img {
  263. height: 375px;
  264. -o-object-fit: cover;
  265. object-fit: cover;
  266. }
  267. @media (max-width: 991px) {
  268. .news-main img {
  269. height: 50vw;
  270. }
  271. }
  272. .news-main .news-info a {
  273. font-size: 16px;
  274. }
  275. /* content.html End */
  276. /* focus.html Start */
  277. .focus-content {
  278. position: sticky;
  279. top: 20px;
  280. }
  281. .focus-content img,
  282. .news-featured img {
  283. height: 175px;
  284. -o-object-fit: cover;
  285. object-fit: cover;
  286. }
  287. @media (max-width: 991px) {
  288. .focus-content img,
  289. .news-featured img {
  290. height: 50vw;
  291. }
  292. }
  293. .focus-content .post-title,
  294. .news-featured .post-title {
  295. overflow: hidden;
  296. text-overflow: ellipsis;
  297. display: -webkit-box;
  298. -webkit-line-clamp: 2;
  299. -webkit-box-orient: vertical;
  300. line-break: after-white-space;
  301. }
  302. /* focus.html End */
  303. /* recent.html Start */
  304. .recent-content .news-list {
  305. margin: 0;
  306. }
  307. .recent-content .news-list li {
  308. margin: 15px 0;
  309. }
  310. .recent-content .news-list li img {
  311. width: 140px;
  312. height: 105px;
  313. -o-object-fit: cover;
  314. object-fit: cover;
  315. }
  316. .recent-content .news-list li small {
  317. display: block;
  318. }
  319. .recent-content .news-list li .news-info {
  320. margin-top: 0px;
  321. }
  322. .recent-content .news-list li:last-child {
  323. margin: 0;
  324. }
  325. /* recent.html End */
  326. /* news-tab.html Start */
  327. .tab-category .nav-link {
  328. color: var(--main-color);
  329. font-weight: 500;
  330. }
  331. .tab-category .nav-pills .nav-link.active,
  332. .tab-category .nav-pills .show > .nav-link {
  333. color: var(--sub-color);
  334. background-color: var(--main-color);
  335. }
  336. .tab-content .bg-img {
  337. position: relative;
  338. height: 370px;
  339. background-blend-mode: multiply;
  340. background-size: cover;
  341. background-position: center center;
  342. cursor: pointer;
  343. }
  344. @media (max-width: 991px) {
  345. .tab-content .bg-img {
  346. height: 50vw;
  347. }
  348. }
  349. .tab-content .bg-img section {
  350. padding: 10px 25px;
  351. position: absolute;
  352. bottom: 0;
  353. color: #fff;
  354. }
  355. .tab-content .bg-img section a {
  356. color: #fff;
  357. text-decoration: none;
  358. }
  359. .tab-content .bg-img section small {
  360. font-size: 12px;
  361. }
  362. .tab-content .col-5 img {
  363. height: 150px;
  364. }
  365. /* news-tab.html End */
  366. /* news-all.html Start */
  367. .news-all .post-title {
  368. margin: 5px auto;
  369. }
  370. .news-all .post-title a {
  371. font-size: 36px;
  372. line-height: 1.5;
  373. display: -webkit-box;
  374. -webkit-line-clamp: 2; /* 限制最多兩行 */
  375. -webkit-box-orient: vertical;
  376. overflow: hidden;
  377. text-overflow: ellipsis;
  378. word-break: break-word;
  379. transition: all 0.3s;
  380. }
  381. @media (max-width: 575px) {
  382. .news-all .post-title a {
  383. font-size: 30px;
  384. }
  385. }
  386. .news-all .post-title a:hover {
  387. opacity: 0.7;
  388. }
  389. .news-all .post-description a {
  390. color: #727272;
  391. text-decoration: none;
  392. transition: all 0.3s;
  393. }
  394. .news-all .post-description a:hover {
  395. opacity: 0.7;
  396. }
  397. .news-all .news-info a {
  398. font-size: 18px;
  399. }
  400. .news-all hr {
  401. margin: 1.5rem 0;
  402. }
  403. .news-all .first-img {
  404. height: 50vh;
  405. -o-object-fit: cover;
  406. object-fit: cover;
  407. }
  408. @media (max-width: 991px) {
  409. .news-all .first-img {
  410. height: 50vw;
  411. }
  412. }
  413. .news-all .line {
  414. padding: 0 12px;
  415. }
  416. .news-all .cover-img {
  417. width: 100%;
  418. height: 220px;
  419. -o-object-fit: cover;
  420. object-fit: cover;
  421. }
  422. @media (max-width: 575px) {
  423. .news-all .cover-img {
  424. height: 50vw;
  425. }
  426. }
  427. /* news-all.html End */
  428. /* news-featured.html Start */
  429. .news-featured {
  430. position: sticky;
  431. top: 20px;
  432. }
  433. /* news-featured.html End */
  434. .cover-img {
  435. height: 280px;
  436. -o-object-fit: cover;
  437. object-fit: cover;
  438. }/*# sourceMappingURL=style.css.map */