index.less 989B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. html, body, #root {
  2. width: 100%;
  3. height: 100%;
  4. margin: 0;
  5. }
  6. :root {
  7. --theme-color: #fff;
  8. --theme-front: #000;
  9. --header-height: 64px;
  10. }
  11. .main-layout {
  12. height: 100vh;
  13. display: flex;
  14. flex-direction: column;
  15. }
  16. .fixd-header {
  17. width: 100%;
  18. position: fixed;
  19. top: 0;
  20. height: var(--header-height);
  21. line-height: var(--header-height);
  22. z-index: 100;
  23. }
  24. .ant-layout {
  25. background-color: #f0f2f5;
  26. }
  27. .layout-sidebar {
  28. background-color: var(--theme-color);
  29. color: var(--theme-front);
  30. box-shadow: 2px 0 8px 0 rgba(29,35,41,.05);
  31. }
  32. // 兼容 360
  33. .ant-pro-sider-collapsed-button {
  34. top: 18px;
  35. right: -13px;
  36. }
  37. .ant-pro .ant-pro-layout .ant-pro-sider-logo {
  38. padding: 16px;
  39. }
  40. .ant-pro-page-container .ant-pro-page-container-warp-page-header ~ .ant-pro-grid-content .ant-pro-page-container-children-content {
  41. margin: 8px 40px 40px 40px;
  42. }
  43. .ant-pro-table-list-toolbar-container {
  44. padding: 16px 0;
  45. }
  46. .ant-pro-card .ant-pro-card-body {
  47. padding: 16px 24px;
  48. }