您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

427 行
6.2KB

  1. @font-face {
  2. font-family: 'Inter';
  3. font-display: auto;
  4. font-style: normal;
  5. font-weight: 400;
  6. src: url("https://rsms.me/inter/font-files/Inter-Regular.woff2") format("woff2"),
  7. url("https://rsms.me/inter/font-files/Inter-Regular.woff") format("woff");
  8. }
  9. @font-face {
  10. font-family: 'Inter';
  11. font-display: auto;
  12. font-style: normal;
  13. font-weight: 500;
  14. src: url("https://rsms.me/inter/font-files/Inter-Medium.woff2") format("woff2"),
  15. url("https://rsms.me/inter/font-files/Inter-Medium.woff") format("woff");
  16. }
  17. body {
  18. font-family: "Inter", sans-serif;
  19. font-weight: 400;
  20. color: #333;
  21. line-height: 1.8em;
  22. font-size: 17px;
  23. }
  24. a {
  25. color: #3700ff;
  26. text-decoration: none;
  27. word-break: break-word;
  28. }
  29. a:hover {
  30. border-bottom: 2px solid #3700ff;
  31. }
  32. html,button,input,select,textarea {
  33. color: #333;
  34. }
  35. ::-moz-selection {
  36. background: #3700ff;
  37. text-shadow: none;
  38. color: #fff;
  39. }
  40. ::selection {
  41. background: #3700ff;
  42. text-shadow: none;
  43. color: #fff;
  44. }
  45. hr {
  46. display: block;
  47. height: 1px;
  48. border: 0;
  49. border-top: 1px solid #ccc;
  50. margin: 1rem 0;
  51. padding: 0;
  52. }
  53. img {
  54. margin: 10px auto 10px auto;
  55. max-width: 100%;
  56. display: block;
  57. }
  58. a img {
  59. border:none;
  60. }
  61. figure {
  62. margin: 0;
  63. text-align: center;
  64. }
  65. fieldset {
  66. border: 0;
  67. margin: 0;
  68. padding: 0;
  69. }
  70. textarea {
  71. resize: vertical;
  72. }
  73. blockquote {
  74. margin-left: 1rem;
  75. font-style: italic;
  76. font-size: 1.4rem;
  77. font-family: Georgia,bitstream charter,serif;
  78. border-left: 3px solid;
  79. border-color: #3700ff;
  80. padding-left: 20px;
  81. }
  82. blockquote cite {
  83. font-size: 70%;
  84. opacity: .8;
  85. }
  86. blockquote em {
  87. font-weight: 600;
  88. }
  89. h1, h2, h3, h4, h5, h6 {
  90. color: #333;
  91. font-weight: 500;
  92. line-height: 1.3em;
  93. margin: 30px 0 20px 0;
  94. }
  95. h1 {
  96. font-size: 2.75rem;
  97. }
  98. h2 {
  99. font-size: 2rem;
  100. }
  101. h3 {
  102. font-size: 1.6rem;
  103. }
  104. h4 {
  105. font-size: 1.2rem;
  106. }
  107. h5 {
  108. font-size: 1rem;
  109. }
  110. h6 {
  111. font-size: .9rem;
  112. }
  113. .align-center {
  114. text-align: center;
  115. }
  116. .align-left {
  117. text-align: left;
  118. }
  119. .align-right {
  120. text-align: right;
  121. }
  122. ul {
  123. padding-left: 15px;
  124. }
  125. ul.flat {
  126. margin: 0;
  127. padding: 0;
  128. }
  129. ul.flat li {
  130. display: inline-block;
  131. list-style: none;
  132. margin-left: 0;
  133. }
  134. .prevent-collapse {
  135. min-height: .1rem
  136. }
  137. .smaller {
  138. font-size: 70%;
  139. }
  140. ul {
  141. list-style: disc inside;
  142. }
  143. .post ul li {
  144. margin-bottom: 10px;
  145. }
  146. .post ul li p {
  147. display: inline;
  148. }
  149. .highlight pre {
  150. margin-bottom: 0;
  151. margin-top: 0;
  152. padding: 20px;
  153. background-color: transparent !important;
  154. }
  155. .highlight {
  156. background: 0 0;
  157. background-color: #FAFAFA;
  158. }
  159. .wrapper {
  160. max-width: 760px;
  161. margin: 0 auto;
  162. }
  163. .container {
  164. max-width: 800px;
  165. margin-top: 50px;
  166. }
  167. .header {
  168. margin-bottom: 20px;
  169. padding-bottom: 20px;
  170. }
  171. .header .avatar {
  172. float: left;
  173. margin: -25px 20px 0 0;
  174. }
  175. .header .avatar img {
  176. width: 64px;
  177. height: 64px;
  178. overflow: hidden;
  179. border-radius: 100%;
  180. }
  181. .header .site-title {
  182. margin: 0 0 10px 0;
  183. line-height: 0.2em;
  184. }
  185. .site-title a {
  186. color: #333;
  187. text-decoration: none !important;
  188. }
  189. .site-title a:hover {
  190. border-bottom-width: 3px;
  191. }
  192. .header .site-description {
  193. display: flex;
  194. justify-content: space-between;
  195. }
  196. .header nav {
  197. border-top: 1px solid #eee;
  198. padding-top: 15px;
  199. }
  200. .header nav ul,
  201. .header nav li {
  202. margin: 0;
  203. padding: 0;
  204. }
  205. .header nav li {
  206. display: inline-block;
  207. list-style: none;
  208. margin: 0 30px 0 0;
  209. }
  210. .header nav.social a {
  211. color: #333;
  212. }
  213. .header nav.social a:hover {
  214. color: #3700ff;
  215. }
  216. .header .site-description nav {
  217. margin: 0;
  218. padding: 0;
  219. border: none;
  220. min-width: 50px;
  221. margin-left: 15px;
  222. }
  223. .header .site-description nav ul svg {
  224. max-height: 15px;
  225. }
  226. .section .section-header {
  227. font-size: 0.75rem;
  228. font-weight: 600;
  229. text-transform: uppercase;
  230. color: #999;
  231. margin-bottom: 20px;
  232. letter-spacing: 1px;
  233. }
  234. .recent-posts .posts .post {
  235. margin-bottom: 45px;
  236. }
  237. .post-header {
  238. display: flex;
  239. }
  240. .post-header .meta .date {
  241. margin-right: 30px;
  242. width: 64px;
  243. text-align: center;
  244. }
  245. .post-header .meta .date .day {
  246. font-family: "Playfair Display", serif;
  247. font-weight: 700;
  248. line-height: 0.45em;
  249. font-size: 3em;
  250. display: block;
  251. margin-bottom: 20px;
  252. }
  253. .post-header .meta .date .rest {
  254. display: block;
  255. font-size: 0.75em;
  256. }
  257. .post-header h1.title {
  258. margin: -10px 0 0 0;
  259. }
  260. .post .title.small {
  261. margin: 0 0 10px 0;
  262. }
  263. .post .post-header {
  264. margin-bottom: 30px;
  265. }
  266. .post .draft-label {
  267. color: #3700ff;
  268. text-decoration: none;
  269. padding: 2px 4px;
  270. border-radius: 4px;
  271. margin-left: 6px;
  272. background-color: #f9f2f4;
  273. }
  274. .post .tags a {
  275. display: inline-block;
  276. border: 1px solid #3700ff;
  277. border-radius: 3px;
  278. padding: 0px 6px;
  279. color: #3700ff;
  280. line-height: 20px;
  281. font-size: 0.85em;
  282. text-decoration: none;
  283. margin: 0 10px 0 0;
  284. }
  285. .list .posts .post-header .meta {
  286. margin-bottom: 0;
  287. margin-left: 5px;
  288. }
  289. .footer {
  290. text-align: right;
  291. font-size: 0.75em;
  292. color: #999;
  293. border-top: 1px solid #f4f4f4;
  294. margin-top: 40px;
  295. padding: 15px 0;
  296. }
  297. .footer a {
  298. color: #666;
  299. }
  300. .footer a:hover {
  301. color: #3700ff;
  302. }
  303. .tag-cloud {
  304. margin-top: 20px;
  305. }
  306. .tag-cloud a {
  307. margin-right: 15px;
  308. }
  309. .pagination {
  310. margin: 0;
  311. padding: 0;
  312. text-align: left;
  313. display: flex;
  314. justify-content: space-between;
  315. }
  316. .pagination li {
  317. list-style: none;
  318. display: inline-block;
  319. margin: 0;
  320. padding: 0;
  321. }
  322. .pagination .page-prev {
  323. margin-right: 20px;
  324. padding-right: 20px;
  325. }
  326. .pagination .page-item.page-prev {
  327. text-align: left;
  328. }
  329. .pagination .page-item.page-next {
  330. text-align: right;
  331. }
  332. @media (max-width: 767px) {
  333. body {
  334. padding: 20px;
  335. }
  336. h1 {
  337. font-size: 1.8rem;
  338. }
  339. h2 {
  340. font-size: 1.6rem;
  341. }
  342. h3 {
  343. font-size: 1.2rem;
  344. }
  345. h4 {
  346. font-size: 1rem;
  347. }
  348. .container {
  349. margin-top: 10px;
  350. }
  351. .header .nav.social li {
  352. margin: 0;
  353. }
  354. .header .nav li {
  355. margin: 0 10px 0 0;
  356. font-size: 14px;
  357. }
  358. }