global.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. .rspress-doc-container:not(:has(.aside-container_edeb4)) .rspress-doc {
  6. width: auto;
  7. max-width: 1400px;
  8. }
  9. .rspress-doc-container:not(:has(.aside-container_edeb4)) .rspress-doc-footer {
  10. width: auto;
  11. max-width: 1400px;
  12. }
  13. .sp-preview {
  14. height: 100% !important;
  15. }
  16. //.medium-zoom-image {
  17. // width: 100%;
  18. //}
  19. .gedit-playground .medium-zoom-image {
  20. pointer-events: none;
  21. }
  22. .rs-table {
  23. width: 100%;
  24. }
  25. .rs-table td {
  26. padding: 8px;
  27. border: 1px solid var(--rp-c-divider-light);
  28. }
  29. .rs-table img {
  30. max-height: 500px;
  31. max-width: 500px;
  32. }
  33. .rs-table td:first-child {
  34. width: 20%;
  35. }
  36. .rs-center {
  37. display: flex;
  38. justify-content: center;
  39. align-items: center;
  40. }
  41. .rs-tip {
  42. color: var(--rp-c-text-2);
  43. border-left: 2px solid #ccc;
  44. padding: 0 8px;
  45. margin: 16px 0;
  46. }
  47. .rs-highlight {
  48. border: 1px solid var(--rp-container-warning-border);
  49. background-color: var(--rp-container-warning-bg);
  50. padding: 12px 24px;
  51. font-size: 14px;
  52. font-weight: 400;
  53. line-height: 1.7;
  54. border-radius: var(--rp-radius);
  55. color: var(--rp-c-text-1);
  56. }
  57. .rs-link {
  58. color: var(--rp-c-link);
  59. }
  60. .rs-red {
  61. color: var(--rp-container-danger-text);
  62. }
  63. .light-mode {
  64. color-scheme: light;
  65. --background-color: #ffffff !important; /* 强制使用浅色背景 */
  66. --text-color: #000000 !important; /* 强制使用深色文本 */
  67. --rp-c-bg: #fff !important;
  68. --rp-c-text-1: #000000 !important; /* 强制使用深色文本 */
  69. button {
  70. background: transparent;
  71. }
  72. }
  73. .preview-ediitor {
  74. button {
  75. color: #000000e6;
  76. background: #e1e3e4;
  77. border: 1px solid #e5e6eb;
  78. border-radius: 8px;
  79. justify-content: center;
  80. align-items: center;
  81. gap: 8px;
  82. height: 30px;
  83. padding: 0px 8px;
  84. font-size: 14px;
  85. font-style: normal;
  86. font-weight: 400;
  87. transition: background .3s, border .3s, opacity .3s;
  88. display: inline-flex
  89. }
  90. input {
  91. border: 1px solid #e5e6eb;
  92. background-color: var(--rp-c-bg);
  93. padding: 4px 8px;
  94. }
  95. }
  96. .light-mode * {
  97. color: var(--text-color) !important;
  98. }
  99. // .semi-tooltip-content {
  100. // color: black;
  101. // }
  102. .dark {
  103. .invert-img {
  104. filter: invert(0.9);
  105. }
  106. }