style.css 7.8 KB

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