base.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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: #333;
  15. }
  16. a {
  17. text-decoration: none;
  18. color: #333;
  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. }
  29. ul {
  30. list-style: none;
  31. }
  32. #root {
  33. width: 100vw;
  34. height: 100vh;
  35. min-width: 1600px;
  36. min-height: 900px;
  37. overflow-y: auto;
  38. }
  39. body {
  40. overflow-y: overlay;
  41. }
  42. /* 文本域取消下拉 */
  43. textarea {
  44. resize: none !important;
  45. }
  46. /* 主题色 */
  47. :root {
  48. --themeColor: #863326
  49. }
  50. a {
  51. color: var(--themeColor);
  52. }
  53. /* 普通按钮的颜色 */
  54. .ant-btn-text {
  55. color: #2f489a;
  56. }
  57. /* 按钮的危险颜色 */
  58. .ant-btn-text.ant-btn-dangerous {
  59. color: var(--themeColor);
  60. }
  61. /* antd分页器样式 */
  62. .ant-pagination .ant-pagination-item {
  63. border-radius: 50%;
  64. border: 1px solid #999;
  65. background-color: transparent !important;
  66. }
  67. .ant-pagination .ant-pagination-item-active {
  68. background-color: var(--themeColor) !important;
  69. }
  70. .ant-pagination .ant-pagination-item-active a {
  71. color: #fff !important;
  72. }
  73. .ant-pagination .ant-pagination-item:hover {
  74. background-color: var(--themeColor) !important;
  75. }
  76. .ant-pagination .ant-pagination-item:hover a {
  77. color: #fff !important;
  78. }
  79. .ant-pagination-prev {
  80. border-radius: 50% !important;
  81. border: 1px solid #999;
  82. }
  83. .ant-pagination-prev:hover {
  84. background-color: var(--themeColor);
  85. }
  86. .ant-pagination-prev:hover button {
  87. color: #fff;
  88. }
  89. .ant-pagination-next {
  90. border-radius: 50% !important;
  91. border: 1px solid #999;
  92. }
  93. .ant-pagination-next:hover {
  94. background-color: var(--themeColor);
  95. }
  96. .ant-pagination-next:hover button {
  97. color: #fff;
  98. }
  99. .ant-pagination-disabled {
  100. border: 1px solid #ccc;
  101. }
  102. .ant-pagination-disabled:hover {
  103. background-color: transparent;
  104. }
  105. img {
  106. object-fit: cover;
  107. }
  108. /* 表格的图片居中 */
  109. .tableImgAuto {
  110. display: flex;
  111. justify-content: center;
  112. }
  113. [hidden] {
  114. display: none !important;
  115. }
  116. /* 找不到页面 */
  117. .noFindPage {
  118. opacity: 0;
  119. transition: opacity .5s;
  120. }
  121. /* antd图片预览组件 */
  122. .ant-image {
  123. display: none;
  124. }
  125. /* antd表格居中 */
  126. .ant-table-cell {
  127. text-align: center !important;
  128. }
  129. /* 页面的顶部title */
  130. .pageTitlt {
  131. background-color: #fff;
  132. width: 100%;
  133. height: 40px;
  134. line-height: 40px;
  135. font-size: 16px;
  136. font-weight: 700;
  137. padding-left: 30px;
  138. border-radius: 10px;
  139. position: relative;
  140. color: #333;
  141. }
  142. .pageTitlt::before {
  143. content: '';
  144. position: absolute;
  145. top: 8px;
  146. left: 18px;
  147. width: 5px;
  148. height: 24px;
  149. background-color: var(--themeColor);
  150. }
  151. #upInput {
  152. display: none;
  153. }
  154. #upInput2 {
  155. display: none;
  156. }