style.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  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.html End */
  257. /* recent.html Start */
  258. .recent-content .news-list {
  259. margin: 0;
  260. }
  261. .recent-content .news-list li {
  262. margin: 15px 0;
  263. }
  264. .recent-content .news-list li img {
  265. width: 140px;
  266. height: 105px;
  267. -o-object-fit: cover;
  268. object-fit: cover;
  269. }
  270. .recent-content .news-list li small {
  271. display: block;
  272. }
  273. .recent-content .news-list li .news-info {
  274. margin-top: 0px;
  275. }
  276. .recent-content .news-list li:last-child {
  277. margin: 0;
  278. }
  279. /* recent.html End */
  280. /* news-tab.html Start */
  281. .tab-category .nav-link {
  282. color: var(--main-color);
  283. font-weight: 500;
  284. }
  285. .tab-category .nav-pills .nav-link.active,
  286. .tab-category .nav-pills .show > .nav-link {
  287. color: var(--sub-color);
  288. background-color: var(--main-color);
  289. }
  290. .tab-content .bg-img {
  291. position: relative;
  292. height: 370px;
  293. background-blend-mode: multiply;
  294. background-size: cover;
  295. background-position: center center;
  296. cursor: pointer;
  297. }
  298. .tab-content .bg-img section {
  299. padding: 10px 25px;
  300. position: absolute;
  301. bottom: 0;
  302. color: #fff;
  303. }
  304. .tab-content .bg-img section a {
  305. color: #fff;
  306. text-decoration: none;
  307. }
  308. .tab-content .bg-img section small {
  309. font-size: 12px;
  310. }
  311. /* news-tab.html End */
  312. /* news-all.html Start */
  313. .news-all .post-title {
  314. margin: 5px auto;
  315. }
  316. .news-all .post-title a {
  317. font-size: 36px;
  318. }
  319. .news-all .news-info a {
  320. font-size: 18px;
  321. }
  322. .news-all hr {
  323. margin: 1.5rem 0;
  324. }
  325. .news-all .first-img {
  326. height: 50vh;
  327. -o-object-fit: cover;
  328. object-fit: cover;
  329. }
  330. .news-all .line {
  331. padding: 0 12px;
  332. }
  333. /* news-all.html End */
  334. /* news-featured.html Start */
  335. .news-featured {
  336. position: sticky;
  337. top: 20px;
  338. }
  339. /* news-featured.html End *//*# sourceMappingURL=style.css.map */