epmet pc工作端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

902 lines
23 KiB

3 years ago
// @font-face {
// font-family: "思源宋体";
// src: local("思源宋体"), url(../fonts/SourceHanSerifCN-Regular-1.otf) format("opentype");
// font-weight: normal;
// font-style: normal;
// }
// @font-face {
// font-family: "思源宋体";
// src: local("思源宋体"), url(../fonts/SourceHanSerifCN-Heavy-4.otf) format("opentype");
// font-weight: 800;
// font-style: normal;
// }
// @font-face {
// font-family: "思源宋体";
// src: local("思源宋体"), url(../fonts/SourceHanSerifCN-Medium-6.otf) format("opentype");
// font-weight: 500;
// font-style: normal;
// }
// @font-face {
// font-family: "思源宋体";
// src: local("思源宋体"), url(../fonts/SourceHanSerifCN-Medium-6.otf) format("opentype");
// font-weight: 600;
// font-style: normal;
// }
@import "./c/config.scss";
@import "./c/function.scss";
4 years ago
*,
*:before,
*:after {
3 years ago
box-sizing: border-box;
}
html {
min-width: 1200px;
overflow-x: auto;
@include scrollBar;
4 years ago
}
body {
3 years ago
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial,
sans-serif;
font-size: $--font-size-base;
line-height: $base--line-height;
color: $--color-text-primary;
background-color: #f5f7fa;
4 years ago
}
a {
3 years ago
color: mix(#fff, $--color-primary, 20%);
text-decoration: none;
&:focus,
&:hover {
color: $--color-primary;
text-decoration: underline;
}
4 years ago
}
img {
3 years ago
vertical-align: middle;
4 years ago
}
:focus,
:hover {
3 years ago
outline: none;
4 years ago
}
/* Utils
------------------------------ */
[v-cloak] {
3 years ago
display: none;
4 years ago
}
.clearfix:before,
.clearfix:after {
3 years ago
content: " ";
display: table;
4 years ago
}
.clearfix:after {
3 years ago
clear: both;
4 years ago
}
.fr {
3 years ago
float: right !important;
4 years ago
}
.fl {
3 years ago
float: left !important;
4 years ago
}
.fi {
3 years ago
float: initial !important;
4 years ago
}
.m-auto {
3 years ago
margin: auto !important;
4 years ago
}
.mt-auto {
3 years ago
margin-top: auto !important;
4 years ago
}
.mr-auto {
3 years ago
margin-right: auto !important;
4 years ago
}
.mb-auto {
3 years ago
margin-bottom: auto !important;
4 years ago
}
.ml-auto {
3 years ago
margin-left: auto !important;
4 years ago
}
.text-right {
3 years ago
text-align: right !important;
4 years ago
}
.text-center {
3 years ago
text-align: center !important;
4 years ago
}
.text-left {
3 years ago
text-align: left !important;
4 years ago
}
.w-percent-100 {
3 years ago
width: 100% !important;
4 years ago
}
.base-line-height {
3 years ago
line-height: $base--line-height !important;
4 years ago
}
/* Reset element-ui
------------------------------ */
.aui-wrapper {
3 years ago
.el-card + .el-card {
margin-top: 15px;
}
.el-input__prefix .el-input__icon {
display: inline-block;
vertical-align: middle;
}
.el-date-editor .el-range-separator {
width: 8%;
}
.el-table th {
color: $--color-text-primary;
background-color: $--background-color-base;
}
.el-pagination {
margin-top: 15px;
text-align: right;
}
.el-table__expand-icon {
display: inline-block;
width: 14px;
vertical-align: middle;
margin-right: 5px;
}
4 years ago
}
/* Common
------------------------------ */
// 图标
.icon-svg {
3 years ago
width: 1em;
height: 1em;
fill: currentColor;
vertical-align: middle;
overflow: hidden;
4 years ago
}
// 卡片
.aui-card--fill .el-card__header {
3 years ago
height: $content--card-header-height;
line-height: $content--card-header-height - 36px;
4 years ago
}
.aui-card__title {
3 years ago
font-size: 16px;
4 years ago
}
// 表单
.aui-form__label-icon {
3 years ago
display: inline-block;
margin: 0 3px;
vertical-align: middle;
font-size: 18px;
color: $--color-text-secondary;
4 years ago
}
// 按钮
.aui-button--dashed {
3 years ago
border-style: dashed;
&:focus,
&:hover {
background-color: transparent;
}
&-add {
> span > *[class*="el-icon-"],
> span > *[class*="icon"] {
vertical-align: middle;
font-size: 18px;
margin-right: 5px;
}
}
4 years ago
}
/* Layout
------------------------------ */
.aui-wrapper {
3 years ago
position: relative;
padding-top: $navbar--height;
&.z-iframe {
padding-top: 0;
.aui-content--tabs {
padding-top: 0;
}
4 years ago
}
4 years ago
}
/* Sidebar fold
------------------------------ */
.aui-sidebar--fold {
3 years ago
.aui-navbar {
&__header,
&__brand {
// width: $sidebar--width-fold;
}
&__brand {
&-lg {
// display: none;
}
&-mini {
// display: inline-block;
}
}
&__icon-menu--switch {
transform: rotateZ(180deg);
}
4 years ago
}
3 years ago
.aui-sidebar {
&__inner {
width: $sidebar--width-fold + 20px;
}
&,
&__menu {
width: $sidebar--width-fold;
}
&__menu > li > .el-submenu__title {
text-align: center;
}
&__menu-icon {
margin-right: 0;
font-size: 18px;
}
4 years ago
}
3 years ago
.aui-content {
&__wrapper {
margin-left: $sidebar--width-fold;
}
&--tabs > .el-tabs > .el-tabs__header {
left: $sidebar--width-fold;
}
4 years ago
}
}
.aui-sidebar--noside {
3 years ago
.aui-sidebar {
display: none !important;
4 years ago
}
3 years ago
.aui-content {
&__wrapper {
margin-left: 0 !important;
}
&--tabs > .el-tabs > .el-tabs__header {
left: 0 !important;
}
4 years ago
}
}
/* Navbar
------------------------------ */
.aui-navbar {
3 years ago
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
display: flex;
align-items: stretch;
height: $navbar--height;
background-color: $--color-primary;
background: #fff;
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
&__header {
position: relative;
display: flex;
width: $sidebar--width;
height: $navbar--height;
transition: width 0.3s;
align-items: center;
.aui-navbar__logo {
margin-left: 16px;
width: 32px;
height: 32px;
background: #0056d6;
border-radius: 100%;
overflow: hidden;
img {
width: 32px;
height: 32px;
}
4 years ago
}
}
3 years ago
&__brand {
display: flex;
// justify-content: center;
align-items: center;
padding: 5px 0 5px 16px;
margin: 0;
width: 60%;
height: 100%;
font-size: 20px;
text-transform: uppercase;
white-space: nowrap;
4 years ago
color: #fff;
3 years ago
overflow: hidden;
transition: width 0.3s;
font-size: 16px;
font-weight: bold;
&-lg,
&-mini {
max-width: 100%;
cursor: pointer;
color: #333;
&:focus,
&:hover {
text-decoration: none;
}
}
&-mini {
display: none;
}
4 years ago
}
3 years ago
&__body {
4 years ago
position: relative;
3 years ago
display: flex;
flex: 1;
background-color: #fff;
overflow: hidden;
}
&__menu {
background-color: transparent;
border-bottom: 0 !important;
a:focus,
a:hover {
text-decoration: none;
}
&.z-div {
.el-menu-item {
position: relative;
4 years ago
3 years ago
&:last-child {
&::after {
display: none;
}
}
&::after {
position: absolute;
content: "";
right: 0;
top: 0;
bottom: 0;
margin: auto 0;
width: 1px;
height: 18px;
background-color: rgba(#ffffff, 0.6);
}
}
4 years ago
}
3 years ago
.el-menu-item,
.el-submenu > .el-submenu__title {
height: $navbar--height;
padding: 0 15px;
line-height: $navbar--height;
border-color: transparent !important;
}
.el-menu-item.is-active,
.el-submenu.is-active > .el-submenu__title {
color: $--color-text-secondary;
&:focus,
&:hover {
color: $--color-text-primary;
}
}
.el-menu-item {
&:focus,
&:hover {
.aui-navbar__icon-menu {
color: $--color-text-primary;
}
.el-dropdown {
color: $--color-text-primary;
.el-icon-arrow-down {
transform: rotateZ(180deg);
}
}
.icon-nav {
font-weight: bold;
}
}
* {
vertical-align: initial;
}
.aui-navbar__icon-menu {
vertical-align: middle;
font-size: 16px;
}
.el-dropdown {
color: $--color-text-secondary;
.el-icon-arrow-down {
width: auto;
font-size: 12px;
margin: 0 0 0 5px;
transition: transform 0.3s;
}
}
.icon-nav {
color: #333;
font-size: 16px;
}
.img-nav {
@include cs;
3 years ago
position: relative;
display: inline-block;
width: 24px;
height: 24px;
vertical-align: middle;
3 years ago
@keyframes flicker {
/* 旋转沿x轴旋转-10度,再绕y轴旋转 */
0% {
opacity: 0.1;
}
100% {
opacity: 1;
}
}
.img-wrap {
overflow: hidden;
}
3 years ago
&.z-on {
animation: flicker 0.9s linear infinite;
}
3 years ago
img {
position: relative;
display: block;
// left: -100px;
3 years ago
width: 24px;
height: 24px;
filter: drop-shadow(100px 0px rgba(#000, 0.85));
overflow: hidden;
3 years ago
}
4 years ago
3 years ago
&:hover {
img {
filter: drop-shadow(100px 0px $c1);
}
}
}
.nav-item {
display: flex;
align-items: center;
&:hover {
span {
color: $c1;
}
}
img {
display: block;
margin-right: 6px;
width: 24px;
border-radius: 2px;
overflow: hidden;
}
span {
display: block;
color: #333;
}
}
}
.el-badge {
display: inline;
z-index: 2;
&__content {
line-height: 16px;
}
}
4 years ago
}
3 years ago
&__search {
> *[class*="el-icon-"],
> *[class*="icon"] {
display: inline-block;
vertical-align: middle;
4 years ago
}
3 years ago
&-txt {
width: 0;
transition: width 0.3s, margin-left 0.3s;
&.is-show {
width: 210px;
margin-left: 8px;
}
.el-input__inner {
height: $navbar--height - 20px;
padding: 0;
line-height: $navbar--height - 20px;
border-color: $--color-text-primary;
border-top: 0;
border-right: 0;
border-left: 0;
border-radius: 0;
background: transparent;
}
}
}
&__avatar {
.el-dropdown-link {
> img {
width: 36px;
height: auto;
margin-right: 5px;
border-radius: 100%;
vertical-align: middle;
}
4 years ago
}
}
}
/* Sidebar
------------------------------ */
.aui-sidebar {
3 years ago
position: fixed;
top: $navbar--height;
left: 0;
bottom: 0;
z-index: 1020;
width: $sidebar--width + $sidebar--width-fold;
// overflow: hidden;
4 years ago
transition: width 0.3s;
3 years ago
background-color: transparent;
.aui-sidebar_wrap {
height: 100%;
overflow: hidden;
background: #fff;
}
&__inner {
position: relative;
z-index: 1;
width: $sidebar--width;
height: 100%;
padding-top: 58px;
padding-bottom: 15px;
overflow-x: hidden;
overflow-y: auto;
transition: width 0.3s;
}
&__menu {
width: $sidebar--width;
border-right: 0;
transition: width 0.3s;
&.el-menu {
background-color: transparent;
.el-menu {
background-color: transparent;
.el-menu-item {
}
}
}
.el-menu-item,
.el-submenu__title {
height: $sidebar--menu-item-height;
line-height: $sidebar--menu-item-height;
color: rgba(0, 0, 0, 0.65);
}
}
&__menu-icon {
display: inline-block;
vertical-align: middle;
width: 16px !important;
margin-right: 5px;
text-align: center;
font-size: 16px;
color: inherit !important;
transition: font-size 0.3s;
4 years ago
}
}
/* Content
------------------------------ */
.aui-content {
position: relative;
3 years ago
padding: $content--padding;
// min-height: calc(100vh - #{$navbar--height});
&__wrapper {
position: relative;
margin-left: $sidebar--width + $sidebar--width-fold;
min-height: calc(100vh - #{$navbar--height});
// background-color: $content--background-color;
transition: margin-left 0.3s;
}
> .aui-card--fill > .el-card__body {
min-height: calc(#{$content--fill-height} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
min-height: calc(#{$content--fill-height} - #{$content--card-header-height} - 2px);
}
&--tabs {
padding: $content--tabs-header-height 0 0;
}
&--tabs-tools {
position: fixed;
top: $navbar--height;
right: 0;
z-index: 1051;
min-width: $content--tabs-header-height;
height: $content--tabs-header-height;
padding: 0 12px;
text-align: center;
font-size: 16px;
line-height: $content--tabs-header-height;
background-color: $--background-color-base;
cursor: pointer;
}
&--tabs-icon-nav {
display: inline-block;
vertical-align: middle;
font-size: 16px;
}
> .el-tabs {
> .el-tabs__header {
position: fixed;
top: $navbar--height;
left: $sidebar--width-fold;
// left: $sidebar--width + $sidebar--width-fold;
right: 0;
z-index: 1050;
padding: 0 55px 0 15px;
margin: 0;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
// background-color: #fff;
background: #ebedf0;
transition: left 0.3s;
> .el-tabs__nav-wrap {
margin-bottom: 0;
&:after {
display: none;
}
> .el-tabs__nav-next,
> .el-tabs__nav-prev {
line-height: $content--tabs-header-height;
}
> .el-tabs__nav-scroll > .el-tabs__nav {
& > .el-tabs__active-bar {
display: none;
}
& > .el-tabs__item {
height: $content--tabs-header-height;
padding: 0 15px;
line-height: $content--tabs-header-height;
border: 0;
color: $--color-text-regular;
&:focus,
&:hover,
&.is-active {
color: $--color-text-primary;
background-color: $--background-color-base;
&:after {
display: block;
}
> .el-icon-close {
color: $--color-text-primary;
}
}
&:after {
display: none;
position: absolute;
bottom: 0;
left: 0;
content: "";
width: 100%;
height: 2px;
background-color: $--color-primary;
}
+ .el-tabs__item {
margin-left: 1px;
}
> .el-icon-close {
width: 14px;
margin-left: 15px;
color: $--color-text-secondary;
}
> i.icon {
display: inline-block;
vertical-align: middle;
font-size: 18px;
}
}
}
4 years ago
}
3 years ago
.el-tabs__nav.is-top {
padding: 4px;
.el-tabs__item {
margin-left: 3px !important;
height: 32px !important;
line-height: 32px !important;
background: #ffffff !important;
&.is-active,
&:hover {
color: #0056d6 !important;
&::after {
display: none !important;
}
}
}
4 years ago
}
3 years ago
}
> .el-tabs__content {
// 去除全部滚动条注释M
// padding: $content--padding;
3 years ago
.el-loading-mask {
z-index: 830;
4 years ago
}
3 years ago
> .el-tab-pane {
min-height: calc(#{$content--fill-height-tabs});
> .aui-card--fill > .el-card__body {
min-height: calc(#{$content--fill-height-tabs} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
min-height: calc(#{$content--fill-height-tabs} - #{$content--card-header-height} - 2px);
}
&.is-iframe {
height: calc(#{$content--fill-height-tabs} + #{$content--padding * 2});
margin: -$content--padding;
min-height: auto;
> .aui-card--fill {
background-color: transparent;
}
> .aui-card--fill > .el-card__header {
background-color: #fff;
}
> .aui-card--fill > .el-card__body {
height: calc(#{$content--fill-height-tabs} - 2px);
margin: $content--padding;
min-height: auto;
border: $--border-base;
border-color: $--border-color-lighter;
border-radius: $--border-radius-base;
background-color: #fff;
}
> .aui-card--fill > .el-card__header + .el-card__body {
height: calc(#{$content--fill-height-tabs} - #{$content--card-header-height} - 2px);
}
}
4 years ago
}
}
}
3 years ago
// quill富文本编辑器
.ql-toolbar {
line-height: 20px;
&.ql-snow {
border-color: $--border-color-base;
4 years ago
}
3 years ago
.ql-formats {
margin: 0 5px;
4 years ago
}
3 years ago
}
.ql-container {
height: 150px;
&.ql-snow {
border-color: $--border-color-base;
}
}
4 years ago
}
.el-loading-mask {
3 years ago
z-index: 5001 !important;
4 years ago
}
/* Page
------------------------------ */
4 years ago
*[class*="aui-page__"] {
3 years ago
padding-top: 0;
.aui-content {
min-height: auto;
&__wrapper {
min-height: 100vh;
margin-left: 0;
}
> .aui-card--fill > .el-card__body {
min-height: calc(100vh - #{$content--padding * 2} - 2px);
}
> .aui-card--fill > .el-card__header + .el-card__body {
min-height: calc(100vh - #{$content--padding * 2} - #{$content--card-header-height} - 2px);
}
4 years ago
}
}
4 years ago
.el-button--green {
3 years ago
color: #fff;
background-color: #22c1c3;
border-color: #22c1c3;
4 years ago
}
.el-button--green:hover {
3 years ago
color: #fff;
background-color: #05b1b4;
border-color: #05b1b4;
4 years ago
}
.el-button--green:focus {
3 years ago
color: #fff;
background-color: #22c1c3;
border-color: #22c1c3;
4 years ago
}
.el-button--yellow:hover {
3 years ago
color: #fff;
background-color: #fa9200;
border-color: #fa9200;
4 years ago
}
.el-button--yellow:focus {
3 years ago
color: #fff;
background-color: #feb349;
border-color: #feb349;
4 years ago
}
.el-button--yellow {
3 years ago
color: #fff;
background-color: #feb349;
border-color: #feb349;
4 years ago
}
.el-button--blue:focus {
3 years ago
color: #fff;
background-color: #2195fe;
border-color: #2195fe;
4 years ago
}
.el-button--blue:hover {
3 years ago
color: #fff;
background-color: #0083fd;
border-color: #0083fd;
4 years ago
}
.el-button--blue {
3 years ago
color: #fff;
background-color: #2195fe;
border-color: #2195fe;
4 years ago
}
.el-button--red:focus {
3 years ago
color: #fff;
background-color: #fe6252;
border-color: #fe6252;
4 years ago
}
.el-button--red:hover {
3 years ago
color: #fff;
background-color: #fd341e;
border-color: #fd341e;
4 years ago
}
.el-button--red {
3 years ago
color: #fff;
background-color: #fe6252;
border-color: #fe6252;
4 years ago
}
4 years ago
// 修改表格不换行的问题
div.el-table div.cell {
3 years ago
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-wrap: normal;
4 years ago
}
4 years ago
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
3 years ago
-webkit-appearance: none;
4 years ago
}
input[type="number"] {
3 years ago
-moz-appearance: textfield;
4 years ago
}
// 默认输入框placeholder样式
3 years ago
html .el-input.is-disabled .el-input__inner,
html .el-textarea.is-disabled textarea.el-textarea__inner {
3 years ago
color: #333;
background-color: rgba(#000, 0.01);
border-color: rgba(#000, 0.02);
resize: none;
&::placeholder {
// color: rgba(#fff, 0);
}
3 years ago
}
html .el-checkbox.is-disabled.is-checked .el-checkbox__label {
3 years ago
color: #333;
}
3 years ago
html .el-form-item__label {
3 years ago
&::after {
content: " :";
display: inline;
color: #333;
}
}
.g-cnt-wrap {
padding: 12px 6px;
3 years ago
}