base.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. }
  41. /* 主题色 */
  42. :root {
  43. --themeColor: #35527D;
  44. }
  45. /* 找不到页面 */
  46. .noFindPage {
  47. opacity: 0;
  48. transition: opacity .5s;
  49. }
  50. /* 兼容360浏览器的下拉框 */
  51. .ant-select-selector {
  52. position: relative;
  53. background-color: #ffffff;
  54. border: 1px solid #d9d9d9;
  55. transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  56. }
  57. // 重置antd样式
  58. #root {
  59. width: 100vw;
  60. height: 100vh;
  61. min-width: 1600px;
  62. min-height: 900px;
  63. overflow: auto;
  64. overflow-y: overlay;
  65. a {
  66. color: var(--themeColor);
  67. }
  68. /* 普通文字按钮的颜色 */
  69. .ant-btn-text {
  70. color: #99b8dd;
  71. }
  72. .ant-btn-text:disabled {
  73. cursor: not-allowed;
  74. color: rgba(0, 0, 0, 0.25);
  75. }
  76. /* 按钮的危险颜色 */
  77. .ant-btn-text.ant-btn-dangerous {
  78. color: var(--themeColor);
  79. }
  80. /* antd分页器样式 */
  81. .ant-pagination .ant-pagination-item {
  82. border-radius: 50%;
  83. border: 1px solid #999;
  84. background-color: transparent !important;
  85. }
  86. .ant-pagination .ant-pagination-item-active {
  87. background-color: var(--themeColor) !important;
  88. }
  89. .ant-pagination .ant-pagination-item-active a {
  90. color: #fff !important;
  91. }
  92. .ant-pagination .ant-pagination-item:hover {
  93. background-color: var(--themeColor) !important;
  94. }
  95. .ant-pagination .ant-pagination-item:hover a {
  96. color: #fff !important;
  97. }
  98. .ant-pagination-prev {
  99. border-radius: 50% !important;
  100. border: 1px solid #999;
  101. }
  102. .ant-pagination-prev:hover {
  103. background-color: var(--themeColor);
  104. }
  105. .ant-pagination-prev:hover button {
  106. color: #fff;
  107. }
  108. .ant-pagination-next {
  109. border-radius: 50% !important;
  110. border: 1px solid #999;
  111. }
  112. .ant-pagination-next:hover {
  113. background-color: var(--themeColor);
  114. }
  115. .ant-pagination-next:hover button {
  116. color: #fff;
  117. }
  118. .ant-pagination-disabled {
  119. border: 1px solid #ccc;
  120. }
  121. .ant-pagination-disabled:hover {
  122. background-color: transparent;
  123. }
  124. /* 表格的图片居中 */
  125. .tableImgAuto {
  126. display: flex;
  127. justify-content: center;
  128. }
  129. /* antd图片预览组件 */
  130. .ant-image {
  131. display: none;
  132. }
  133. /* antd表格居中 */
  134. .ant-table-cell {
  135. text-align: center !important;
  136. }
  137. }
  138. [hidden] {
  139. display: none !important;
  140. }
  141. #upInput {
  142. display: none;
  143. }
  144. #upInput2 {
  145. display: none;
  146. }
  147. // 页面标题
  148. .pageTitle{
  149. font-size: 20px;
  150. font-weight: 700;
  151. position: relative;
  152. padding-left: 40px;
  153. height: 50px;
  154. line-height: 50px;
  155. background-color: #fff;
  156. border-radius: 10px;
  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. }
  187. .myCoverBox{
  188. pointer-events: none;
  189. position: absolute;
  190. bottom: 0;
  191. left: 0;
  192. width: 100%;
  193. z-index: 10;
  194. background-color: rgba(0, 0, 0, 0.6);
  195. color: #fff;
  196. height: 30px;
  197. line-height: 30px;
  198. text-align: center;
  199. }