Browse Source

feat: 添加通用样式

lanjianrong 4 years ago
parent
commit
fcb96fcffd
2 changed files with 13 additions and 11 deletions
  1. 3 0
      src/assets/css/common.less
  2. 10 11
      src/global.less

+ 3 - 0
src/assets/css/common.less

@@ -0,0 +1,3 @@
+.text-right {
+  text-align: right;
+}

+ 10 - 11
src/global.less

@@ -1,5 +1,5 @@
 @import '~antd/es/style/themes/default.less';
 @import '~antd/es/style/themes/default.less';
-
+@import './assets/css/common.less';
 html,
 html,
 body,
 body,
 #root {
 #root {
@@ -14,22 +14,21 @@ body,
   min-height: 100vh;
   min-height: 100vh;
 }
 }
 
 
-
-.ant-menu-submenu-selected .ant-menu-submenu-title{
-  border-left: 3px solid #886AB5;
+.ant-menu-submenu-selected .ant-menu-submenu-title {
   background: #595284;
   background: #595284;
+  border-left: 3px solid #886ab5;
 }
 }
-.ant-menu-dark .ant-menu-inline.ant-menu-sub{
-  background: #4A4473;
+.ant-menu-dark .ant-menu-inline.ant-menu-sub {
+  background: #4a4473;
 }
 }
-.ant-menu-dark .ant-menu-item-only-child:hover{
-  background: #423D68;
+.ant-menu-dark .ant-menu-item-only-child:hover {
+  background: #423d68;
 }
 }
-.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected{
-  background: #4A4473;
+.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
+  background: #4a4473;
   border-right: 3px solid #24b3a4;
   border-right: 3px solid #24b3a4;
 }
 }
-.ant-menu-inline .ant-menu-submenu-title{
+.ant-menu-inline .ant-menu-submenu-title {
   margin-bottom: 0;
   margin-bottom: 0;
 }
 }