var.css 3.1 KB

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