style.css 8.5 KB

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