style.css 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  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. 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-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-bottom: 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: 991px) {
  308. .news-main .main-img {
  309. height: 50vw;
  310. }
  311. }
  312. .news-main .news-info a {
  313. font-size: 16px;
  314. }
  315. /* content.html End */
  316. /* focus.html Start */
  317. .focus-content {
  318. position: sticky;
  319. top: 20px;
  320. }
  321. .focus-content img,
  322. .news-featured img {
  323. height: 5vw;
  324. -o-object-fit: cover;
  325. object-fit: cover;
  326. }
  327. @media (max-width: 991px) {
  328. .focus-content img,
  329. .news-featured img {
  330. height: 15vw;
  331. }
  332. }
  333. .focus-content .post-title,
  334. .news-featured .post-title {
  335. overflow: hidden;
  336. text-overflow: ellipsis;
  337. display: -webkit-box;
  338. -webkit-line-clamp: 2;
  339. -webkit-box-orient: vertical;
  340. line-break: after-white-space;
  341. font-size: 1.125rem;
  342. }
  343. /* focus.html End */
  344. /* recent.html Start */
  345. .recent-content .news-list {
  346. margin: 0;
  347. }
  348. .recent-content .news-list li {
  349. margin: 15px 0;
  350. }
  351. .recent-content .news-list li img {
  352. width: 140px;
  353. height: 105px;
  354. -o-object-fit: cover;
  355. object-fit: cover;
  356. }
  357. .recent-content .news-list li small {
  358. display: block;
  359. }
  360. .recent-content .news-list li .news-info {
  361. margin-top: 0px;
  362. }
  363. .recent-content .news-list li:last-child {
  364. margin: 0;
  365. }
  366. /* recent.html End */
  367. /* news-tab.html Start */
  368. .tab-category .nav-link {
  369. color: var(--main-color);
  370. font-weight: 500;
  371. }
  372. .tab-category .nav-pills .nav-link.active,
  373. .tab-category .nav-pills .show > .nav-link {
  374. color: var(--sub-color);
  375. background-color: var(--main-color);
  376. }
  377. .tab-content .bg-img {
  378. position: relative;
  379. height: 370px;
  380. background-blend-mode: multiply;
  381. background-size: cover;
  382. background-position: center center;
  383. cursor: pointer;
  384. }
  385. @media (max-width: 991px) {
  386. .tab-content .bg-img {
  387. height: 50vw;
  388. }
  389. }
  390. .tab-content .bg-img section {
  391. padding: 10px 25px;
  392. position: absolute;
  393. bottom: 0;
  394. color: #fff;
  395. }
  396. .tab-content .bg-img section a {
  397. color: #fff;
  398. text-decoration: none;
  399. }
  400. .tab-content .bg-img section small {
  401. font-size: 12px;
  402. }
  403. .tab-content .col-5 img {
  404. height: 150px;
  405. }
  406. /* news-tab.html End */
  407. /* news-all.html Start */
  408. .news-all .post-title {
  409. margin: 5px auto;
  410. }
  411. .news-all .post-title a {
  412. font-size: 1.5rem;
  413. display: -webkit-box;
  414. -webkit-box-orient: vertical;
  415. -webkit-line-clamp: 2;
  416. overflow: hidden;
  417. text-overflow: ellipsis;
  418. word-break: break-word;
  419. }
  420. .news-all .news-info a {
  421. font-size: 18px;
  422. }
  423. .news-all hr {
  424. margin: 1.5rem 0;
  425. }
  426. .news-all img {
  427. height: 12vw;
  428. -o-object-fit: cover;
  429. object-fit: cover;
  430. }
  431. @media (max-width: 991px) {
  432. .news-all img {
  433. height: 20vw;
  434. }
  435. }
  436. @media (max-width: 575px) {
  437. .news-all img {
  438. height: 50vw;
  439. }
  440. }
  441. .news-all .line {
  442. padding: 0 12px;
  443. }
  444. /* news-all.html End */
  445. /* news-featured.html Start */
  446. .news-featured {
  447. position: sticky;
  448. top: 20px;
  449. }
  450. /* news-featured.html End *//*# sourceMappingURL=style.css.map */