extra.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. :root > * {
  2. --md-code-fg-color: #A9B7C6;
  3. --md-code-bg-color: #2b2b2b;
  4. --md-code-hl-color: #214283;
  5. --md-code-hl-number-color: #82AAFF;
  6. --md-code-hl-special-color: #A9B7C6;
  7. --md-code-hl-function-color: #FFE64C;
  8. --md-code-hl-constant-color: hsla(250, 70%, 64%, 1);
  9. --md-code-hl-keyword-color: #CC7832;
  10. --md-code-hl-string-color: #6A8759;
  11. --md-code-hl-name-color: var(--md-code-fg-color);
  12. --md-code-hl-operator-color: #A9B7C6;
  13. --md-code-hl-punctuation-color: #A9B7C6;
  14. --md-code-hl-comment-color: #787878;
  15. --md-code-hl-generic-color: #A9B7C6;
  16. --md-code-hl-variable-color: #A9B7C6;
  17. --md-typeset-color: #333333;
  18. --drake-highlight: #d63200;
  19. --drake-accent: #e95f59;
  20. --drake-highlight-opacity: #d6320022;
  21. --md-admonition-fg-color: #333333;
  22. }
  23. [data-md-color-scheme="drake"] {
  24. --md-primary-fg-color: hsla(0, 0%, 100%, 1);
  25. --md-primary-fg-color--light: hsla(0, 0%, 100%, 0.7);
  26. --md-primary-fg-color--dark: hsla(0, 0%, 0%, 0.07);
  27. --md-primary-bg-color: hsla(0, 0%, 0%, 0.87);
  28. --md-primary-bg-color--light: hsla(0, 0%, 0%, 0.54);
  29. --md-accent-fg-color: #d63200;
  30. --md-accent-fg-color--light: #d63200;
  31. --md-accent-fg-color--dark: #d63200;
  32. --md-typeset-a-color: #d63200 !important;
  33. }
  34. /*字体渲染*/
  35. @font-face{
  36. font-family: 'JetBrains Mono';
  37. src: local('JetBrains Mono'),
  38. url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/webfonts/JetBrainsMono-Regular.woff2') format('woff2'),
  39. url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/ttf/JetBrainsMono-Regular.ttf') format('truetype');
  40. font-weight: normal;
  41. font-style: normal;
  42. }
  43. * {
  44. -webkit-font-feature-settings: "liga" on, "calt" on;
  45. -webkit-font-smoothing: subpixel-antialiased;
  46. text-rendering: optimizeLegibility;
  47. font-family: 'JetBrains Mono' !important;
  48. text-shadow: #33333333 0px 0px 1px !important;
  49. }
  50. /*布局*/
  51. .md-grid {
  52. max-width: 120em !important;
  53. }
  54. /*表格*/
  55. .md-typeset__table {
  56. display: block;
  57. padding: 0 .8rem;
  58. margin: 1em 0;
  59. }
  60. table tr:nth-child(2n), thead {
  61. background-color: #fafafa;
  62. }
  63. .md-typeset table:not([class]) {
  64. border-collapse: collapse;
  65. border-spacing: 0px;
  66. width: 100%;
  67. break-inside: auto;
  68. text-align: left;
  69. display: table;
  70. box-shadow:none;
  71. font-size: 12px;
  72. }
  73. .md-typeset table:not([class]) th {
  74. border: 1px solid #dfe2e5;
  75. background-color: #f2f2f2;
  76. padding: 6px 13px;
  77. font-weight: bold;
  78. color: var(--md-typeset-color);
  79. }
  80. .md-typeset table:not([class]) td {
  81. border: 1px solid #dfe2e5;
  82. }
  83. /*引用*/
  84. .md-typeset blockquote {
  85. color: inherit;
  86. padding: 10px 16px;
  87. background-color: #fdefee;
  88. position: relative;
  89. border-left: none;
  90. margin: 2em 0;
  91. }
  92. .md-typeset blockquote p {
  93. margin: 0 0 !important;
  94. }
  95. .md-typeset blockquote:before {
  96. display: block;
  97. position: absolute;
  98. content: '';
  99. width: 4px;
  100. left: 0;
  101. top: 0;
  102. height: 100%;
  103. background-color:var(--drake-accent);
  104. border-radius: 4px;
  105. }
  106. /*字间距*/
  107. .md-typeset {
  108. line-height: 1.8;
  109. font-size: 12px;
  110. }
  111. .md-typeset pre {
  112. line-height: 1.6;
  113. }
  114. /*标签*/
  115. .md-typeset .tabbed-set>label {
  116. border-bottom: 2px solid transparent;
  117. color: var(--md-typeset-color);
  118. line-height: 1.3;
  119. font-size: 12px;
  120. margin-bottom: .8em;
  121. font-weight:normal;
  122. }
  123. .md-typeset .tabbed-set>input:checked+label {
  124. font-weight:500;
  125. line-height: 1.3;
  126. margin-bottom: .8em;
  127. }
  128. /*侧边导航*/
  129. .md-nav__item .md-nav__link--active {
  130. color: var(--drake-highlight);
  131. font-weight:500;
  132. }
  133. .md-nav__title[for="__drawer"] {
  134. display: none;
  135. }
  136. div .md-source__fact {
  137. display: none;
  138. }
  139. .md-source__icon+.md-source__repository {
  140. margin-left: -1em;
  141. padding-left: 0;
  142. font-weight: 500;
  143. }
  144. .md-nav__link {
  145. font-size: 12px;
  146. line-height: 1.6;
  147. }
  148. /*代码块*/
  149. .md-typeset code {
  150. font-size: inherit;
  151. border-radius: 2px !important;
  152. border: none !important;
  153. }
  154. .md-typeset pre>code {
  155. padding: 0.8em 0.8em;
  156. }
  157. code span::selection {
  158. background: #214283;
  159. }
  160. .highlight code::selection {
  161. background: #214283;
  162. }
  163. /*代码片段*/
  164. p code, article > code, li > code, td > code, th > code, a > code {
  165. background-color: rgb(0,0,0,0) !important;
  166. color: var(--drake-highlight) !important;
  167. padding: 0 2px !important;
  168. }
  169. img {
  170. border-radius: 2px;
  171. margin: 4px 0;
  172. }
  173. /*链接*/
  174. .md-content a {
  175. color: var(--drake-highlight) !important;
  176. text-decoration: underline;
  177. margin: 0 2px;
  178. }
  179. /*编辑按钮*/
  180. .md-typeset .md-content__button {
  181. color: var(--md-default-fg-color--lighter) !important;
  182. }
  183. .md-icon svg {
  184. width: 14px;
  185. }
  186. /*标题*/
  187. h1, h2, h3, h4, h5, h6, .md-header-nav__title {
  188. font-weight: bold !important;
  189. color: #273849;
  190. }
  191. .md-typeset h1 {
  192. text-align: center;
  193. font-size: 1.45em;
  194. color:#273849;
  195. }
  196. .md-typeset h2 {
  197. display: inline-block;
  198. font-size: 1.45em;
  199. }
  200. h2:after {
  201. display: block;
  202. content: '';
  203. height: 2px;
  204. margin-top: 4px;
  205. background-color:#273849;
  206. border-radius: 2px;
  207. margin-right: 1.1em;
  208. }
  209. /*清单*/
  210. .md-typeset [type=checkbox]:checked+.task-list-indicator:before {
  211. background-color: #43A047;
  212. }
  213. .md-typeset .task-list-indicator:before {
  214. background-color: #c7c7c7;
  215. }
  216. .md-typeset .task-list-control {
  217. margin-right: 8px;
  218. }
  219. /*复制图标*/
  220. .md-clipboard:after {
  221. background-color: #4d4d4d;
  222. }
  223. /*头部*/
  224. .md-ellipsis {
  225. font-weight: bolder;
  226. }