style.css 8.0 KB

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