index.less 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. html, body, #root {
  2. width: 100%;
  3. height: 100%;
  4. margin: 0;
  5. }
  6. :root {
  7. --theme-color: #081A48;
  8. --theme-front: #fff;
  9. --header-height: 94px;
  10. --siderbar-width: 240px;
  11. }
  12. .main-layout {
  13. height: 100vh;
  14. display: flex;
  15. flex-direction: column;
  16. }
  17. .fixd-header {
  18. width: 100%;
  19. position: fixed;
  20. top: 0;
  21. height: var(--header-height);
  22. line-height: var(--header-height);
  23. z-index: 100;
  24. }
  25. .ant-layout {
  26. background-color: #f0f2f5;
  27. }
  28. .ant-layout-header {
  29. line-height: var(--header-height);
  30. box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  31. // border-bottom: 1px solid gainsboro;
  32. z-index: 10;
  33. }
  34. .layout-sidebar {
  35. width: var(--siderbar-width);
  36. background-color: var(--theme-color);
  37. color: var(--theme-front);
  38. box-shadow: 1px 0 4px 0 rgba(0, 21, 41, 0.08);
  39. .ant-menu {
  40. font-size: 16px;
  41. background: #0D267C;
  42. }
  43. .ant-menu-item {
  44. overflow: hidden;
  45. border-top-right-radius: 20px;
  46. border-bottom-right-radius: 20px;
  47. }
  48. .ant-menu-title-content {
  49. padding-left: 2em;
  50. }
  51. &.ant-layout-sider-collapsed {
  52. .ant-menu-title-content {
  53. padding-left: 0;
  54. }
  55. }
  56. }
  57. .ant-menu-horizontal > .ant-menu-item a {
  58. color: #fff !important;
  59. }
  60. // 兼容 360
  61. .ant-pro-sider-collapsed-button {
  62. top: 18px;
  63. right: -13px;
  64. }
  65. .ant-pro .ant-pro-layout .ant-pro-sider-logo {
  66. padding: 16px;
  67. }
  68. .ant-pro .ant-pro-query-filter .ant-form-item {
  69. margin: 0;
  70. }
  71. .ant-pro-page-container .ant-pro-page-container-warp-page-header ~ .ant-pro-grid-content .ant-pro-page-container-children-content {
  72. margin: 8px 40px 40px 40px;
  73. }
  74. .ant-pro-table-list-toolbar-container {
  75. padding: 16px 0;
  76. }
  77. .ant-pro-card .ant-pro-card-body {
  78. padding: 16px 24px;
  79. }