index.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. @layer tailwind-base, semi, tailwind-components, tailwind-utils;
  2. @layer tailwind-base {
  3. @tailwind base;
  4. }
  5. @layer tailwind-components {
  6. @tailwind components;
  7. }
  8. @layer tailwind-utils {
  9. @tailwind utilities;
  10. }
  11. body {
  12. margin: 0;
  13. padding-top: 0;
  14. font-family:
  15. Lato, 'Helvetica Neue', Arial, Helvetica, 'Microsoft YaHei', sans-serif;
  16. -webkit-font-smoothing: antialiased;
  17. -moz-osx-font-smoothing: grayscale;
  18. scrollbar-width: none;
  19. color: var(--semi-color-text-0) !important;
  20. background-color: var(--semi-color-bg-0) !important;
  21. height: 100vh;
  22. }
  23. #root {
  24. height: 100%;
  25. display: flex;
  26. flex-direction: column;
  27. overflow: hidden;
  28. }
  29. #root>section>header>section>div>div>div>div.semi-navigation-header-list-outer>div.semi-navigation-list-wrapper>ul>div>a>li>span {
  30. font-weight: 600 !important;
  31. }
  32. @media only screen and (max-width: 767px) {
  33. #root>section>header>section>div>div>div>div.semi-navigation-footer>div>a>li {
  34. padding: 0 0;
  35. }
  36. #root>section>header>section>div>div>div>div.semi-navigation-header-list-outer>div.semi-navigation-list-wrapper>ul>div>a>li {
  37. padding: 0 5px;
  38. }
  39. #root>section>header>section>div>div>div>div.semi-navigation-footer>div:nth-child(1)>a>li {
  40. padding: 0 5px;
  41. }
  42. .semi-navigation-horizontal .semi-navigation-header {
  43. margin-right: 0;
  44. }
  45. /* 确保移动端内容可滚动 */
  46. .semi-layout-content {
  47. -webkit-overflow-scrolling: touch !important;
  48. overscroll-behavior-y: auto !important;
  49. }
  50. /* 修复移动端下拉刷新 */
  51. body {
  52. overflow: visible !important;
  53. overscroll-behavior-y: auto !important;
  54. position: static !important;
  55. height: 100% !important;
  56. }
  57. /* 确保内容区域在移动端可以正常滚动 */
  58. #root {
  59. overflow: visible !important;
  60. height: 100% !important;
  61. }
  62. /* 隐藏在移动设备上 */
  63. .hide-on-mobile {
  64. display: none !important;
  65. }
  66. .semi-table-tbody,
  67. .semi-table-row,
  68. .semi-table-row-cell {
  69. display: block !important;
  70. width: auto !important;
  71. padding: 2px !important;
  72. }
  73. .semi-table-row-cell {
  74. border-bottom: 0 !important;
  75. }
  76. .semi-table-tbody > .semi-table-row {
  77. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  78. }
  79. }
  80. .tableShow {
  81. display: revert;
  82. }
  83. .tableHiddle {
  84. display: none !important;
  85. }
  86. body::-webkit-scrollbar {
  87. display: none;
  88. }
  89. code {
  90. font-family:
  91. source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  92. }
  93. .custom-footer {
  94. font-size: 1.1em;
  95. }
  96. .semi-layout-content::-webkit-scrollbar,
  97. .semi-sider::-webkit-scrollbar {
  98. width: 6px;
  99. height: 6px;
  100. }
  101. .semi-layout-content::-webkit-scrollbar-thumb,
  102. .semi-sider::-webkit-scrollbar-thumb {
  103. background: var(--semi-color-tertiary-light-default);
  104. border-radius: 3px;
  105. }
  106. .semi-layout-content::-webkit-scrollbar-thumb:hover,
  107. .semi-sider::-webkit-scrollbar-thumb:hover {
  108. background: var(--semi-color-tertiary);
  109. }
  110. .semi-layout-content::-webkit-scrollbar-track,
  111. .semi-sider::-webkit-scrollbar-track {
  112. background: transparent;
  113. }
  114. .semi-chat-inputBox-sendButton,
  115. .semi-page-item,
  116. .semi-navigation-item,
  117. .semi-tag-closable,
  118. .semi-datepicker-range-input {
  119. border-radius: 9999px;
  120. }
  121. .semi-tabs-content {
  122. padding: 0 !important;
  123. }
  124. /* 聊天 */
  125. .semi-chat {
  126. padding-top: 0 !important;
  127. padding-bottom: 0 !important;
  128. height: 100%;
  129. max-width: 100% !important;
  130. width: 100% !important;
  131. overflow: hidden !important;
  132. }
  133. .semi-chat-chatBox {
  134. max-width: 100% !important;
  135. overflow: hidden !important;
  136. }
  137. .semi-chat-chatBox-wrap {
  138. max-width: 100% !important;
  139. overflow: hidden !important;
  140. }
  141. .semi-chat-chatBox-content {
  142. min-width: auto;
  143. word-break: break-word;
  144. max-width: 100% !important;
  145. overflow-wrap: break-word !important;
  146. }
  147. .semi-chat-content {
  148. max-width: 100% !important;
  149. overflow: hidden !important;
  150. }
  151. .semi-chat-list {
  152. max-width: 100% !important;
  153. overflow-x: hidden !important;
  154. }
  155. .semi-chat-container {
  156. overflow-x: hidden !important;
  157. }
  158. .semi-chat-container::-webkit-scrollbar {
  159. width: 4px;
  160. }
  161. .semi-chat-container::-webkit-scrollbar-thumb {
  162. background: rgba(0, 0, 0, 0.1);
  163. border-radius: 2px;
  164. }
  165. .semi-chat-container::-webkit-scrollbar-thumb:hover {
  166. background: rgba(0, 0, 0, 0.15);
  167. }
  168. .semi-chat-container::-webkit-scrollbar-track {
  169. background: transparent;
  170. }
  171. /* 隐藏模型设置区域的滚动条 */
  172. .model-settings-scroll::-webkit-scrollbar {
  173. display: none;
  174. }
  175. .model-settings-scroll {
  176. -ms-overflow-style: none;
  177. scrollbar-width: none;
  178. }
  179. /* 调试面板代码样式 */
  180. .debug-code {
  181. font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  182. font-size: 11px;
  183. line-height: 1.4;
  184. }
  185. /* 调试面板标签样式 */
  186. .semi-tabs-content {
  187. height: calc(100% - 40px) !important;
  188. flex: 1 !important;
  189. }
  190. .semi-tabs-content .semi-tabs-pane {
  191. height: 100% !important;
  192. overflow: hidden !important;
  193. }
  194. .semi-tabs-content .semi-tabs-pane>div {
  195. height: 100% !important;
  196. }
  197. /* 调试面板特定样式 */
  198. .debug-panel .semi-tabs {
  199. height: 100% !important;
  200. display: flex !important;
  201. flex-direction: column !important;
  202. }
  203. .debug-panel .semi-tabs-bar {
  204. flex-shrink: 0 !important;
  205. }
  206. .debug-panel .semi-tabs-content {
  207. flex: 1 !important;
  208. overflow: hidden !important;
  209. }
  210. .semi-chat-chatBox-action {
  211. column-gap: 0 !important;
  212. }