base.less 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. html {
  7. height: 100%;
  8. font-size: 14px;
  9. user-select: none;
  10. }
  11. body {
  12. font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  13. height: 100%;
  14. color: black;
  15. }
  16. a {
  17. text-decoration: none;
  18. color: black;
  19. outline: none;
  20. }
  21. i {
  22. font-style: normal;
  23. }
  24. img {
  25. max-width: 100%;
  26. max-height: 100%;
  27. vertical-align: middle;
  28. object-fit: cover;
  29. }
  30. ul {
  31. list-style: none;
  32. }
  33. body {
  34. overflow: auto;
  35. overflow-y: overlay;
  36. }
  37. /* 文本域取消下拉 */
  38. textarea {
  39. resize: none !important;
  40. min-height: 100px !important;
  41. }
  42. /* 主题色 */
  43. :root {
  44. --themeColor: #00b3ec;
  45. }
  46. /* 找不到页面 */
  47. .noFindPage {
  48. opacity: 0;
  49. transition: opacity .5s;
  50. }
  51. /* 兼容360浏览器的下拉框 */
  52. .ant-select-selector {
  53. position: relative;
  54. background-color: #ffffff;
  55. border: 1px solid #d9d9d9;
  56. transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  57. }
  58. // 重置antd样式
  59. #root {
  60. width: 100vw;
  61. height: 100vh;
  62. min-width: 1600px;
  63. min-height: 900px;
  64. overflow: auto;
  65. overflow-y: overlay;
  66. // a {
  67. // color: var(--themeColor);
  68. // }
  69. /* 普通文字按钮的颜色 */
  70. .ant-btn-text {
  71. color: var(--themeColor);
  72. }
  73. .ant-btn-text:disabled {
  74. cursor: not-allowed;
  75. color: rgba(0, 0, 0, 0.25);
  76. }
  77. /* 按钮的危险颜色 */
  78. .ant-btn-text.ant-btn-dangerous {
  79. color: #ff4d4d;
  80. }
  81. /* antd分页器样式 */
  82. .ant-pagination .ant-pagination-item {
  83. border-radius: 50%;
  84. border: 1px solid #999;
  85. background-color: transparent !important;
  86. }
  87. .ant-pagination .ant-pagination-item-active {
  88. background-color: var(--themeColor) !important;
  89. }
  90. .ant-pagination .ant-pagination-item-active a {
  91. color: #fff !important;
  92. }
  93. .ant-pagination .ant-pagination-item:hover {
  94. background-color: var(--themeColor) !important;
  95. }
  96. .ant-pagination .ant-pagination-item:hover a {
  97. color: #fff !important;
  98. }
  99. .ant-pagination-prev {
  100. border-radius: 50% !important;
  101. border: 1px solid #999;
  102. }
  103. .ant-pagination-prev:hover {
  104. background-color: var(--themeColor);
  105. }
  106. .ant-pagination-prev:hover button {
  107. color: #fff;
  108. }
  109. .ant-pagination-next {
  110. border-radius: 50% !important;
  111. border: 1px solid #999;
  112. }
  113. .ant-pagination-next:hover {
  114. background-color: var(--themeColor);
  115. }
  116. .ant-pagination-next:hover button {
  117. color: #fff;
  118. }
  119. .ant-pagination-disabled {
  120. border: 1px solid #ccc;
  121. }
  122. .ant-pagination-disabled:hover {
  123. background-color: transparent;
  124. }
  125. /* 表格的图片居中 */
  126. .tableImgAuto {
  127. display: flex;
  128. justify-content: center;
  129. }
  130. /* antd图片预览组件 */
  131. .ant-image {
  132. display: none;
  133. }
  134. /* antd表格居中 */
  135. .ant-table-cell {
  136. text-align: center !important;
  137. }
  138. }
  139. [hidden] {
  140. display: none !important;
  141. }
  142. #upInput {
  143. display: none;
  144. }
  145. #upInput2 {
  146. display: none;
  147. }
  148. // 页面标题
  149. .pageTitle {
  150. font-size: 18px;
  151. font-weight: 700;
  152. position: absolute;
  153. z-index: 11;
  154. top: -56px;
  155. left: -18px;
  156. padding-left: 40px;
  157. &::before {
  158. position: absolute;
  159. left: 20px;
  160. top: 50%;
  161. transform: translateY(-50%);
  162. content: '';
  163. width: 6px;
  164. height: 20px;
  165. background-color: var(--themeColor);
  166. }
  167. }
  168. // 滚动条
  169. .mySorrl::-webkit-scrollbar {
  170. /*滚动条整体样式*/
  171. width: 5px;
  172. /*高宽分别对应横竖滚动条的尺寸*/
  173. height: 1px;
  174. }
  175. .mySorrl::-webkit-scrollbar-thumb {
  176. /*滚动条里面小方块*/
  177. border-radius: 10px;
  178. -webkit-box-shadow: inset 0 0 5px transparent;
  179. background: var(--themeColor);
  180. }
  181. .mySorrl::-webkit-scrollbar-track {
  182. /*滚动条里面轨道*/
  183. -webkit-box-shadow: inset 0 0 5px transparent;
  184. border-radius: 10px;
  185. background: transparent;
  186. }