@import './variables.scss'; @import './mixin.scss'; @import './transition.scss'; @import './element-ui.scss'; @import './iconfont.scss'; @import './search.scss'; body { background-color: #f7f8fa; height: 100%; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-family: Helvetica Neue, Helvetica, Hiragino Sans GB, PingFangSC-Regular, PingFang SC, Microsoft YaHei, Arial, sans-serif; } ul, li, dl, dt, dd { padding: 0; margin: 0; } li { list-style: none; } label { font-weight: 700; } html { height: 100%; box-sizing: border-box; } #app { height: 100%; } *, *:before, *:after { box-sizing: inherit; } a:focus, a:active { outline: none; } a, a:focus, a:hover { cursor: pointer; color: inherit; text-decoration: none; } div:focus { outline: none; } .clearfix { &:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; } } // main-container global css .app-container { padding: 30px 24px 10px; } .el-table__fixed, .el-table__fixed-right { z-index: 2; } // 滚动条的宽度 ::-webkit-scrollbar { width: 8px; height: 8px; background-color: #FAFAFA; border-radius: 4px; } // 滚动条的滑块 ::-webkit-scrollbar-thumb { background-color: #E8E8E9; border-radius: 4px; } // 遮罩层 .v-modal { opacity: .2; } // loading遮罩 .el-loading-parent--hidden { overflow: auto !important; } .el-loading-mask { background-color: rgba(255,255,255,0.5); top: 0; } .page-loading { background: url(../assets/img/loading.svg) no-repeat center center; animation: loading-rotate 1.5s linear infinite; width: 40px; height: 40px; display: inline-block; } .el-input__suffix { .el-input__suffix-inner { .el-icon-circle-close:before { content: '\e634' !important; font-size: 12px; font-family: 'iconfont'; } } } // 弹窗样式优化 .el-dialog { border-radius: 8px; box-shadow: none; .el-dialog__header { padding: 18px 20px; height: 60px; border-bottom: 1px solid #F0F0F0; } .el-dialog__title { font-size: 16px; } .el-dialog__close { font-weight: bold; color: #bfbfbf; } .el-dialog__body { padding: 15px 20px; } .el-dialog__footer { padding: 18px 20px; } .el-form--label-top .el-form-item__label { padding-bottom: 0; } &.show-shadow { .el-dialog__footer { box-shadow: 0px 0px 12px 0px rgba(196, 198, 207, 0.21); } } } // 树形表格 .el-table--enable-row-hover .el-table__body tr:hover>td { background: #F7FAFF; } .el-table__body tr.current-row>td { background: none; } // 表格 .el-table { .el-table__body-wrapper { position: initial; } .el-table__empty-block { min-height: 168px; } .el-table__empty-text { padding-top: 94px; box-sizing: border-box; line-height: 1; background: url(../assets/img/table-empty.png) no-repeat center 0 / 90px 90px; position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; } .cell { padding: 0 20px; } &:before { height: .5px; } thead { background: #F7F8FA; color: #73767B; font-size: 14px; } th { font-weight: inherit; background: #F7F8FA !important; user-select: inherit; >.cell { padding: 0 20px; } &:first-child { border-radius: 4px 0 0 4px; } &:last-child { border-radius: 0 4px 4px 0; } &.is-leaf { border-bottom: 0 none; } } tr.hover-row>td { background: #F7FAFF; } td { color: #313131; border-bottom-color: #F3F4F6; } .el-tag { padding: 0 8px; line-height: 23px; height: 23px; border: 0 none; min-width: 44px; text-align: center; color: #2A68FF; background: #f7f9ff; &.el-tag--success { background: #F5FCF3; color: #31CC31; } &.el-tag--danger { background: rgba(255,77,79,0.06); color: #FF4D4F; } &.el-tag--info { background: #f4f4f5; color: #909399; } &.el-tag--warning { background: #fdf6ec; color: #e6a23c; } } .el-link { margin: 0 5px; font-size: 14px; &:first-child { margin-left: 0; } &.el-link--primary { &.is-disabled { color: #2A68FF; opacity: .5; } } } } // 表格固定列阴影 // .el-table__fixed, .el-table__fixed-right { // box-shadow: 0 0 20px rgb(0 0 0 / 10%); // } // 表格分页 .table-list { .el-pagination { text-align: right; margin-top: 20px; padding: 2px 0; .el-input { display: inline-block; } } } // tab样式 .el-tabs__item { &.is-active, &:hover { color: #2A68FF; } &:focus.is-active.is-focus:not(:active) { box-shadow: none; } } .el-tabs__active-bar { background: #2A68FF; } // 分页 .el-pager li { &:hover, &.active { color: #2A68FF; } } // el-link样式 .el-link { &.el-link--primary { color: #2A68FF; &:hover { color: #1C40DF; &:after { display: none; } } } } // 弹窗关闭样式 .el-dialog__headerbtn { &:focus, &:hover { .el-dialog__close { color: #2A68FF; } } } // 日历 .el-picker-panel { .el-date-picker__header-label.active, .el-date-picker__header-label:hover, .el-picker-panel__icon-btn:hover, .el-year-table td.today .cell, .el-year-table td .cell:hover, .el-year-table td.current:not(.disabled) .cell, .el-month-table td .cell:hover, .el-time-panel__btn.confirm, td.available:hover, td.today span, .el-button--text { color: #2A68FF; } td.current:not(.disabled) span { background: #2A68FF; } } // input number去掉上下箭头 input[type='number']::-webkit-outer-spin-button, input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0; } input[type="number"] { -moz-appearance: textfield; } // 表单元素 .el-input, .el-select, .el-cascader { display: block; } /* 报错选中时颜色 */ .el-form-item.is-error .el-input__inner, .el-form-item.is-error .el-textarea__inner, .el-message-box__input input.invalid { box-shadow: 0 0 0 2px rgba(245, 108, 108, .15); &:focus { box-shadow: 0 0 0 2px rgba(245, 108, 108, .15); } } // 正常选中时颜色 .el-input.is-active .el-input__inner { border-color: #2A68FF; box-shadow: 0 0 0 2px rgba(217, 230, 255, .79); } .el-input__inner, .el-textarea__inner { // 正常选中时颜色 &:focus { border-color: #2A68FF; box-shadow: 0 0 0 2px rgba(217, 230, 255, .79); } // placehoder颜色 &::placeholder { color: #cacaca; } } .el-input--small { .el-input__inner { height: 34px; line-height: 34px; font-size: 14px; color: #313131; } .el-input__icon { line-height: 34px; } } // 输入框边框 .el-input__inner { border-color: #E7E9ED; } /* 日期选择器icon */ .el-range-editor--small { &.el-input__inner { height: 34px; } .el-range__close-icon, .el-range__icon { line-height: 26px; } } .el-form-item.is-error .el-input__inner, .el-form-item.is-error .el-input__inner:focus, .el-form-item.is-error .el-textarea__inner, .el-form-item.is-error .el-textarea__inner:focus, .el-message-box__input input.invalid, .el-message-box__input input.invalid:focus { border-color: #FF4D4F; } .el-form-item__error { color: #FF4D4F; } .el-form-item--small { .el-form-item__error { padding-top: 4px; } .el-form-item__content, .el-form-item__label { line-height: 34px; } } // 隐藏级联下拉父级可选时radio .el-cascader-panel { .el-radio { width: 100%; position: absolute; left: 0; opacity: 0; } .el-cascader-node { &.in-active-path, &.is-active, &.is-selectable.in-checked-path { color: #2A68FF; font-weight: normal; } } .el-cascader-node__label { padding: 0; } .el-cascader-node { padding-left: 24px; } .el-icon-check:before { position: absolute; left: 0; top: -5px; font-family: 'iconfont'; content: "\e621"; font-size: 12px; font-weight: 700; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } } // select下拉箭头边框 .el-select { .el-input__inner:focus { border-color: #2A68FF; } } .el-select .el-input, .el-cascader .el-input { .el-icon-arrow-up, .el-icon-arrow-down { transform: rotateZ(0); &.is-reverse { transform: rotateZ(180deg); } &:before { font-family: 'iconfont'; font-size: 12px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: '\e61a'; color: #39393a; } } &.is-focus { .el-input__inner { border-color: #2A68FF; } } } // select已选中option .el-select-dropdown__item { height: 36px; line-height: 36px; &.selected { color: #2A68FF !important; font-weight: normal; background: rgba(42, 104, 255, .08); // &:before { // position: absolute; // left: 8px; // font-family: 'iconfont'; // content: "\e621"; // font-size: 12px; // font-weight: 700; // -webkit-font-smoothing: antialiased; // -moz-osx-font-smoothing: grayscale; // } // &:after { // display: none; // } } } // select多选内容过长处理 .el-select { .el-tag { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 20px; position: relative; } .el-tag__close.el-icon-close { position: absolute; top: 3px; right: 2px; } } // 复选框 .el-checkbox__inner { width: 16px; height: 16px; border-color: #9EA2AD; } .el-checkbox__input { &.is-checked, &.is-indeterminate { .el-checkbox__inner { background-color: #3D7FFF; border-color: #3D7FFF; // 半选 &::before { height: 4px; top: 5px; } } +.el-checkbox__label { color: inherit; } } } .el-checkbox__inner::after { border-width: 2px; left: 5px; } // 单选框 .el-radio__inner { width: 16px; height: 16px; border-color: #9EA2AD; } .el-radio__input { &.is-checked { .el-radio__inner { background-color: #fff; border-color: #3D7FFF; } +.el-radio__label { color: inherit; } } } .el-radio__inner::after { width: 10px; height: 10px; background-color: #3D7FFF; } .el-button { transition: all ease .2s; } .el-button--primary { border-color: #2A68FF; background: linear-gradient(133deg, #2A68FF 0%, #2A68FF 100%); &:hover { border-color: #4667FE; background: linear-gradient(133deg, #4667FE 0%, #3458F1 100%); } &:active { border-color: #2A68FF; background: linear-gradient(133deg, #2A68FF 0%, #2A68FF 100%); } &:focus { border-color: #2B4EEA; background: linear-gradient(133deg, #2B4EEA 0%, #2B4EEA 100%); } &.is-disabled { opacity: .5; } } .el-button--default { background: #fff; border-color: #DCDFE6; color: #111; &:hover { color: #111; background: #F7F8FA; border-color: #DCDFE6; } &:focus { background: #fff; border-color: #DCDFE6; color: #111; } &:active { color: #111; background: #ECEEEF; border-color: #DCDFE6; } &.is-disabled { opacity: .5; } } .el-button--gray, .el-button--info { background: #fff; border-color: #DCDFE6; color: #999; &:hover { color: #999; background: #F7F8FA; border-color: #DCDFE6; } &:focus { background: #fff; border-color: #DCDFE6; color: #999; } &:active { color: #999; background: #ECEEEF; border-color: #DCDFE6; } &.is-disabled { opacity: .5; } } // .el-button--info { // border-color: #F2F4F7; // background: #F2F4F7; // color: #444951; // &:hover { // border-color: #E7EBF0; // background: #E7EBF0; // color: #444951; // } // &:focus { // border-color: #F2F4F7; // background: #F2F4F7; // color: #444951; // } // &:active { // border-color: #D9DDE4; // background: #D9DDE4; // color: #444951; // } // &.is-disabled { // opacity: .5; // } // } /* 按钮最小宽度 */ .el-button--small { &.is-round { padding: 9px 15px; } padding: 9px 15px; min-width: 76px; font-size: 14px; } // confirm button .el-message-box__btns { .el-button { border-radius: 20px; padding: 10px 15px; &.el-button--primary { color: #fff; border-color: #2A68FF; background: linear-gradient(133deg, #2A68FF 0%, #2A68FF 100%); &:hover { color: #fff; border-color: #4667FE; background: linear-gradient(133deg, #4667FE 0%, #3458F1 100%); } &:active, &:focus { color: #fff; border-color: #2B4EEA; background: linear-gradient(133deg, #2B4EEA 0%, #2B4EEA 100%); } } } } .el-dropdown-menu__item:focus, .el-dropdown-menu__item:not(.is-disabled):hover { background: none; color: #2A68FF; } .el-date-editor .el-range-input, .el-date-editor .el-range-separator { vertical-align: top; } // label字体颜色 .el-form-item__label { font-weight: normal; color: #313131; } // 日期组件宽度 .el-date-editor.el-input, .el-date-editor.el-input__inner { width: auto; } // 必填星号对齐 .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap>.el-form-item__label:before, .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before { background: url(../assets/img/star.svg) no-repeat 0 center; content: ''; width: 10px; height: 10px; display: inline-block; margin-right: 2px; } // 列表查询 .search-form { margin-bottom: 10px; .el-card__body { padding-bottom: 0; } .el-form-item__label { font-weight: normal; &:before { display: none !important; } } .el-date-editor.el-input, .el-date-editor.el-input__inner, .el-date-editor--daterange.el-input, .el-date-editor--daterange.el-input__inner, .el-date-editor--timerange.el-input, .el-date-editor--timerange.el-input__inner { width: 100%; } } .el-date-editor { .el-icon-time { width: 14px; height: 14px; background: url(../assets/image/icon_date.png) no-repeat 0 0 / 14px 14px; position: absolute; right: 10px; top: 50%; margin-top: -7px; &:before { display: none; } } .el-range__close-icon { position: absolute; right: 5px; top: 10px; line-height: 1; height: 16px; &:before { background: #fff; } } .el-range-input { text-align: left; font-size: 14px; } } .page { padding-bottom: 84px; } .next-step { width: 100%; height: 64px; background: #fff; box-shadow: 0px 0px 12px 0px rgba(196, 198, 207, 0.21); border-radius: 0px 0px 0px 8px; display: flex; justify-content: center; align-items: center; position: fixed; bottom: 0; left: 0; z-index: 1; } .el-form--label-top .el-form-item__label { padding-bottom: 0; } .file-uploader { background: #F7F8FA; border-radius: 4px; padding: 20px; &.tip-nowrap { display: flex; align-items: flex-end; flex-wrap: wrap; .el-upload__tip { margin-left: 12px; } } .el-upload__tip { margin-top: 10px; font-size: 12px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: rgba(132, 133, 138, 0.7); } .el-upload-list { padding-top: 2px; flex: none; width: 70%; .el-upload-list__item { padding-left: 8px; background: #fff; border-radius: 2px; height: 32px; line-height: 32px; transition: none; .el-progress { left: 0; } .el-progress__text { top: -10px; margin-right: 35px; } .el-icon-close { &:before { display: none; } top: 9px; right: 10px; width: 16px; height: 16px; display: inline-block; vertical-align: middle; background: url(../assets/image/icon_trash.png) no-repeat 0 0 / 16px 16px; } .el-icon-close-tip { display: none !important; } } .el-icon-document { &:before { display: none; } width: 16px; height: 16px; display: inline-block; vertical-align: middle; background: url(../assets/image/icon_attachment.png) no-repeat 0 0 / 16px 16px; } .el-icon-circle-check { &:before { display: none; } } } } .container { max-width: 1920px; margin: 0 auto; } .icon-device-card, .icon-device-video { width: 24px; height: 24px; display: inline-block; cursor: pointer; } .icon-device-card { background: url(../assets/image/icon_device_card.svg) no-repeat 0 0 / 24px 24px; } .icon-device-video { background: url(../assets/image/icon_device_video.svg) no-repeat 0 0 / 24px 24px; } .device-wrap { display: flex; align-items: flex-end; }