style.css 6.8 KB

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