@import './variables.scss'; @import './mixin.scss'; @import './transition.scss'; @import './element-ui.scss'; @import './sidebar.scss'; body { height: 100%; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif; } 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; } .fl {float: left;} .fr {float: right;} .tl {text-align: left;} .tr {text-align: right;} .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ellipsis-2 { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } // 筛选区域样式 .screen-container { background: #ffffff; .top { height: 40px; .title { font-size: 16px; color: #333; font-weight: 600; } .control { font-size: 14px; color: #4e73df; cursor: pointer; } } // 选择器 .el-select { width: 100%; } // 时间选择器 .el-date-editor.el-input, .el-date-editor.el-input__inner { width: 100%; height: 33px; } .el-range-editor--small .el-range-separator { line-height: 28px; } .el-col:last-child .el-form-item__content { margin-left: 0 !important; } } // 主要内容区域样式 .mymain-container { margin-top: 30px; margin-bottom: 30px; .table { margin: 20px 0; // .el-button { // padding: 0; // } .el-button--mini { padding: 7px 10px; } } .btn-group { .text { font-size: 16px; color: #666; line-height: 32px; } } // 导入 .import-btn { position: relative; } .el-upload-list { position: absolute; top: 20px; left: 0; } } // 抽屉样式 .el-drawer { // 整体 .el-drawer__body { overflow-y: scroll; } .drawer__content { padding: 0 20px; } .drawer__footer { position: sticky; bottom: 0; left: 0; width: 100%; background: #fff; padding: 20px; } .drawer__content .el-date-editor { width: 100%; } // 选择器 .el-select { width: 100%; } // 图片墙 .el-upload-list--picture-card .el-upload-list__item { width: 100px; height: 100px; } .el-upload--picture-card { width: 100px; height: 100px; line-height: 100px; .avatar-uploader-icon { font-size: 28px; color: #8c939d; width: 100px; height: 100px; line-height: 100px; text-align: center; } } } // 上传照片样式 .avatar-uploader .el-upload { border: 1px dashed #d9d9d9; border-radius: 6px; cursor: pointer; position: relative; overflow: hidden; } .avatar-uploader .el-upload:hover { border-color: #409EFF; } .avatar-uploader .el-upload-list { position: relative; top: unset; left: unset; } .avatar-uploader-icon { font-size: 28px; color: #8c939d; width: 120px; height: 120px; line-height: 120px; text-align: center; } .avatar { width: 120px; height: 120px; display: block; } // 系统设置 .setting_title { font-size: 18px; padding-left: 15px; font-weight: 600; } .el-menu-item, .el-submenu__title { font-weight: 600 !important; } .page-footer { height: 70px; .footer { position: fixed; bottom: 0; left: 0; z-index: 1; width: 100%; background: #fff; padding: 15px 40px; box-sizing: border-box; transition: all 0.28s; text-align: right; box-shadow: 0 2px 5px 0 rgb(0 0 0 / 50%), 0 2px 5px 0 rgb(0 0 0 / 10%); &.hideSidebar { margin-left: 54px; width: calc(100vw - 54px); } &.openSidebar { margin-left: 210px; width: calc(100vw - 210px); } } }