style.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /* 共通樣式 */
  2. :root {
  3. --main-color: cadetblue;
  4. }
  5. * {
  6. letter-spacing: 1px;
  7. font-weight: 300;
  8. font-family: "Noto Sans TC", sans-serif !important;
  9. }
  10. .navbar {
  11. background-color: var(--main-color) !important;
  12. .navbar-collapse {
  13. flex-grow: 0;
  14. }
  15. }
  16. p,
  17. li {
  18. line-height: 32px;
  19. }
  20. ul {
  21. list-style: none;
  22. }
  23. img {
  24. width: 100%;
  25. height: auto;
  26. }
  27. html,
  28. body {
  29. height: 100%;
  30. margin: 0;
  31. }
  32. body {
  33. display: flex;
  34. flex-direction: column;
  35. }
  36. .btn:focus,
  37. .form-control:focus {
  38. border-color: var(--main-color) !important;
  39. box-shadow: none !important;
  40. outline: 0 none !important;
  41. }
  42. .badge {
  43. font-weight: 400 !important;
  44. }
  45. .blog-post-tags {
  46. .badge {
  47. background-color: var(--main-color);
  48. &:hover {
  49. color: var(--main-color);
  50. background-color: #fff;
  51. border: 1px solid var(--main-color);
  52. }
  53. }
  54. }
  55. .blog-post-title {
  56. text-align: center;
  57. margin-bottom: 30px;
  58. a {
  59. font-weight: 500;
  60. }
  61. }
  62. .blog-post.content {
  63. h4 {
  64. font-size: 16px;
  65. font-weight: 300;
  66. line-height: 32px;
  67. a {
  68. padding: 5px 8px;
  69. margin-right: 3px;
  70. border: 1px solid #000;
  71. border-radius: 5px;
  72. font-size: 14px;
  73. &:hover {
  74. color: #fff !important;
  75. }
  76. }
  77. }
  78. .back-link {
  79. color: #000;
  80. display: block;
  81. text-align: center;
  82. text-decoration: none;
  83. transition: all 0.3s;
  84. &:hover {
  85. opacity: 0.7;
  86. }
  87. }
  88. }
  89. /* Sidebar */
  90. .search-btn {
  91. border: 1px solid var(--main-color) !important;
  92. svg {
  93. color: var(--main-color);
  94. }
  95. &:hover {
  96. background-color: var(--main-color) !important;
  97. svg {
  98. color: #fff;
  99. }
  100. }
  101. }
  102. .tags {
  103. margin: 0 5px 5px 0;
  104. padding: 7px 10px !important;
  105. font-size: 14px !important;
  106. font-weight: 400 !important;
  107. color: var(--main-color) !important;
  108. border: 1px solid var(--main-color) !important;
  109. &:hover {
  110. color: #fff !important;
  111. background-color: var(--main-color);
  112. }
  113. }
  114. .content-list {
  115. a {
  116. color: #000;
  117. text-decoration: none;
  118. transition: all 0.3s;
  119. &:hover {
  120. color: var(--main-color);
  121. }
  122. }
  123. h2 {
  124. font-size: 20px;
  125. }
  126. section {
  127. h4 {
  128. font-size: 14px;
  129. font-weight: 300;
  130. }
  131. h4:first-child {
  132. white-space: nowrap;
  133. }
  134. h4:last-child {
  135. width: 80%;
  136. }
  137. }
  138. }
  139. .list-unstyled {
  140. a {
  141. font-weight: 400;
  142. text-decoration: none;
  143. color: var(--main-color);
  144. transition: all 0.3s;
  145. &:hover {
  146. opacity: 0.7;
  147. }
  148. }
  149. }
  150. .pagination {
  151. justify-content: center;
  152. .page-link {
  153. color: var(--main-color);
  154. }
  155. .page-item.active .page-link {
  156. z-index: 3;
  157. color: #fff;
  158. background-color: var(--main-color);
  159. border-color: var(--main-color);
  160. }
  161. }