style.css 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  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: 300;
  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. ol {
  21. padding: 0;
  22. }
  23. img {
  24. width: 100%;
  25. height: auto;
  26. }
  27. html,
  28. body {
  29. height: 100%;
  30. margin: 0;
  31. }
  32. body {
  33. display: flex;
  34. flex-direction: column;
  35. overflow-y: scroll;
  36. }
  37. .btn:focus,
  38. .form-control:focus {
  39. border-color: var(--main-color) !important;
  40. box-shadow: none !important;
  41. outline: 0 none !important;
  42. }
  43. .badge {
  44. font-weight: 400 !important;
  45. }
  46. .w-90 {
  47. width: 95%;
  48. margin: 0 auto;
  49. }
  50. .navbar {
  51. background-color: #000 !important;
  52. }
  53. .navbar .navbar-nav .nav-item .nav-link {
  54. color: #fff;
  55. }
  56. .navbar .navbar-collapse {
  57. flex-grow: 0;
  58. }
  59. .navbar .navbar-brand {
  60. font-size: 24px;
  61. font-weight: 100;
  62. font-family: "Roboto Slab", serif !important;
  63. color: #fff;
  64. transition: all 0.3s;
  65. }
  66. .navbar .navbar-brand:hover {
  67. opacity: 0.9;
  68. color: var(--sub-color);
  69. }
  70. .blog-post-tags .badge {
  71. background-color: var(--main-color);
  72. }
  73. .blog-post-tags .badge:hover {
  74. color: var(--main-color);
  75. background-color: #fff;
  76. }
  77. .blog-post-title {
  78. margin: 10px 0 20px;
  79. }
  80. .blog-post-title a {
  81. font-size: 50px;
  82. font-weight: 600;
  83. }
  84. @media (max-width: 991px) {
  85. .blog-post-title a {
  86. font-size: 36px;
  87. }
  88. }
  89. .pagination {
  90. justify-content: center;
  91. }
  92. .pagination .page-link {
  93. color: var(--main-color);
  94. }
  95. .pagination .page-item.active .page-link {
  96. z-index: 3;
  97. color: #fff;
  98. background-color: var(--main-color);
  99. border-color: var(--main-color);
  100. }
  101. .post-title {
  102. line-height: 24px;
  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: 20px;
  112. position: relative;
  113. font-size: 22px;
  114. }
  115. .post-block-title::after {
  116. position: absolute;
  117. z-index: -10;
  118. top: 15px;
  119. left: 0;
  120. width: 100%;
  121. height: 0px;
  122. content: "";
  123. border-bottom: 1px solid #929292;
  124. bottom: 5px;
  125. }
  126. .post-block-title span {
  127. font-weight: 500;
  128. background: #fff;
  129. }
  130. .news-info {
  131. margin-top: 10px;
  132. display: flex;
  133. justify-content: space-between;
  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. transition: all 0.3s;
  142. }
  143. .news-info a:hover {
  144. opacity: 0.8;
  145. }
  146. .news-info small {
  147. margin-left: 10px;
  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. transition: all 0.5s;
  183. }
  184. .top-btn button {
  185. border: none;
  186. background: var(--sub-color);
  187. border-radius: 100px;
  188. width: 55px;
  189. height: 55px;
  190. }
  191. .show {
  192. opacity: 1;
  193. }
  194. /* sidebar.html Start */
  195. .news-sidebar {
  196. position: sticky;
  197. top: 15px;
  198. }
  199. .news-sidebar .news-featured {
  200. position: unset;
  201. }
  202. .search-btn {
  203. border: 1px solid var(--main-color) !important;
  204. }
  205. .search-btn svg {
  206. color: var(--main-color);
  207. }
  208. .search-btn:hover {
  209. background-color: var(--main-color) !important;
  210. }
  211. .search-btn:hover svg {
  212. color: #fff;
  213. }
  214. .tags {
  215. margin: 0 5px 5px 0;
  216. padding: 7px 10px !important;
  217. font-size: 14px !important;
  218. font-weight: 400 !important;
  219. color: var(--main-color) !important;
  220. border: 1px solid var(--main-color) !important;
  221. }
  222. .tags:hover {
  223. color: #fff !important;
  224. background-color: var(--main-color);
  225. }
  226. /* sidebar.html End */
  227. /* single.html Start */
  228. .blog-post.content h2 {
  229. line-height: 46px;
  230. }
  231. .blog-post.content h4 {
  232. font-size: 16px;
  233. font-weight: 300;
  234. line-height: 32px;
  235. }
  236. .blog-post.content h4 a {
  237. padding: 5px 8px;
  238. margin-right: 3px;
  239. border: 1px solid #000;
  240. border-radius: 5px;
  241. font-size: 14px;
  242. }
  243. .blog-post.content h4 a:hover {
  244. color: #fff !important;
  245. }
  246. .blog-post.content .back-link {
  247. color: #000;
  248. display: block;
  249. text-align: center;
  250. text-decoration: none;
  251. transition: all 0.3s;
  252. }
  253. .blog-post.content .back-link:hover {
  254. opacity: 0.7;
  255. }
  256. /* single.html End */
  257. /* content.html Start */
  258. .news-main {
  259. overflow: hidden;
  260. }
  261. @media (max-width: 991px) {
  262. .news-main {
  263. display: flex;
  264. flex-direction: column-reverse;
  265. margin-top: 8px;
  266. }
  267. }
  268. .news-main .post-title {
  269. line-height: 46px;
  270. }
  271. @media (max-width: 991px) {
  272. .news-main .post-title {
  273. line-height: 30px;
  274. }
  275. }
  276. .news-main .post-title a {
  277. font-size: 34px;
  278. }
  279. @media (max-width: 991px) {
  280. .news-main .post-title a {
  281. font-size: 22px;
  282. }
  283. }
  284. .news-main img {
  285. -o-object-fit: cover;
  286. object-fit: cover;
  287. }
  288. /* content.html End */
  289. /* recent.html Start */
  290. .recent-content .news-list {
  291. margin: 0;
  292. }
  293. .recent-content .news-list li {
  294. margin: 15px 0;
  295. }
  296. .recent-content .news-list li img {
  297. width: 140px;
  298. height: 105px;
  299. -o-object-fit: cover;
  300. object-fit: cover;
  301. }
  302. .recent-content .news-list li small {
  303. display: block;
  304. }
  305. .recent-content .news-list li .news-info {
  306. margin-top: 0px;
  307. }
  308. .recent-content .news-list li:last-child {
  309. margin: 0;
  310. }
  311. /* recent.html End */
  312. /* news-tab.html Start */
  313. .tab-category .nav-link {
  314. color: var(--main-color);
  315. font-weight: 500;
  316. }
  317. .tab-category .nav-pills .nav-link.active,
  318. .tab-category .nav-pills .show > .nav-link {
  319. color: var(--sub-color);
  320. background-color: var(--main-color);
  321. }
  322. .tab-content .bg-img {
  323. position: relative;
  324. height: 370px;
  325. background-blend-mode: multiply;
  326. background-size: cover;
  327. background-position: center center;
  328. cursor: pointer;
  329. }
  330. .tab-content .bg-img section {
  331. padding: 10px 25px;
  332. position: absolute;
  333. bottom: 0;
  334. color: #fff;
  335. }
  336. .tab-content .bg-img section a {
  337. color: #fff;
  338. text-decoration: none;
  339. }
  340. .tab-content .bg-img section small {
  341. font-size: 12px;
  342. }
  343. /* news-tab.html End */
  344. /* news-all.html Start */
  345. .news-all img {
  346. -o-object-fit: cover;
  347. object-fit: cover;
  348. max-height: 300px;
  349. }
  350. .news-all .post-title {
  351. margin: 5px auto;
  352. line-height: 46px;
  353. }
  354. @media (max-width: 767px) {
  355. .news-all .post-title {
  356. line-height: 40px;
  357. }
  358. }
  359. .news-all .post-title a {
  360. overflow: hidden;
  361. text-overflow: ellipsis;
  362. display: -webkit-box;
  363. -webkit-line-clamp: 1;
  364. -webkit-box-orient: vertical;
  365. line-break: after-white-space;
  366. font-size: 28px;
  367. }
  368. @media (max-width: 767px) {
  369. .news-all .post-title a {
  370. font-size: 26px;
  371. }
  372. }
  373. .news-all .news-info a {
  374. font-size: 18px;
  375. }
  376. .news-all hr {
  377. margin: 1.5rem 0;
  378. }
  379. .news-all .line {
  380. padding: 0 12px;
  381. }
  382. .cover-img {
  383. max-height: 250px;
  384. -o-object-fit: cover;
  385. object-fit: cover;
  386. }
  387. /* news-all.html End */
  388. /* news-featured.html Start */
  389. .news-featured {
  390. position: sticky;
  391. top: 20px;
  392. }
  393. .news-featured img,
  394. .focus-content img {
  395. -o-object-fit: cover;
  396. object-fit: cover;
  397. }
  398. @media (max-width: 991px) {
  399. .news-featured img,
  400. .focus-content img {
  401. height: 370px;
  402. }
  403. }
  404. @media (max-width: 767px) {
  405. .news-featured img,
  406. .focus-content img {
  407. height: 300px;
  408. }
  409. }
  410. .post-container {
  411. display: flex;
  412. justify-content: space-between;
  413. align-items: center;
  414. }
  415. .post-title {
  416. margin: 0;
  417. /* 可以消除標題的預設邊距 */
  418. }
  419. .news-post {
  420. display: flex;
  421. justify-content: end;
  422. }
  423. .news-post a {
  424. font-size: 14px;
  425. font-weight: 500;
  426. color: var(--gray-color);
  427. text-decoration: none;
  428. transition: all 0.3s;
  429. }
  430. .news-post a:hover {
  431. opacity: 0.8;
  432. }
  433. .news-post small {
  434. margin-left: 10px;
  435. }
  436. /* news-featured.html End *//*# sourceMappingURL=style.css.map */