style.css 6.6 KB

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