global.less 1.6 KB

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