|
|
@@ -1,25 +1,26 @@
|
|
|
-@import './index.less';
|
|
|
+@import '~ant-design-vue/es/style/themes/default.less';
|
|
|
+@import './utils/utils.less';
|
|
|
|
|
|
-body {}
|
|
|
+// body {}
|
|
|
|
|
|
::-moz-selection {
|
|
|
background: #009688;
|
|
|
- color : #FFF;
|
|
|
+ color: #FFF;
|
|
|
}
|
|
|
|
|
|
::selection {
|
|
|
background: #159b76;
|
|
|
- color : #FFF;
|
|
|
+ color: #FFF;
|
|
|
}
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
- width : 6px;
|
|
|
+ width: 6px;
|
|
|
height: 6px;
|
|
|
}
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
- border-radius : 10px;
|
|
|
- background-color : #bdbdbd;
|
|
|
+ border-radius: 10px;
|
|
|
+ background-color: #bdbdbd;
|
|
|
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
|
|
|
}
|
|
|
|
|
|
@@ -36,7 +37,7 @@ body {}
|
|
|
}
|
|
|
|
|
|
.layout.ant-layout {
|
|
|
- height : auto;
|
|
|
+ height: auto;
|
|
|
overflow-x: hidden;
|
|
|
|
|
|
&.mobile,
|
|
|
@@ -89,11 +90,11 @@ body {}
|
|
|
}
|
|
|
|
|
|
.trigger {
|
|
|
- font-size : 20px;
|
|
|
+ font-size: 20px;
|
|
|
line-height: 64px;
|
|
|
- padding : 0 24px;
|
|
|
- cursor : pointer;
|
|
|
- transition : color 0.3s;
|
|
|
+ padding: 0 24px;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: color 0.3s;
|
|
|
|
|
|
&:hover {
|
|
|
background: rgba(0, 0, 0, 0.025);
|
|
|
@@ -102,11 +103,11 @@ body {}
|
|
|
|
|
|
.topmenu {
|
|
|
.ant-header-fixedHeader {
|
|
|
- position : fixed;
|
|
|
- top : 0;
|
|
|
- right : 0;
|
|
|
- z-index : 9;
|
|
|
- width : 100%;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ z-index: 9;
|
|
|
+ width: 100%;
|
|
|
transition: width 0.2s;
|
|
|
|
|
|
&.ant-header-side-opened {
|
|
|
@@ -132,7 +133,7 @@ body {}
|
|
|
|
|
|
.ant-menu.ant-menu-horizontal {
|
|
|
max-width: calc(100vw - 190px - 238px - 25px);
|
|
|
- flex : 1 1 calc(100vw - 190px - 238px - 25px);
|
|
|
+ flex: 1 1 calc(100vw - 190px - 238px - 25px);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -149,11 +150,11 @@ body {}
|
|
|
|
|
|
.sidemenu {
|
|
|
.ant-header-fixedHeader {
|
|
|
- position : fixed;
|
|
|
- top : 0;
|
|
|
- right : 0;
|
|
|
- z-index : 9;
|
|
|
- width : 100%;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ z-index: 9;
|
|
|
+ width: 100%;
|
|
|
transition: width 0.2s;
|
|
|
|
|
|
&.ant-header-side-opened {
|
|
|
@@ -167,13 +168,13 @@ body {}
|
|
|
}
|
|
|
|
|
|
.header {
|
|
|
- height : 64px;
|
|
|
- padding : 0 12px 0 0;
|
|
|
+ height: 64px;
|
|
|
+ padding: 0 12px 0 0;
|
|
|
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
|
|
- position : relative;
|
|
|
+ position: relative;
|
|
|
background: #fff;
|
|
|
background: #51a7f7;
|
|
|
- color : #fff;
|
|
|
+ color: #fff;
|
|
|
|
|
|
.content {
|
|
|
max-width: 1500px;
|
|
|
@@ -191,32 +192,32 @@ body {}
|
|
|
.header,
|
|
|
.top-nav-header-index {
|
|
|
.user-wrapper {
|
|
|
- float : right;
|
|
|
+ float: right;
|
|
|
height: 100%;
|
|
|
|
|
|
.action {
|
|
|
- cursor : pointer;
|
|
|
- padding : 0 20px;
|
|
|
- display : inline-block;
|
|
|
- transition : all 0.3s;
|
|
|
- height : 100%;
|
|
|
+ cursor: pointer;
|
|
|
+ padding: 0 20px;
|
|
|
+ display: inline-block;
|
|
|
+ transition: all 0.3s;
|
|
|
+ height: 100%;
|
|
|
// color : rgba(0, 0, 0, 0.65);
|
|
|
- color : #fff;
|
|
|
+ color: #fff;
|
|
|
|
|
|
&:hover {
|
|
|
background: rgba(0, 0, 0, 0.025);
|
|
|
}
|
|
|
|
|
|
.avatar {
|
|
|
- margin : 20px 8px 20px 0;
|
|
|
- color : #1890ff;
|
|
|
- background : hsla(0, 0%, 100%, 0.85);
|
|
|
+ margin: 20px 8px 20px 0;
|
|
|
+ color: #1890ff;
|
|
|
+ background: hsla(0, 0%, 100%, 0.85);
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.icon {
|
|
|
font-size: 16px;
|
|
|
- padding : 4px;
|
|
|
+ padding: 4px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -244,13 +245,13 @@ body {}
|
|
|
.header-index-wide {
|
|
|
.header-index-left {
|
|
|
.trigger {
|
|
|
- color : rgba(255, 255, 255, 0.85);
|
|
|
+ color: rgba(255, 255, 255, 0.85);
|
|
|
padding: 0 12px;
|
|
|
}
|
|
|
|
|
|
.logo.top-nav-header {
|
|
|
- flex : 0 0 56px;
|
|
|
- text-align : center;
|
|
|
+ flex: 0 0 56px;
|
|
|
+ text-align: center;
|
|
|
line-height: 58px;
|
|
|
|
|
|
h1 {
|
|
|
@@ -281,14 +282,14 @@ body {}
|
|
|
.header-index-wide {
|
|
|
.header-index-left {
|
|
|
.logo>a {
|
|
|
- overflow : hidden;
|
|
|
+ overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
- white-space : nowrap;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ant-menu.ant-menu-horizontal {
|
|
|
- flex : 1 1 auto;
|
|
|
+ flex: 1 1 auto;
|
|
|
white-space: normal;
|
|
|
}
|
|
|
}
|
|
|
@@ -297,70 +298,70 @@ body {}
|
|
|
|
|
|
.top-nav-header-index {
|
|
|
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
|
|
- position : relative;
|
|
|
+ position: relative;
|
|
|
transition: background 0.3s, width 0.2s;
|
|
|
|
|
|
.header-index-wide {
|
|
|
- max-width : 1200px;
|
|
|
- margin : auto;
|
|
|
+ max-width: 1200px;
|
|
|
+ margin: auto;
|
|
|
padding-left: 0;
|
|
|
- display : flex;
|
|
|
- height : 64px;
|
|
|
+ display: flex;
|
|
|
+ height: 64px;
|
|
|
|
|
|
.ant-menu.ant-menu-horizontal {
|
|
|
- max-width : 835px;
|
|
|
- flex : 0 1 835px;
|
|
|
- border : none;
|
|
|
- height : 64px;
|
|
|
+ max-width: 835px;
|
|
|
+ flex: 0 1 835px;
|
|
|
+ border: none;
|
|
|
+ height: 64px;
|
|
|
line-height: 64px;
|
|
|
}
|
|
|
|
|
|
.header-index-left {
|
|
|
- flex : 0 1 1000px;
|
|
|
+ flex: 0 1 1000px;
|
|
|
display: flex;
|
|
|
|
|
|
.logo.top-nav-header {
|
|
|
- flex : 0 0 165px;
|
|
|
- width : 165px;
|
|
|
- height : 64px;
|
|
|
- position : relative;
|
|
|
+ flex: 0 0 165px;
|
|
|
+ width: 165px;
|
|
|
+ height: 64px;
|
|
|
+ position: relative;
|
|
|
line-height: 64px;
|
|
|
- transition : all 0.3s;
|
|
|
- overflow : hidden;
|
|
|
+ transition: all 0.3s;
|
|
|
+ overflow: hidden;
|
|
|
|
|
|
img,
|
|
|
svg {
|
|
|
- display : inline-block;
|
|
|
+ display: inline-block;
|
|
|
vertical-align: middle;
|
|
|
- height : 32px;
|
|
|
- width : 32px;
|
|
|
+ height: 32px;
|
|
|
+ width: 32px;
|
|
|
}
|
|
|
|
|
|
h1 {
|
|
|
- color : #fff;
|
|
|
- display : inline-block;
|
|
|
+ color: #fff;
|
|
|
+ display: inline-block;
|
|
|
vertical-align: top;
|
|
|
- font-size : 16px;
|
|
|
- margin : 0 0 0 12px;
|
|
|
- font-weight : 400;
|
|
|
+ font-size: 16px;
|
|
|
+ margin: 0 0 0 12px;
|
|
|
+ font-weight: 400;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.header-index-right {
|
|
|
- flex : 0 0 238px;
|
|
|
+ flex: 0 0 238px;
|
|
|
align-self: flex-end;
|
|
|
- height : 64px;
|
|
|
- overflow : hidden;
|
|
|
+ height: 64px;
|
|
|
+ overflow: hidden;
|
|
|
|
|
|
.content-box {
|
|
|
float: right;
|
|
|
|
|
|
.action {
|
|
|
- max-width : 140px;
|
|
|
- overflow : hidden;
|
|
|
+ max-width: 140px;
|
|
|
+ overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
- white-space : nowrap;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -383,9 +384,9 @@ body {}
|
|
|
|
|
|
// 内容区
|
|
|
.layout-content {
|
|
|
- margin : 24px 24px 0px;
|
|
|
- height : 100%;
|
|
|
- height : 64px;
|
|
|
+ margin: 24px 24px 0px;
|
|
|
+ height: 100%;
|
|
|
+ height: 64px;
|
|
|
padding: 0 12px 0 0;
|
|
|
}
|
|
|
|
|
|
@@ -398,7 +399,7 @@ body {}
|
|
|
.topmenu {
|
|
|
.page-header-index-wide {
|
|
|
max-width: 1200px;
|
|
|
- margin : 0 auto;
|
|
|
+ margin: 0 auto;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -429,59 +430,59 @@ body {}
|
|
|
|
|
|
// 菜单样式
|
|
|
.sider {
|
|
|
- box-shadow : 2px 0 6px rgba(0, 21, 41, 0.35);
|
|
|
- position : relative;
|
|
|
- z-index : @ant-global-sider-zindex;
|
|
|
+ box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
|
|
|
+ position: relative;
|
|
|
+ // z-index: @ant-global-sider-zindex;
|
|
|
// min-height: 100vh;
|
|
|
|
|
|
- .ant-layout-sider-children {
|
|
|
- overflow-y: hidden;
|
|
|
+ // .ant-layout-sider-children {
|
|
|
+ // overflow-y: hidden;
|
|
|
|
|
|
- &:hover {
|
|
|
- overflow-y: auto;
|
|
|
- }
|
|
|
- }
|
|
|
+ // &:hover {
|
|
|
+ // overflow-y: auto;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
&.ant-fixed-sidemenu {
|
|
|
position: fixed;
|
|
|
- height : 100%;
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
|
|
|
.logo {
|
|
|
- position : relative;
|
|
|
- height : 64px;
|
|
|
+ position: relative;
|
|
|
+ height: 64px;
|
|
|
padding-left: 24px;
|
|
|
- overflow : hidden;
|
|
|
- line-height : 64px;
|
|
|
- background : #002140;
|
|
|
- transition : all .3s;
|
|
|
+ overflow: hidden;
|
|
|
+ line-height: 64px;
|
|
|
+ background: #002140;
|
|
|
+ transition: all .3s;
|
|
|
|
|
|
img,
|
|
|
svg,
|
|
|
h1 {
|
|
|
- display : inline-block;
|
|
|
+ display: inline-block;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
img,
|
|
|
svg {
|
|
|
height: 32px;
|
|
|
- width : 32px;
|
|
|
+ width: 32px;
|
|
|
}
|
|
|
|
|
|
h1 {
|
|
|
- color : #fff;
|
|
|
- font-size : 20px;
|
|
|
- margin : 0 0 0 12px;
|
|
|
- font-family : Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
|
|
|
- font-weight : 600;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 20px;
|
|
|
+ margin: 0 0 0 12px;
|
|
|
+ font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
|
|
|
+ font-weight: 600;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.light {
|
|
|
background-color: #fff;
|
|
|
- box-shadow : 2px 0px 8px 0px rgba(29, 35, 41, 0.05);
|
|
|
+ box-shadow: 2px 0px 8px 0px rgba(29, 35, 41, 0.05);
|
|
|
|
|
|
.logo {
|
|
|
background: #fff;
|
|
|
@@ -500,7 +501,7 @@ body {}
|
|
|
|
|
|
.ant-menu-sub.ant-menu-inline>.ant-menu-item,
|
|
|
.ant-menu-sub.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title {
|
|
|
- height : 46px;
|
|
|
+ height: 46px;
|
|
|
line-height: 46px;
|
|
|
}
|
|
|
|
|
|
@@ -520,14 +521,14 @@ body {}
|
|
|
padding: 4px 0;
|
|
|
|
|
|
.ant-dropdown-menu-item {
|
|
|
- width : 160px;
|
|
|
+ width: 160px;
|
|
|
padding: 8px 12px;
|
|
|
}
|
|
|
|
|
|
.ant-dropdown-menu-item>.anticon:first-child,
|
|
|
.ant-dropdown-menu-item>a>.anticon:first-child,
|
|
|
.ant-dropdown-menu-submenu-title>.anticon:first-child .ant-dropdown-menu-submenu-title>a>.anticon:first-child {
|
|
|
- min-width : 12px;
|
|
|
+ min-width: 12px;
|
|
|
margin-right: 8px;
|
|
|
}
|
|
|
}
|
|
|
@@ -540,33 +541,33 @@ body {}
|
|
|
.table-page-search-wrapper {
|
|
|
.ant-form-inline {
|
|
|
.ant-form-item {
|
|
|
- display : flex;
|
|
|
+ display: flex;
|
|
|
margin-bottom: 24px;
|
|
|
- margin-right : 0;
|
|
|
+ margin-right: 0;
|
|
|
|
|
|
.ant-form-item-control-wrapper {
|
|
|
- flex : 1 1;
|
|
|
- display : inline-block;
|
|
|
+ flex: 1 1;
|
|
|
+ display: inline-block;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
>.ant-form-item-label {
|
|
|
- line-height : 32px;
|
|
|
+ line-height: 32px;
|
|
|
padding-right: 8px;
|
|
|
- width : auto;
|
|
|
+ width: auto;
|
|
|
}
|
|
|
|
|
|
.ant-form-item-control {
|
|
|
- height : 32px;
|
|
|
+ height: 32px;
|
|
|
line-height: 32px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.table-page-search-submitButtons {
|
|
|
- display : block;
|
|
|
+ display: block;
|
|
|
margin-bottom: 24px;
|
|
|
- white-space : nowrap;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -586,4 +587,32 @@ body {}
|
|
|
|
|
|
.ant-alert {
|
|
|
font-size: 12.5px;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 分割线
|
|
|
+.ant-divider {
|
|
|
+ margin: 30px 0 !important;
|
|
|
+
|
|
|
+ .ant-divider-inner-text {
|
|
|
+ font-size: 13px;
|
|
|
+ color: rgba(0, 0, 0, 0.59);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.ant-divider-horizontal.ant-divider-with-text-left::before {
|
|
|
+ width: 2%;
|
|
|
+}
|
|
|
+
|
|
|
+// ## 自定义模块 ##
|
|
|
+.ant-table {
|
|
|
+
|
|
|
+ // 操作栏 项目间距
|
|
|
+ .actions>a {
|
|
|
+ margin-right: 8px;
|
|
|
+
|
|
|
+ &:last-child {
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|