diff --git a/src/compenents/leftMenu/index.tsx b/src/compenents/leftMenu/index.tsx index 09f1475..3d8d502 100644 --- a/src/compenents/leftMenu/index.tsx +++ b/src/compenents/leftMenu/index.tsx @@ -9,7 +9,6 @@ import { Menu } from "antd"; import { useNavigate, Link } from "react-router-dom"; import styles from "./index.module.less"; import logo from "../../assets/logo.png"; -import "../../utils/index.less"; function getItem(label: any, key: any, icon: any, children: any, type: any) { return { diff --git a/src/index.less b/src/index.less index 4254615..1aa3ba7 100644 --- a/src/index.less +++ b/src/index.less @@ -1,14 +1,14 @@ body { margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", + "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', + font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; } @@ -87,4 +87,40 @@ code { box-sizing: border-box; padding: 24px; border-radius: 12px; -} \ No newline at end of file +} + +.ant-menu-item { + width: calc(100% - 32px) !important; + margin-left: 16px !important; + margin-right: 16px !important; + margin-top: 8px !important; + margin-bottom: 8px !important; +} + +.ant-menu-submenu { + width: calc(100% - 24px) !important; + margin-left: 12px !important; + margin-right: 12px !important; + margin-top: 6px !important; + margin-bottom: 6px !important; +} + +.ant-menu, +.ant-menu-sub, +.ant-menu-inline { + background-color: #ffffff !important; +} + +.ant-menu-item-selected { + background-color: #ff4d4f !important; + color: white !important; +} + +.ant-menu-submenu-selected > .ant-menu-submenu-title { + color: #ff4d4f !important; +} + +.ant-menu-item-active { + background-color: #ff4d4f !important; + color: white !important; +} diff --git a/src/utils/index.less b/src/utils/index.less deleted file mode 100644 index 2afb09d..0000000 --- a/src/utils/index.less +++ /dev/null @@ -1,37 +0,0 @@ -.ant-menu-item { - width: calc(100% - 32px) !important; - margin-left: 16px !important; - margin-right: 16px !important; - margin-top: 8px !important; - margin-bottom: 8px !important; -} - -.ant-menu-submenu { - width: calc(100% - 24px) !important; - margin-left: 12px !important; - margin-right: 12px !important; - margin-top: 6px !important; - margin-bottom: 6px !important; -} - -.ant-menu, -.ant-menu-sub, -.ant-menu-inline { - background-color: #ffffff !important; -} - -.ant-menu-item-selected { - background-color: #ff4d4f !important; - color: white !important; -} - -.ant-menu-submenu-selected > .ant-menu-submenu-title { - color: #ff4d4f !important; -} - -.ant-menu-item-active { - background-color: #ff4d4f !important; - color: white !important; -} - -