style.css 7.8 KB

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