|
|
@@ -2,22 +2,23 @@
|
|
|
@import '@/assets/scss/reset';
|
|
|
@import '@/assets/scss/variables';
|
|
|
@import '@/assets/scss/mixins';
|
|
|
+@import '@/assets/scss/px-to-rem';
|
|
|
|
|
|
html,
|
|
|
-body{
|
|
|
- font: 14px/1.5 'Microsoft YaHei',tahoma,arial,Hiragino Sans GB, '\5b8b\4f53',sans-serif;
|
|
|
+body {
|
|
|
+ font: 14px/1.5 'Microsoft YaHei', tahoma, arial, Hiragino Sans GB, '\5b8b\4f53', sans-serif;
|
|
|
background-color: #f3f3f3;
|
|
|
height: 100%;
|
|
|
}
|
|
|
|
|
|
-#nprogress{
|
|
|
+#nprogress {
|
|
|
position: relative;
|
|
|
z-index: 3000;
|
|
|
}
|
|
|
|
|
|
-.clearfix{
|
|
|
+.clearfix {
|
|
|
display: inline-block;
|
|
|
- &::after{
|
|
|
+ &::after {
|
|
|
display: block;
|
|
|
content: '';
|
|
|
height: 0;
|
|
|
@@ -27,44 +28,43 @@ body{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.ellipsis{
|
|
|
+.ellipsis {
|
|
|
overflow: hidden;
|
|
|
white-space: nowrap;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-.el-select-dropdown{
|
|
|
+.el-select-dropdown {
|
|
|
// z-index: 3000 !important;
|
|
|
}
|
|
|
|
|
|
-.el-textarea__inner{
|
|
|
+.el-textarea__inner {
|
|
|
font-family: inherit;
|
|
|
}
|
|
|
|
|
|
.el-table .cell,
|
|
|
-.el-table th div{
|
|
|
+.el-table th div {
|
|
|
// TODO: FIXME: .el-table .cell, th div 均设置了text-overflow: ellipsis, 部分场景(table-column为非文字slot,如按钮,checkbox,且没有设置宽度)在窗口宽度较小时会出现 `...`
|
|
|
text-overflow: clip !important;
|
|
|
}
|
|
|
|
|
|
-input:-ms-input-placeholder{
|
|
|
+input:-ms-input-placeholder {
|
|
|
color: #c0c4cc;
|
|
|
}
|
|
|
|
|
|
-.el-message-box{
|
|
|
- .el-message-box__title{
|
|
|
+.el-message-box {
|
|
|
+ .el-message-box__title {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$spaceamounts: (0, 2, 5, 10, 15, 20);
|
|
|
$sides: (
|
|
|
- "": "all",
|
|
|
- "t": "top",
|
|
|
- "b": "bottom",
|
|
|
- "l": "left",
|
|
|
- "r": "right",
|
|
|
+ '': 'all',
|
|
|
+ 't': 'top',
|
|
|
+ 'b': 'bottom',
|
|
|
+ 'l': 'left',
|
|
|
+ 'r': 'right'
|
|
|
);
|
|
|
|
|
|
@each $space in $spaceamounts {
|
|
|
@@ -79,53 +79,53 @@ $sides: (
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.mg-t-20{
|
|
|
+.mg-t-20 {
|
|
|
margin-top: 20px !important;
|
|
|
}
|
|
|
-.mg-l-10{
|
|
|
+.mg-l-10 {
|
|
|
margin-left: 10px !important;
|
|
|
}
|
|
|
|
|
|
-.el-dialog{
|
|
|
+.el-dialog {
|
|
|
z-index: 4001 !important;
|
|
|
- .el-dialog__body{
|
|
|
+ .el-dialog__body {
|
|
|
padding: 10px 15px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-html#baidu-map-hack{
|
|
|
+html#baidu-map-hack {
|
|
|
height: auto;
|
|
|
overflow: auto;
|
|
|
- body{
|
|
|
+ body {
|
|
|
height: auto;
|
|
|
- #app{
|
|
|
+ #app {
|
|
|
height: auto;
|
|
|
- #layout{
|
|
|
- #nav{
|
|
|
+ #layout {
|
|
|
+ #nav {
|
|
|
position: fixed;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
top: 0;
|
|
|
z-index: 2999;
|
|
|
}
|
|
|
- .main-wrapper{
|
|
|
+ .main-wrapper {
|
|
|
padding-top: 60px;
|
|
|
height: auto !important;
|
|
|
- #sidebar{
|
|
|
+ #sidebar {
|
|
|
position: fixed;
|
|
|
width: $sidebarMainMenuWidth;
|
|
|
left: 0;
|
|
|
bottom: 0;
|
|
|
top: 60px;
|
|
|
z-index: 10;
|
|
|
- &.expand{
|
|
|
+ &.expand {
|
|
|
width: $sidebarWidth;
|
|
|
- & + .main{
|
|
|
+ & + .main {
|
|
|
margin-left: $sidebarWidth;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .main{
|
|
|
+ .main {
|
|
|
margin-left: $sidebarMainMenuWidth;
|
|
|
}
|
|
|
}
|
|
|
@@ -134,9 +134,8 @@ html#baidu-map-hack{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
.BMap_cpyCtrl,
|
|
|
-.anchorBL{
|
|
|
+.anchorBL {
|
|
|
display: none !important;
|
|
|
}
|
|
|
|
|
|
@@ -163,49 +162,55 @@ html#baidu-map-hack{
|
|
|
}
|
|
|
|
|
|
@keyframes flash {
|
|
|
- 0% {opacity: 1;}
|
|
|
- 50% {opacity: 0;}
|
|
|
- 100% {opacity: 1;}
|
|
|
+ 0% {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+ 50% {
|
|
|
+ opacity: 0;
|
|
|
+ }
|
|
|
+ 100% {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-.cameras-notification.el-notification{
|
|
|
+.cameras-notification.el-notification {
|
|
|
width: 300px;
|
|
|
padding: 8px 25px 8px 10px;
|
|
|
- .el-notification__group{
|
|
|
+ .el-notification__group {
|
|
|
margin-left: 8px;
|
|
|
}
|
|
|
- .el-icon-warning{
|
|
|
- color: #F56C6C;
|
|
|
+ .el-icon-warning {
|
|
|
+ color: #f56c6c;
|
|
|
}
|
|
|
.el-notification__closeBtn {
|
|
|
top: 8px;
|
|
|
right: 8px;
|
|
|
}
|
|
|
- .el-notification__icon{
|
|
|
+ .el-notification__icon {
|
|
|
height: 14px;
|
|
|
width: 14px;
|
|
|
font-size: 14px;
|
|
|
line-height: 21px;
|
|
|
}
|
|
|
- .el-notification__title{
|
|
|
+ .el-notification__title {
|
|
|
font-size: 14px;
|
|
|
font-weight: normal;
|
|
|
color: #606266;
|
|
|
}
|
|
|
- .el-notification__content{
|
|
|
+ .el-notification__content {
|
|
|
margin: 0;
|
|
|
font-size: 14px;
|
|
|
- p{
|
|
|
+ p {
|
|
|
// @include ellipsis;
|
|
|
width: 220px;
|
|
|
- .link{
|
|
|
+ .link {
|
|
|
padding-left: 8px;
|
|
|
color: #409eff;
|
|
|
cursor: pointer;
|
|
|
- &:hover{
|
|
|
- opacity: .8;
|
|
|
+ &:hover {
|
|
|
+ opacity: 0.8;
|
|
|
}
|
|
|
- &.active{
|
|
|
+ &.active {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
@@ -213,24 +218,24 @@ html#baidu-map-hack{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.text-link{
|
|
|
+.text-link {
|
|
|
padding-right: 8px;
|
|
|
color: #409eff;
|
|
|
cursor: pointer;
|
|
|
- &.disabled{
|
|
|
- cursor: not-allowed;
|
|
|
+ &.disabled {
|
|
|
+ cursor: not-allowed;
|
|
|
color: #909399;
|
|
|
}
|
|
|
- &.danger{
|
|
|
+ &.danger {
|
|
|
color: $--color-danger;
|
|
|
}
|
|
|
- &.warning{
|
|
|
+ &.warning {
|
|
|
color: $--color-warning;
|
|
|
}
|
|
|
- &:hover{
|
|
|
- opacity: .8;
|
|
|
+ &:hover {
|
|
|
+ opacity: 0.8;
|
|
|
}
|
|
|
- &.active{
|
|
|
+ &.active {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
-}
|
|
|
+}
|