中泽后台管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. html,
  2. body,
  3. #root {
  4. box-sizing: border-box;
  5. width: 100%;
  6. height: 100%;
  7. margin: 0;
  8. padding: 0;
  9. overflow-y: auto;
  10. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  11. 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  12. 'Noto Color Emoji';
  13. //让全局的空白展示页水平垂直居中;
  14. .ant-empty {
  15. display: flex;
  16. flex-direction: column;
  17. align-content: center;
  18. align-items: center;
  19. justify-content: center;
  20. }
  21. }
  22. .colorWeak {
  23. filter: invert(80%);
  24. }
  25. .ant-layout {
  26. min-height: 100vh;
  27. }
  28. .ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  29. left: unset;
  30. }
  31. .ant-pro-page-container-children-container {
  32. padding-top: 0;
  33. padding-left: 8px;
  34. }
  35. // 用于让PageContainer容器的高宽度占满父元素;
  36. .TheAllParentHeightPageContainer {
  37. .ant-pro-grid-content {
  38. height: 100%;
  39. .ant-pro-grid-content-children {
  40. height: 100%;
  41. .ant-pro-page-container-children-container {
  42. height: 100%;
  43. padding: 0px !important;
  44. }
  45. }
  46. }
  47. }
  48. // #root > .ant-pro-layout {
  49. // height: 100%;
  50. // }
  51. .ant-picker,
  52. .ant-select,
  53. .ant-btn,
  54. .ant-input-number,
  55. .ant-select-selector,
  56. .ant-input-search,
  57. .ant-input,
  58. .ant-input-group-addon {
  59. border-radius: 0px;
  60. }
  61. .ant-pro-global-footer {
  62. margin: 0;
  63. }
  64. .containerRow {
  65. height: 82vh;
  66. background-color: #fff;
  67. }
  68. canvas {
  69. display: block;
  70. }
  71. body {
  72. text-rendering: optimizeLegibility;
  73. -webkit-font-smoothing: antialiased;
  74. -moz-osx-font-smoothing: grayscale;
  75. }
  76. ul,
  77. ol {
  78. list-style: none;
  79. }
  80. .ant-menu-overflow-item,
  81. .ant-menu-submenu-title {
  82. height: 50px !important;
  83. }
  84. .ant-pro-layout .ant-pro-layout-content {
  85. padding-block: 0 !important;
  86. padding-inline: 0 !important;
  87. }
  88. .ant-tabs-top {
  89. height: 40px;
  90. }
  91. :where(.css-dev-only-do-not-override-1p8fl91).ant-pro-layout .ant-pro-layout-content {
  92. padding-block: 0 !important;
  93. padding-inline: 0 !important;
  94. }
  95. :global {
  96. .ant-menu-overflow-item {
  97. height: 48px !important;
  98. }
  99. }
  100. /* .topContainer {
  101. position: relative;
  102. height: 100%;
  103. min-height: 87vh;
  104. background-color: #fff;
  105. } */
  106. @media (max-width: 768px) {
  107. .ant-table {
  108. width: 100%;
  109. overflow-x: auto;
  110. &-thead > tr,
  111. &-tbody > tr {
  112. > th,
  113. > td {
  114. white-space: pre;
  115. > span {
  116. display: block;
  117. }
  118. }
  119. }
  120. }
  121. }
  122. .ant-menu-light .ant-menu-item {color: #fff;}
  123. .ant-menu-light .ant-menu-submenu-title {color: #fff;}
  124. .ant-layout-sider-children .ant-menu-root {
  125. // background-color: rgb(57, 89, 200) !important;
  126. background-image: url('/image/leftMenu.png');
  127. background-image: linear-gradient(to bottom, #1d36aa, #1667db, #00d3a1);
  128. background-repeat: no-repeat;
  129. background-size: 100%;
  130. }
  131. .ant-layout-sider-children {
  132. padding-inline: 0px !important;
  133. }
  134. // .ant-menu-item-selected {
  135. // background-color: rgb(47, 135, 237) !important;
  136. // // background-color: #00D3A1 !important;
  137. // }
  138. .ant-menu-submenu-arrow {
  139. color: white !important;
  140. }
  141. .ant-pro-sider-actions {
  142. display: none !important;
  143. }
  144. .ant-dropdown-menu {
  145. padding: 0px !important;
  146. }
  147. .ant-pro-sider-collapsed-button {
  148. transform: translateY(-6px);
  149. }
  150. .ant-dropdown-menu-item-active:hover {
  151. background: #ecf8ff !important;
  152. }
  153. .rightHeadBtn:hover {
  154. background: #ecf8ff;
  155. }
  156. .ant-layout-header {
  157. height: 48px;
  158. margin-bottom: 5px;
  159. padding-right: 0;
  160. background: rgb(255, 255, 255);
  161. box-shadow: 0px 2px 5px #ddd;
  162. }
  163. .ant-pro-sider-logo {
  164. height: 48px !important;
  165. }
  166. .ant-card {
  167. border: none !important;
  168. }
  169. // 滚动条样式
  170. .ant-layout-sider {
  171. ::-webkit-scrollbar {
  172. // width: 100px !important;
  173. width: 10px;
  174. margin-right: 2px;
  175. background: #fff !important;
  176. // transition: 1s all ease-out;
  177. }
  178. // 滚动条轨道
  179. ::-webkit-scrollbar-track {
  180. background: #3959c8;
  181. }
  182. // 滚动滑块
  183. ::-webkit-scrollbar-thumb {
  184. background: #ecf8ff;
  185. border-radius: 8px;
  186. }
  187. // hover效果
  188. ::-webkit-scrollbar-thumb:hover {
  189. }
  190. ::-webkit-scrollbar-track:hover {
  191. background: #2a439e;
  192. }
  193. }
  194. //设置右侧标签页对应内容区;
  195. .topContainer {
  196. position: relative;
  197. height: 100%;
  198. min-height: 87vh;
  199. //background-color: #fff;
  200. .ka-wrapper {
  201. height: 100%;
  202. .ka-content {
  203. height: 100%;
  204. //background-color: rgb(245 245 245);
  205. //让标签页中理论上可以最简单地通过覆盖来实现任意的css样式,因为从这开始,才是单个路由页面开始;
  206. // &:nth-child(1),
  207. & > div {
  208. @the-margin-width: 20px;
  209. position: relative;
  210. width: calc(100% - 2 * @the-margin-width);
  211. height: calc(100% - 2 * @the-margin-width);
  212. margin: @the-margin-width;
  213. background-color: #fff;
  214. }
  215. }
  216. }
  217. }
  218. //全局布局的配置项;
  219. .ant-pro-setting-drawer-handle {
  220. display: none;
  221. }
  222. .ant-menu-light.ant-menu-horizontal > .ant-menu-submenu-selected::after {
  223. border-bottom-color: #00d3a1;
  224. border-bottom-width: 2px;
  225. }
  226. .ant-menu-light.ant-menu-horizontal > .ant-menu-submenu:hover::after {
  227. border-bottom-color: #00d3a1;
  228. border-bottom-width: 2px;
  229. }
  230. .ant-menu-item-selected {
  231. color: #00d3a1;
  232. background-color: rgba(0, 0, 0, 0);
  233. }
  234. .ant-pro-base-menu-inline {
  235. color: #fff;
  236. }
  237. .ant-layout-sider-children .ant-menu-light .ant-menu-submenu-selected > .ant-menu-submenu-title {
  238. color: #fff;
  239. }
  240. .ant-menu-light .ant-menu-item-selected {
  241. position: relative;
  242. color: #00d3a1;
  243. }
  244. .ant-menu-light .ant-menu-item-selected ::after {
  245. position: absolute;
  246. top: 50%;
  247. left: 15px;
  248. width: 6px;
  249. height: 6px;
  250. margin-top: -3px;
  251. background-color: #00d3a1;
  252. border-radius: 50%;
  253. content: '';
  254. }
  255. .ant-pro-layout .ant-pro-sider .ant-menu .ant-menu-item:hover {
  256. color: #00d3a1;
  257. }
  258. .ant-pro-layout .ant-pro-sider .ant-menu .ant-menu-item:not(.ant-menu-item-selected):hover{
  259. color: #00d3a1;
  260. }
  261. //自定义滚动条;
  262. .custom-scrollbar {
  263. padding: 0px 12px 0px 0px;
  264. &:hover {
  265. // 整个滚动条;
  266. box-sizing: border-box;
  267. padding: 0px 0px 0px 0px;
  268. &::-webkit-scrollbar {
  269. box-sizing: border-box;
  270. width: 12px;
  271. padding: 0px 2px;
  272. border: 1px solid rgba(52, 136, 255, 0.2);
  273. }
  274. // 定义滚动条轨道
  275. &::-webkit-scrollbar-track {
  276. width: 1px;
  277. background-color: transparent;
  278. }
  279. // 滚动条上的滚动滑块;
  280. &::-webkit-scrollbar-thumb {
  281. background-image: linear-gradient(
  282. 90deg,
  283. rgba(0, 0, 0, 0) 0%,
  284. rgba(0, 0, 0, 0) 28.1%,
  285. rgba(52, 136, 255, 1) 28.1%,
  286. rgba(52, 136, 255, 1) 71.9%,
  287. rgba(0, 0, 0, 0) 71.9%,
  288. rgba(0, 0, 0, 0) 100%
  289. );
  290. border-radius: 12px;
  291. }
  292. // 滚动条没有滑块的轨道部分;
  293. &::-webkit-scrollbar-track-piece {
  294. // width: 6px;
  295. // background-color: skyblue;
  296. background-color: transparent;
  297. }
  298. // 滚动条上的按钮;
  299. &::-webkit-scrollbar-button {
  300. height: 0;
  301. background-color: transparent;
  302. }
  303. }
  304. &::-webkit-scrollbar-thumb {
  305. background: rgba(0, 0, 0, 0); //让它在鼠标没移动到之前为透明的。
  306. }
  307. &::-webkit-scrollbar {
  308. width: 0px;
  309. }
  310. }