index.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. .semi-chat {
  84. padding-top: 0 !important;
  85. padding-bottom: 0 !important;
  86. height: 100%;
  87. }
  88. .semi-chat-chatBox-content {
  89. min-width: auto;
  90. word-break: break-word;
  91. }
  92. .tableHiddle {
  93. display: none !important;
  94. }
  95. body::-webkit-scrollbar {
  96. display: none;
  97. }
  98. code {
  99. font-family:
  100. source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  101. }
  102. .custom-footer {
  103. font-size: 1.1em;
  104. }
  105. .semi-layout-content::-webkit-scrollbar,
  106. .semi-sider::-webkit-scrollbar {
  107. width: 6px;
  108. height: 6px;
  109. }
  110. .semi-layout-content::-webkit-scrollbar-thumb,
  111. .semi-sider::-webkit-scrollbar-thumb {
  112. background: var(--semi-color-tertiary-light-default);
  113. border-radius: 3px;
  114. }
  115. .semi-layout-content::-webkit-scrollbar-thumb:hover,
  116. .semi-sider::-webkit-scrollbar-thumb:hover {
  117. background: var(--semi-color-tertiary);
  118. }
  119. .semi-layout-content::-webkit-scrollbar-track,
  120. .semi-sider::-webkit-scrollbar-track {
  121. background: transparent;
  122. }
  123. .semi-chat-inputBox-sendButton,
  124. .semi-page-item,
  125. .semi-navigation-item,
  126. .semi-tag-closable,
  127. .semi-datepicker-range-input {
  128. border-radius: 9999px;
  129. }
  130. .semi-tabs-content {
  131. padding: 0 !important;
  132. }