global.less 2.2 KB

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