var.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. :root {
  2. --vp-code-block-bg: #f9fafb;
  3. /* --vp-code-block-bg: var(--vp-c-bg-alt); */
  4. --vp-code-line-highlight-color: rgba(0, 0, 0, 0.5);
  5. --vp-code-line-number-color: var(--vp-c-text-dark-3);
  6. --vp-code-copy-code-hover-bg: rgba(255, 255, 255, 0.05);
  7. --vp-code-copy-code-active-text: var(--vp-c-bg-alt);
  8. --demi-border-color: #ebedf1;
  9. }
  10. html, body, * {
  11. font-family: inherit;
  12. }
  13. .dark {
  14. --vp-code-block-bg: var(--vp-c-bg-alt);
  15. }
  16. .VPDocFooter {
  17. display: none;
  18. }
  19. .vp-doc [class*='language-'] pre code span {
  20. font-style: initial !important;
  21. }
  22. .vp-doc [class*='language-']:before {
  23. color: var(--vp-c-text-2);
  24. }
  25. @media (min-width: 640px) {
  26. .vp-doc div[class*='language-'] {
  27. border-radius: 4px;
  28. margin: 16px 0;
  29. }
  30. }
  31. @media (max-width: 639px) {
  32. .vp-doc div[class*='language-'] {
  33. border-radius: 4px;
  34. }
  35. }
  36. @media (min-width: 960px) {
  37. .VPContent .content {
  38. padding: 0 32px 32px;
  39. }
  40. }
  41. .vp-doc table:not([class*='el-table']) {
  42. display: table;
  43. width: 100%;
  44. font-size: 15px;
  45. }
  46. .vp-doc table:not([class*='el-table']) tr {
  47. border-top: 1px solid var(--demi-border-color);
  48. }
  49. .vp-doc table:not([class*='el-table']) tr:nth-child(2n) {
  50. background-color: unset;
  51. }
  52. .vp-doc table:not([class*='el-table']) th,
  53. .vp-doc table:not([class*='el-table']) td {
  54. border: 1px solid var(--demi-border-color);
  55. padding: 10px 20px;
  56. }
  57. .vp-doc table:not([class*='el-table']) th {
  58. font-size: 15px;
  59. font-weight: 600;
  60. background-color: var(--vp-c-white-soft);
  61. }
  62. .vp-doc table:not([class*='el-table']) td:first-child {
  63. font-size: 15px;
  64. font-weight: 600;
  65. }
  66. .vp-code-group .tabs {
  67. background-color: #292b30;
  68. }
  69. .vp-code-group .tabs label {
  70. color: rgba(235, 235, 245, .6);
  71. }
  72. .vp-code-group input:checked + label {
  73. color: white;
  74. }
  75. .vp-code-group input:checked + label:after {
  76. background-color: #10b981;
  77. }
  78. .vp-code-group .tabs:after {
  79. background-color: #000000;
  80. }
  81. .demo-bg-body .vitepress-demo .demo-slot {
  82. background-color: #F1F5F8;
  83. }
  84. .demo-platforms a {
  85. display: none !important;
  86. }
  87. @media (min-width: 1710px) {
  88. #app .Layout .VPSidebar{
  89. padding-left: 32px;
  90. width: var(--vp-sidebar-width);
  91. }
  92. #app .Layout .VPContent.has-sidebar{
  93. padding-right: 0;
  94. padding-left: var(--vp-sidebar-width);
  95. }
  96. #app .Layout .VPDoc.has-aside .content-container {
  97. max-width: inherit;
  98. }
  99. .VPDoc:not([class*='has-sidebar']) .container {
  100. max-width: inherit;
  101. }
  102. .VPDoc:not([class*='has-sidebar']) .container .content {
  103. max-width: inherit;
  104. }
  105. #app .Layout .VPNavBar.has-sidebar div.title{
  106. padding-left: 32px;
  107. width: var(--vp-sidebar-width);
  108. }
  109. #app .Layout .VPNavBar.has-sidebar .content{
  110. padding-right: 32px;
  111. padding-left: var(--vp-sidebar-width);
  112. }
  113. }
  114. .vp-doc ul[class*='el-pager'] {
  115. padding-left: initial;
  116. }
  117. .vp-doc table[class*='el-table'] {
  118. display: initial;
  119. border-collapse: separate;
  120. margin: initial;
  121. overflow-x: initial;
  122. }
  123. .vp-doc table[class*='el-table'] tr {
  124. border-top: none;
  125. transition: initial;
  126. }
  127. .vp-doc table[class*='el-table'] th {
  128. text-align: inherit;
  129. font-size: inherit;
  130. font-weight: inherit;
  131. color: inherit;
  132. background-color: var(--el-table-header-bg-color);
  133. }
  134. .VPNavBar.has-sidebar .curtain {
  135. display: none;
  136. }