@import 'element-variables.scss'; /* 改变 icon 字体路径变量,必需 */ $--font-path: '~element-ui/lib/theme-chalk/fonts'; @import '~element-ui/packages/theme-chalk/src/index'; @import '../icon/iconfont.css'; // 电子数字字体 @font-face { font-family: 'electronicFont'; src: url('../fonts/CursedTimerUlil-Aznm.ttf'); } // PingFang @font-face { font-family: 'PingFang SC'; src: url('../fonts/PingFang Medium.woff2'); } /* 设置滚动条的样式 background-color: #0f3a5c;*/ // ::-webkit-scrollbar { // width: 10px !important; // height: 10px !important; // background-color: #ccc; // border-radius: 2px; // } // /* 滚动槽 */ // ::-webkit-scrollbar-track { // border-radius: 6px; // background-color: #ccc !important; // } // /* 滚动条滑块 */ // ::-webkit-scrollbar-thumb { // border-radius: 6px; // background-color: #9fa1a5; // } ::-webkit-scrollbar-track { border-radius: 10px } ::-webkit-scrollbar-thumb { background-color: rgba(144,147,153,.3); border-radius: 10px } ::-webkit-scrollbar { width: 16px; height: 16px } ::-webkit-scrollbar-thumb,::-webkit-scrollbar-track { border-radius: 999px; border: 5px solid transparent } ::-webkit-scrollbar-thumb { min-height: 20px; background-clip: content-box } ::-webkit-scrollbar-corner { background: transparent } #app::-webkit-scrollbar,body::-webkit-scrollbar,html::-webkit-scrollbar { width: 0 } .bg { background-color: $--background-color-base; } .flex { display: flex; } .flex-center { display: flex; justify-content: center; align-items: center; } .flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-around { display: flex; justify-content: space-around; align-items: center; } .flex-start { display: flex; justify-content: flex-start; align-items: center; } .flex-end { display: flex; justify-content: flex-end; align-items: center; } .flex-around { display: flex; justify-content: space-around; align-items: center; } .flex-wrap { display: flex; flex-wrap: wrap; } .flex-column { display: flex; flex-direction: column; } .common-full-page { width: 100%; height: 100%; box-sizing: border-box; } .common-page-shadow { // box-shadow: 0 2px 10px 2px rgba(77, 77, 77, 0.1); } // 通用table 页面样式 start --------- // 搜索区域 .common-search-container { width: 100%; height: 80px; line-height: 80px; padding: 0 20px; background-color: #ffffff; // border-bottom: 1px solid #e6e6e6; box-shadow: 0 0.10417vw 0.625vw 0 rgba(0, 0, 0, 0.1); border-radius: 8px 8px 8px 8px; display: flex; justify-content: space-between; box-sizing: border-box; overflow: hidden; transition: height 0.3s linear; -webkit-transition: height 0.3s linear; -moz-transition: height 0.3s linear; -ms-transition: height 0.3s linear; -o-transition: height 0.3s linear; .el-form-item { margin: 0; display: inline-block; width: 100% !important; } .el-form-item__content { line-height: 80px; } .el-input, .el-input--suffix,.el-select{ line-height: normal; } .el-button--primary{ background-color: $--theme-color !important; border-color: $--theme-color !important; } .el-form{ width:90% !important; } .el-select{ width: 100% !important; } } .searchPanel{ height: calc(100% - var(--searchPanel) - 10px); } // 表格区域 .common-table-container { // height: calc(100% - 80px - 10px); padding: 0; margin: 10px 0 0 0; border-radius: 8px 8px 8px 8px; background-color: #fff; box-sizing: border-box; transition: height 0.3s linear; // -webkit-transition: height 0.3s linear; // -moz-transition: height 0.3s linear; // -ms-transition: height 0.3s linear; // -o-transition: height 0.3s linear; } // 表格左侧树 .common-tree-container { width: calc(100%) !important; height: 100%; .el-icon-menu{ font-size: 16px; } .el-input{ width: calc(100% - 20px) ; height: 40px; margin: 0 10px; input{ // border: #DCDFE6 1px solid; border: 1px solid transparent ; background-color: #efeff2; } .el-tree{ height: calc(100% - 5px); } .el-input__icon.el-icon-search{ color: #24262b; font-size: 14px; vertical-align: middle; } } .el-tree-node__expand-icon{ font-size: 16px; } } .common-tree-title { height: 45px; line-height: 45px; color: $--color-primary; margin: 0 10px 10px 10px ; width: calc(100% - 20px); font-weight: 700; font-size: 16px; border-radius: 8px 8px 0 0; border-bottom: 1px solid #ebebeb; } .el-tree-node__content { height: 48px !important; } .tree-node-icon { color: $--color-primary; } .common-tree-content { width: 100% !important; height: calc(100% - 60px - 56px ) !important; overflow: auto; box-sizing: border-box; padding:0 10px; margin-top: 10px; } // 表格 .common-table-wrapper { width: 100%; height: 100%; padding: 20px !important; position: relative; transition: height 0.3s linear; } .common-table-content{ width: 100%; height: 100%; .el-table thead tr th{ background-color: #F1F5F8 !important; } .el-table{ border-collapse: collapse !important; } .el-table__header tr th{ padding: 0; height: 48px !important; line-height: 48px !important; font-size: 16px !important; font-weight: 700 !important; color: #545454 !important; border-right:1px solid #DFE2E8 !important; } .el-table__body tr td{ padding: 0; height: 50px !important; line-height: 50px !important; font-size: 14px !important; color: #24262b !important; border-right:none !important; } .el-button--text{ color: $--theme-color !important; } .el-table .cell{ font-size: 14px !important; } .el-table th.el-table__cell > .cell { font-size: 16px !important; font-weight: 700 !important; } } .common-table-content.btngroup{ width: 100%; margin-top: 16px; height: calc(100% - 32px - 16px); // 32是按钮区域 16是margin } .common-table-content.pagenation{ margin-bottom: 16px; height: calc(100% - 32px - 16px); // 32是分页区域 16是margin } .common-table-content.btn-pagenation{ margin: 16px 0; height: calc(100% - 32px - 32px - 32px); // 32是按钮区域 32是分页区域 32是margin } .common-table-content.nation{ margin: 16px 0; height: calc(100% - 32px); // 32是margin } // 按钮区域 .common-btn-group{ width: 100%; .el-button--primary{ background-color: $--theme-color!important; border-color: $--theme-color !important; } .el-button--danger.is-disabled{ background-color: #fff !important; color: #FF7B80 !important; border-color: #FF7B80 !important; } } // 分页 .common-pagenation{ width: 100%; text-align: right; .btn-next,.btn-prev{ background-color: #C0C4CB !important; color: #fff !important; } .el-pagination.is-background .el-pager li:not(.disabled).active { font-size: 16px !important; background-color: $--theme-color !important; } .el-pagination__total{ font-size: 16px !important; } .el-pagination__sizes .el-input .el-input__inner{ font-size: 16px !important; } .el-pagination__jump{ font-size: 13px !important; } } /*拖拽效果*/ /*包围div样式*/ .drag-box { width: 100%; height: 100%; } /*左侧div样式*/ .drag-left { width: calc(16% - 10px); /*左侧初始化宽度*/ height: 100%; background: #ffffff; float: left; border-radius: 8px; box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.05); } /*拖拽区div样式*/ .drag-resize { cursor: col-resize; float: left; position: relative; top: calc(50% - 25px); background-color: #d6d6d6; border-radius: 5px; margin-top: -10px; width: 10px; height: 50px; background-size: cover; background-position: center; /*z-index: 99999;*/ font-size: 32px; color: white; } /*拖拽区鼠标悬停样式*/ .drag-resize:hover { color: #444444; } /*右侧div'样式*/ .drag-right { float: left; width: 84%; /*右侧初始化宽度*/ height: 100%; background: #ffffff; border-radius: 8px; box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.05); } .drag-right.no-bg { background: transparent; box-shadow: none; } // 表单区域 .el-dialog{ .el-dialog__header{ height: 18px !important; line-height: 18px !important; padding: 16px 20px !important; background-color: $--theme-color !important; } .el-dialog__title{ line-height: 18px !important; color: $--color-white !important; } .el-dialog__headerbtn,.el-dialog__close,.el-icon,.el-icon-close{ line-height: 9px !important; font-size: 22px !important; color: $--color-white !important; } .el-dialog__footer { text-align: center; } .el-button--default{ width: 90px !important; color: $--theme-color !important; border-color: $--theme-color !important; } .el-button--primary{ width: 90px !important; } .el-form-item{ text-align: center !important; margin-top: 20px !important; } .el-form-item.left-from-item{ text-align: left !important; } .flex-wrap { flex-wrap: wrap; } .el-input-number{ width: 90% !important; } .el-input__inner{ text-align: left !important; width: 100% !important; } .el-select{ width: 100% !important; } .el-select .el-tag__close.el-icon-close::before { font-size: 12px !important; display: block; transform: translate(0px, 3.5px) !important; } .el-date-editor{ width: 100% !important; } .collapse-title{ margin-left: 20px; margin-bottom: 10px; color: $--theme-color; } // .el-radio__label{ // background: #585858 !important; // border-color: #585858 !important; // margin-left: 10px; // } } // 添加/修改表单页面区域 .dialog{ width:100%; height:100%; display: flex; flex-wrap: wrap; align-content: space-between; .dialog-breadcrumb{ width: calc(100% - 40px); height: 14px; line-height: 80px; padding: 23px 20px; background-color: #ffffff; box-shadow: 0 0.10417vw 0.625vw 0 rgba(0, 0, 0, 0.1); border-radius: 8px 8px 8px 8px; display: flex; justify-content: space-between; .el-breadcrumb__inner{ font-size: 16px; vertical-align: middle; span,i{ font-size: 16px; vertical-align: middle; } .icon-class{ color: $--color-primary; font-size: 18px !important; margin-right: 6px; } } .el-breadcrumb__separator{ font-size: 16px; vertical-align: middle; } } .dialog-main{ width: 100%; height: calc(100% - 140px - 20px); padding: 20px; background-color: #ffffff; box-shadow: 0 0.10417vw 0.625vw 0 rgba(0, 0, 0, 0.1); border-radius: 8px 8px 8px 8px; display: flex; overflow-y: auto; box-sizing: border-box; .sub-title{ font-size: 16px; color: #24262b; border-bottom: 1px solid #DFE2E8; padding:0 10px 10px 12px; margin-bottom: 10px; position: relative; margin-top: 20px; } .sub-title:nth-of-type(1){ margin-top: 0; } .sub-title:after{ content: ''; left: 0; top: 2px; width: 3px; height: 18px; position: absolute; background-color: $--color-primary; } } .dialog-details{ width: calc(100% - 40px); height: calc(100% - 60px - 10px - 40px); padding: 20px; background-color: #ffffff; box-shadow: 0 0.10417vw 0.625vw 0 rgba(0, 0, 0, 0.1); border-radius: 8px 8px 8px 8px; overflow-y: auto; .details-title-content{ .details-title{ font-size: 16px; font-weight: bold; padding-left: 10px; position: relative; margin-right: 20px; } .details-title::before{ content: ""; position: absolute; left: 0; top: 2px; width: 4px; height: 18px; background-color: $--color-primary; } } } .dialog-button{ width: 100%; height: 80px; position: relative; background-color: #ffffff; box-shadow: 0 0.10417vw 0.625vw 0 rgba(0, 0, 0, 0.1); border-radius: 8px 8px 8px 8px; display: flex; align-items: center; justify-content: center; .button{ position: absolute; width: 15%; height: 40px; display: flex; justify-content: space-between; } .el-button--default{ width: 47% !important; color: $--theme-color !important; border-color: $--theme-color !important; } .el-button--primary{ width: 47% !important; } } .el-form{ width: 100%; } .el-form-item__content{ line-height: initial; } .el-form-item{ text-align: center !important; margin-top: 20px !important; } .el-input-number{ width: 90% !important; } .el-input__inner{ text-align: left !important; width: 100% !important; } .el-textarea{ height: 150px !important; } .el-textarea__inner{ height: 100% !important; } .el-select{ width: 100% !important; }} .el-date-editor.el-input{ width: 100% !important; } // 详情信息 .el-descriptions{ width: 100% !important; margin-bottom: 2vh !important; .el-tag{ height: 25px !important; line-height: 25px !important; } } // .el-tooltip__popper{ // background: rgba(13, 79, 145, 0.9) !important; // color: #ffffff; // border: #3399FF 1px solid; // } // .popper__arrow { // border-right-color: #3399FF !important; // } // .popper__arrow:after { // border-right-color: #3399FF !important; // }