style.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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: -webkit-sticky;
  177. position: sticky;
  178. top: 15px;
  179. }
  180. .news-sidebar .news-featured {
  181. position: unset;
  182. }
  183. .search-btn {
  184. border: 1px solid var(--main-color) !important;
  185. }
  186. .search-btn svg {
  187. color: var(--main-color);
  188. }
  189. .search-btn:hover {
  190. background-color: var(--main-color) !important;
  191. }
  192. .search-btn:hover svg {
  193. color: #fff;
  194. }
  195. .tags {
  196. margin: 0 5px 5px 0;
  197. padding: 7px 10px !important;
  198. font-size: 14px !important;
  199. font-weight: 400 !important;
  200. color: var(--main-color) !important;
  201. border: 1px solid var(--main-color) !important;
  202. }
  203. .tags:hover {
  204. color: #fff !important;
  205. background-color: var(--main-color);
  206. }
  207. /* sidebar.html End */
  208. /* single.html Start */
  209. .blog-post.content h4 {
  210. font-size: 16px;
  211. font-weight: 300;
  212. line-height: 32px;
  213. }
  214. .blog-post.content h4 a {
  215. padding: 5px 8px;
  216. margin-right: 3px;
  217. border: 1px solid #000;
  218. border-radius: 5px;
  219. font-size: 14px;
  220. }
  221. .blog-post.content h4 a:hover {
  222. color: #fff !important;
  223. }
  224. .blog-post.content .back-link {
  225. color: #000;
  226. display: block;
  227. text-align: center;
  228. text-decoration: none;
  229. transition: all 0.3s;
  230. }
  231. .blog-post.content .back-link:hover {
  232. opacity: 0.7;
  233. }
  234. /* single.html End */
  235. /* content.html Start */
  236. .news-main {
  237. height: 100%;
  238. overflow: hidden;
  239. }
  240. .news-main .post-title a {
  241. font-size: 34px;
  242. }
  243. .news-main img {
  244. height: 100%;
  245. -o-object-fit: cover;
  246. object-fit: cover;
  247. }
  248. .news-main .news-info a {
  249. font-size: 16px;
  250. }
  251. /* content.html End */
  252. /* focus.html Start */
  253. .focus-content {
  254. position: -webkit-sticky;
  255. position: sticky;
  256. top: 20px;
  257. }
  258. /* focus.html End */
  259. /* recent.html Start */
  260. .recent-content .news-list {
  261. margin: 0;
  262. }
  263. .recent-content .news-list li {
  264. margin: 15px 0;
  265. }
  266. .recent-content .news-list li img {
  267. width: 140px;
  268. height: 105px;
  269. -o-object-fit: cover;
  270. object-fit: cover;
  271. }
  272. .recent-content .news-list li small {
  273. display: block;
  274. }
  275. .recent-content .news-list li .news-info {
  276. margin-top: 0px;
  277. }
  278. .recent-content .news-list li:last-child {
  279. margin: 0;
  280. }
  281. /* recent.html End */
  282. /* news-tab.html Start */
  283. .tab-category .nav-link {
  284. color: var(--main-color);
  285. font-weight: 500;
  286. }
  287. .tab-category .nav-pills .nav-link.active,
  288. .tab-category .nav-pills .show > .nav-link {
  289. color: var(--sub-color);
  290. background-color: var(--main-color);
  291. }
  292. .tab-content .bg-img {
  293. position: relative;
  294. height: 370px;
  295. background-blend-mode: multiply;
  296. background-size: cover;
  297. background-position: center center;
  298. cursor: pointer;
  299. }
  300. .tab-content .bg-img section {
  301. padding: 10px 25px;
  302. position: absolute;
  303. bottom: 0;
  304. color: #fff;
  305. }
  306. .tab-content .bg-img section a {
  307. color: #fff;
  308. text-decoration: none;
  309. }
  310. .tab-content .bg-img section small {
  311. font-size: 12px;
  312. }
  313. /* news-tab.html End */
  314. /* news-all.html Start */
  315. .news-all .post-title {
  316. margin: 5px auto;
  317. }
  318. .news-all .post-title a {
  319. font-size: 36px;
  320. }
  321. .news-all .news-info a {
  322. font-size: 18px;
  323. }
  324. .news-all hr {
  325. margin: 1.5rem 0;
  326. }
  327. .news-all .first-img {
  328. height: 50vh;
  329. -o-object-fit: cover;
  330. object-fit: cover;
  331. }
  332. .news-all .line {
  333. padding: 0 12px;
  334. }
  335. /* news-all.html End */
  336. /* news-featured.html Start */
  337. .news-featured {
  338. position: -webkit-sticky;
  339. position: sticky;
  340. top: 20px;
  341. }
  342. /* news-featured.html End *//*# sourceMappingURL=style.css.map */