global.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. .rspress-doc-container:not(:has(.aside-container_edeb4)) .rspress-doc {
  2. width: 1400px;
  3. max-width: 1400px;
  4. }
  5. .rspress-doc-container:not(:has(.aside-container_edeb4)) .rspress-doc-footer {
  6. width: 1400px;
  7. max-width: 1400px;
  8. }
  9. .sp-preview {
  10. height: 100% !important;
  11. }
  12. .medium-zoom-image {
  13. width: 100%;
  14. }
  15. .rs-table {
  16. width: 100%;
  17. }
  18. .rs-table td {
  19. padding: 8px;
  20. border: 1px solid var(--rp-c-divider-light);
  21. }
  22. .rs-table img {
  23. max-height: 500px;
  24. max-width: 500px;
  25. }
  26. .rs-table td:first-child {
  27. width: 20%;
  28. }
  29. .rs-center {
  30. display: flex;
  31. justify-content: center;
  32. align-items: center;
  33. }
  34. .rs-tip {
  35. color: var(--rp-c-text-2);
  36. border-left: 2px solid #ccc;
  37. padding: 0 8px;
  38. margin: 16px 0;
  39. }
  40. .rs-highlight {
  41. border: 1px solid var(--rp-container-warning-border);
  42. background-color: var(--rp-container-warning-bg);
  43. padding: 12px 24px;
  44. font-size: 14px;
  45. font-weight: 400;
  46. line-height: 1.7;
  47. border-radius: var(--rp-radius);
  48. color: var(--rp-c-text-1);
  49. }
  50. .rs-link {
  51. color: var(--rp-c-link);
  52. }
  53. .rs-red {
  54. color: var(--rp-container-danger-text);
  55. }
  56. .light-mode {
  57. color-scheme: light;
  58. --background-color: #ffffff !important; /* 强制使用浅色背景 */
  59. --text-color: #000000 !important; /* 强制使用深色文本 */
  60. --rp-c-bg: #fff !important;
  61. --rp-c-text-1: #000000 !important; /* 强制使用深色文本 */
  62. button {
  63. background: transparent;
  64. }
  65. }
  66. .light-mode * {
  67. color: var(--text-color) !important;
  68. }
  69. .semi-tooltip-content {
  70. color: black;
  71. }
  72. .dark {
  73. .invert-img {
  74. filter: invert(0.9);
  75. }
  76. }