index.less 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @import "~antd/lib/style/themes/default.less";
  2. @ease-in-out-circ: cubic-bezier(.78, .14, .15, .86);
  3. .sider {
  4. min-height: 100vh;
  5. box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
  6. position: relative;
  7. z-index: 10;
  8. overflow: auto;
  9. background: #f9fafc;
  10. color: #444358 !important;
  11. :global {
  12. .drawer .drawer-content {
  13. background: #f9fafc;
  14. color: #000 !important;
  15. }
  16. .ant-menu-dark {
  17. background: #f9fafc;
  18. color: #000 !important;
  19. }
  20. .ant-menu-dark .ant-menu-inline.ant-menu-sub {
  21. background: #f4f5f5;
  22. color: #777 !important;
  23. }
  24. .ant-menu.ant-menu-dark .ant-menu-item-selected {
  25. background-color: #f4f5f5 !important;
  26. color: #000 !important;
  27. }
  28. .ant-menu-inline .ant-menu-item {
  29. margin: 0;
  30. padding: 0;
  31. }
  32. .ant-menu-inline-collapsed .ant-menu-item {
  33. padding: 0 16px !important;
  34. span {
  35. opacity: 1;
  36. }
  37. }
  38. }
  39. }
  40. :global {
  41. .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {
  42. padding: 0 16px !important;
  43. .realbull + span {
  44. opacity: 1;
  45. }
  46. }
  47. .ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected {
  48. background-color: #f4f4f5 !important;
  49. color: #000 !important;
  50. }
  51. .ant-menu-dark .ant-menu-sub {
  52. background: #f9fafc;
  53. color: #000 !important;
  54. }
  55. .ant-menu-vertical .ant-menu-item {
  56. margin-top: 0;
  57. margin-bottom: 0;
  58. }
  59. }
  60. .icon {
  61. width: 14px;
  62. margin-right: 10px;
  63. }