style.css 7.8 KB

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