base.less 4.5 KB

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