index.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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. .semi-table-tbody,
  63. .semi-table-row,
  64. .semi-table-row-cell {
  65. display: block !important;
  66. width: auto !important;
  67. padding: 2px !important;
  68. }
  69. .semi-table-row-cell {
  70. border-bottom: 0 !important;
  71. }
  72. .semi-table-tbody>.semi-table-row {
  73. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  74. }
  75. }
  76. .tableShow {
  77. display: revert;
  78. }
  79. .tableHiddle {
  80. display: none !important;
  81. }
  82. body::-webkit-scrollbar {
  83. display: none;
  84. }
  85. code {
  86. font-family:
  87. source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  88. }
  89. .custom-footer {
  90. font-size: 1.1em;
  91. }
  92. .semi-layout-content::-webkit-scrollbar,
  93. .semi-sider::-webkit-scrollbar {
  94. width: 6px;
  95. height: 6px;
  96. }
  97. .semi-layout-content::-webkit-scrollbar-thumb,
  98. .semi-sider::-webkit-scrollbar-thumb {
  99. background: var(--semi-color-tertiary-light-default);
  100. border-radius: 3px;
  101. }
  102. .semi-layout-content::-webkit-scrollbar-thumb:hover,
  103. .semi-sider::-webkit-scrollbar-thumb:hover {
  104. background: var(--semi-color-tertiary);
  105. }
  106. .semi-layout-content::-webkit-scrollbar-track,
  107. .semi-sider::-webkit-scrollbar-track {
  108. background: transparent;
  109. }
  110. .semi-chat-inputBox-sendButton,
  111. .semi-page-item,
  112. .semi-navigation-item,
  113. .semi-tag-closable,
  114. .semi-datepicker-range-input {
  115. border-radius: 9999px;
  116. }
  117. .semi-tabs-content {
  118. padding: 0 !important;
  119. }
  120. /* 聊天 */
  121. .semi-chat {
  122. padding-top: 0 !important;
  123. padding-bottom: 0 !important;
  124. height: 100%;
  125. max-width: 100% !important;
  126. width: 100% !important;
  127. overflow: hidden !important;
  128. }
  129. .semi-chat-chatBox {
  130. max-width: 100% !important;
  131. overflow: hidden !important;
  132. }
  133. .semi-chat-chatBox-wrap {
  134. max-width: 100% !important;
  135. overflow: hidden !important;
  136. }
  137. .semi-chat-chatBox-content {
  138. min-width: auto;
  139. word-break: break-word;
  140. max-width: 100% !important;
  141. overflow-wrap: break-word !important;
  142. }
  143. .semi-chat-content {
  144. max-width: 100% !important;
  145. overflow: hidden !important;
  146. }
  147. .semi-chat-list {
  148. max-width: 100% !important;
  149. overflow-x: hidden !important;
  150. }
  151. /* 隐藏所有聊天相关区域的滚动条 */
  152. .semi-chat::-webkit-scrollbar,
  153. .semi-chat-chatBox::-webkit-scrollbar,
  154. .semi-chat-chatBox-wrap::-webkit-scrollbar,
  155. .semi-chat-chatBox-content::-webkit-scrollbar,
  156. .semi-chat-content::-webkit-scrollbar,
  157. .semi-chat-list::-webkit-scrollbar {
  158. display: none;
  159. }
  160. .semi-chat,
  161. .semi-chat-chatBox,
  162. .semi-chat-chatBox-wrap,
  163. .semi-chat-chatBox-content,
  164. .semi-chat-content,
  165. .semi-chat-list {
  166. -ms-overflow-style: none;
  167. scrollbar-width: none;
  168. }
  169. .semi-chat-container {
  170. overflow-x: hidden !important;
  171. }
  172. .semi-chat-container::-webkit-scrollbar {
  173. display: none;
  174. }
  175. .semi-chat-container {
  176. -ms-overflow-style: none;
  177. scrollbar-width: none;
  178. }
  179. /* 隐藏模型设置区域的滚动条 */
  180. .model-settings-scroll::-webkit-scrollbar {
  181. display: none;
  182. }
  183. .model-settings-scroll {
  184. -ms-overflow-style: none;
  185. scrollbar-width: none;
  186. }
  187. /* 思考内容区域滚动条样式 */
  188. .thinking-content-scroll::-webkit-scrollbar {
  189. display: none;
  190. }
  191. .thinking-content-scroll {
  192. -ms-overflow-style: none;
  193. scrollbar-width: none;
  194. }
  195. /* 图片列表滚动条样式 */
  196. .image-list-scroll::-webkit-scrollbar {
  197. width: 6px;
  198. height: 6px;
  199. }
  200. .image-list-scroll::-webkit-scrollbar-thumb {
  201. background: var(--semi-color-tertiary-light-default);
  202. border-radius: 3px;
  203. }
  204. .image-list-scroll::-webkit-scrollbar-thumb:hover {
  205. background: var(--semi-color-tertiary);
  206. }
  207. .image-list-scroll::-webkit-scrollbar-track {
  208. background: transparent;
  209. }
  210. /* 隐藏请求体 JSON TextArea 的滚动条 */
  211. .custom-request-textarea .semi-input::-webkit-scrollbar {
  212. display: none;
  213. }
  214. .custom-request-textarea .semi-input {
  215. -ms-overflow-style: none;
  216. scrollbar-width: none;
  217. }
  218. .custom-request-textarea textarea::-webkit-scrollbar {
  219. display: none;
  220. }
  221. .custom-request-textarea textarea {
  222. -ms-overflow-style: none;
  223. scrollbar-width: none;
  224. }
  225. /* 调试面板标签样式 */
  226. .semi-tabs-content {
  227. height: calc(100% - 40px) !important;
  228. flex: 1 !important;
  229. }
  230. .semi-tabs-content .semi-tabs-pane {
  231. height: 100% !important;
  232. overflow: hidden !important;
  233. }
  234. .semi-tabs-content .semi-tabs-pane>div {
  235. height: 100% !important;
  236. }
  237. /* 调试面板特定样式 */
  238. .debug-panel .semi-tabs {
  239. height: 100% !important;
  240. display: flex !important;
  241. flex-direction: column !important;
  242. }
  243. .debug-panel .semi-tabs-bar {
  244. flex-shrink: 0 !important;
  245. }
  246. .debug-panel .semi-tabs-content {
  247. flex: 1 !important;
  248. overflow: hidden !important;
  249. }
  250. .semi-chat-chatBox-action {
  251. column-gap: 0 !important;
  252. }