web.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. //Font
  2. //@import url('https://fonts.loli.net/css?family=Noto+Sans+SC&subset=chinese-simplified');
  3. @font-face {
  4. font-family: 'Sans';
  5. font-display: swap;
  6. //src: local('Sans'), url(https://gstatic.loli.net/s/notosanssc/v4/k3kXo84MPvpLmixcA63oeALhLIiP-Q-8wKa0aH7rzeAODp22mF0qmF4CSjmPC7A0Uxsm5WwFiFwnP5fvK_0xhEZh4Gd8sfhdxEzc.119.woff2) format('woff2');
  7. }
  8. // Variables
  9. //@import 'variables';
  10. // Bootstrap
  11. @import '~bootstrap/scss/bootstrap';
  12. // Markdown GitHub Style
  13. @import '~github-markdown-css/github-markdown.css';
  14. /* Common*/
  15. body {
  16. min-height: 48rem;
  17. padding-top: 4.5rem;
  18. font-family: 'Sans', sans-serif;
  19. background-color: #fff;
  20. }
  21. h6 {
  22. font-size: 1.1rem;
  23. }
  24. a {
  25. text-decoration: none;
  26. }
  27. a:hover{
  28. text-decoration:none;
  29. }
  30. .badge {
  31. padding: 0.3rem;
  32. }
  33. .min-h {
  34. min-height: 48rem;
  35. }
  36. .btn-border-circle {
  37. border-radius: 2rem;
  38. }
  39. .overflow-slh {
  40. overflow: hidden;
  41. text-overflow: ellipsis;
  42. white-space: nowrap
  43. }
  44. .min-width-max-content {
  45. min-width: max-content;
  46. }
  47. /* stylelint-disable selector-list-comma-newline-after */
  48. h1, h2, h3, h4, h5, h6 {
  49. /*font-family: "Playfair Display", Georgia, "Times New Roman", serif;*/
  50. font-family: 'Noto Sans SC', sans-serif;
  51. color: #343a40;
  52. }
  53. .nav-scroller {
  54. position: relative;
  55. z-index: 2;
  56. height: 2.75rem;
  57. overflow-y: hidden;
  58. }
  59. .nav-scroller .nav {
  60. display: -webkit-box;
  61. display: -ms-flexbox;
  62. display: flex;
  63. -ms-flex-wrap: nowrap;
  64. flex-wrap: nowrap;
  65. padding-bottom: 1rem;
  66. margin-top: -1px;
  67. overflow-x: auto;
  68. text-align: center;
  69. white-space: nowrap;
  70. -webkit-overflow-scrolling: touch;
  71. }
  72. .nav-scroller .nav-link {
  73. padding-top: .75rem;
  74. padding-bottom: .75rem;
  75. font-size: .875rem;
  76. }
  77. .card-img-right {
  78. height: 100%;
  79. border-radius: 0 3px 3px 0;
  80. }
  81. .flex-auto {
  82. -ms-flex: 0 0 auto;
  83. -webkit-box-flex: 0;
  84. flex: 0 0 auto;
  85. }
  86. .h-250 {
  87. height: 250px;
  88. }
  89. @media (min-width: 768px) {
  90. .h-md-250 {
  91. height: 250px;
  92. }
  93. }
  94. .border-top {
  95. border-top: 1px solid #e5e5e5;
  96. }
  97. .border-bottom {
  98. border-bottom: 1px solid #e5e5e5;
  99. }
  100. .box-shadow {
  101. box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
  102. }
  103. /*
  104. * Blog name and description
  105. */
  106. .blog-title {
  107. margin-bottom: 0;
  108. font-size: 2rem;
  109. font-weight: 400;
  110. }
  111. .blog-description {
  112. font-size: 1.1rem;
  113. color: #999;
  114. }
  115. @media (min-width: 40em) {
  116. .blog-title {
  117. font-size: 3.5rem;
  118. }
  119. }
  120. /*
  121. * Blog posts
  122. */
  123. .blog-post {
  124. margin-bottom: 4rem;
  125. }
  126. .blog-post-title {
  127. margin-bottom: .25rem;
  128. font-size: 2rem;
  129. }
  130. .blog-post-meta {
  131. margin-bottom: 1.25rem;
  132. color: #999;
  133. }
  134. /*
  135. * Blog posts
  136. */
  137. /*
  138. * Footer
  139. */
  140. .blog-footer {
  141. padding: 1.5rem 0;
  142. color: #999;
  143. text-align: center;
  144. background-color: #f9f9f9;
  145. border-top: .05rem solid #e5e5e5;
  146. }
  147. .blog-footer p:last-child {
  148. margin-bottom: 0;
  149. }
  150. /*
  151. * home page album list
  152. */
  153. :root {
  154. --jumbotron-padding-y: 3rem;
  155. }
  156. .jumbotron {
  157. padding-top: var(--jumbotron-padding-y);
  158. padding-bottom: var(--jumbotron-padding-y);
  159. margin-bottom: 0;
  160. background-color: #fff;
  161. }
  162. @media (min-width: 768px) {
  163. .jumbotron {
  164. padding-top: calc(var(--jumbotron-padding-y) * 2);
  165. padding-bottom: calc(var(--jumbotron-padding-y) * 2);
  166. }
  167. }
  168. .jumbotron p:last-child {
  169. margin-bottom: 0;
  170. }
  171. .jumbotron-heading {
  172. font-weight: 300;
  173. }
  174. .jumbotron .container {
  175. max-width: 40rem;
  176. }
  177. footer {
  178. padding-top: 3rem;
  179. padding-bottom: 3rem;
  180. }
  181. footer p {
  182. margin-bottom: .25rem;
  183. }
  184. .box-shadow {
  185. box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
  186. }
  187. /* Links Card */
  188. .card-columns {
  189. @include media-breakpoint-only(lg) {
  190. column-count: 4;
  191. }
  192. @include media-breakpoint-only(xl) {
  193. column-count: 5;
  194. }
  195. }
  196. /* Markdown */
  197. .markdown-body {
  198. font-family: 'Sans', sans-serif;
  199. }