extra.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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: 'PT Code';
  37. src: url('https://raw.githubusercontent.com/liangjingkanji/PTCode/master/font/PTCode-Regular.ttf') format('truetype');
  38. font-weight: normal;
  39. font-style: normal;
  40. }
  41. * {
  42. -webkit-font-feature-settings: "liga" on, "calt" on;
  43. -webkit-font-smoothing: subpixel-antialiased;
  44. text-rendering: optimizeLegibility;
  45. font-family: 'PT Code' !important;
  46. }
  47. /*布局*/
  48. .md-grid {
  49. max-width: 120em !important;
  50. }
  51. /*表格*/
  52. .md-typeset__table {
  53. display: block;
  54. padding: 0 .8rem;
  55. margin: 1em 0;
  56. }
  57. table tr:nth-child(2n), thead {
  58. background-color: #fafafa;
  59. }
  60. .md-typeset table:not([class]) {
  61. border-collapse: collapse;
  62. border-spacing: 0px;
  63. width: 100%;
  64. break-inside: auto;
  65. text-align: left;
  66. display: table;
  67. box-shadow:none;
  68. font-size: 12px;
  69. }
  70. .md-typeset table:not([class]) th {
  71. border: 1px solid #dfe2e5;
  72. background-color: #f2f2f2;
  73. padding: 6px 13px;
  74. font-weight: bold;
  75. color: var(--md-typeset-color);
  76. }
  77. .md-typeset table:not([class]) td {
  78. border: 1px solid #dfe2e5;
  79. }
  80. /*引用*/
  81. .md-typeset blockquote {
  82. color: inherit;
  83. padding: 10px 16px;
  84. background-color: #fdefee;
  85. position: relative;
  86. border-left: none;
  87. margin: 2em 0;
  88. }
  89. .md-typeset blockquote p {
  90. margin: 0 0 !important;
  91. }
  92. .md-typeset blockquote:before {
  93. display: block;
  94. position: absolute;
  95. content: '';
  96. width: 4px;
  97. left: 0;
  98. top: 0;
  99. height: 100%;
  100. background-color:var(--drake-accent);
  101. border-radius: 4px;
  102. }
  103. /*字间距*/
  104. .md-typeset {
  105. line-height: 1.8;
  106. font-size: 12px;
  107. }
  108. .md-typeset pre {
  109. line-height: 1.6;
  110. }
  111. /*标签*/
  112. .md-typeset .tabbed-set>label {
  113. border-bottom: 2px solid transparent;
  114. color: var(--md-typeset-color);
  115. line-height: 1.3;
  116. font-size: 12px;
  117. margin-bottom: .8em;
  118. font-weight:normal;
  119. }
  120. .md-typeset .tabbed-set>input:checked+label {
  121. font-weight:500;
  122. line-height: 1.3;
  123. margin-bottom: .8em;
  124. }
  125. /*侧边导航*/
  126. .md-nav__item .md-nav__link--active {
  127. color: var(--drake-highlight);
  128. font-weight:500;
  129. }
  130. .md-nav__title[for="__drawer"] {
  131. display: none;
  132. }
  133. div .md-source__fact {
  134. display: none;
  135. }
  136. .md-source__icon+.md-source__repository {
  137. margin-left: -1em;
  138. padding-left: 0;
  139. font-weight: 500;
  140. }
  141. .md-nav__link {
  142. font-size: 12px;
  143. line-height: 1.6;
  144. }
  145. /*代码块*/
  146. .md-typeset code {
  147. font-size: inherit;
  148. border-radius: 2px !important;
  149. border: none !important;
  150. }
  151. .md-typeset pre>code {
  152. padding: 0.8em 0.8em;
  153. }
  154. /*代码片段*/
  155. p code, article > code, li > code, td > code, th > code, a > code {
  156. background-color: rgb(0,0,0,0) !important;
  157. color: var(--drake-highlight) !important;
  158. padding: 0 2px !important;
  159. }
  160. img {
  161. border-radius: 2px;
  162. margin: 4px 0;
  163. }
  164. /*链接*/
  165. .md-content a {
  166. color: var(--drake-highlight) !important;
  167. text-decoration: underline;
  168. margin: 0 2px;
  169. }
  170. /*编辑按钮*/
  171. .md-typeset .md-content__button {
  172. color: var(--md-default-fg-color--lighter) !important;
  173. }
  174. .md-icon svg {
  175. width: 14px;
  176. }
  177. /*标题*/
  178. h1, h2, h3, h4, h5, h6, .md-header-nav__title {
  179. font-weight: bold !important;
  180. color: #273849;
  181. }
  182. .md-typeset h1 {
  183. text-align: center;
  184. font-size: 1.45em;
  185. color:#273849;
  186. }
  187. .md-typeset h2 {
  188. display: inline-block;
  189. font-size: 1.45em;
  190. }
  191. h2:after {
  192. display: block;
  193. content: '';
  194. height: 2px;
  195. margin-top: 4px;
  196. background-color:#273849;
  197. border-radius: 2px;
  198. margin-right: 1.1em;
  199. }
  200. /*清单*/
  201. .md-typeset [type=checkbox]:checked+.task-list-indicator:before {
  202. background-color: #43A047;
  203. }
  204. .md-typeset .task-list-indicator:before {
  205. background-color: #c7c7c7;
  206. }
  207. .md-typeset .task-list-control {
  208. margin-right: 8px;
  209. }
  210. /*复制图标*/
  211. .md-clipboard:after {
  212. background-color: #4d4d4d;
  213. }