@import './variables.scss'; @import './mixin.scss'; @import './transition.scss'; @import './element-ui.scss'; @import './sidebar.scss'; @import './btn.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; } .no-padding { padding: 0px !important; } .padding-content { padding: 4px 0; } a:focus, a:active { outline: none; } a, a:focus, a:hover { cursor: pointer; color: inherit; text-decoration: none; } div:focus { outline: none; } .fr { float: right; } .fl { float: left; } .pr-5 { padding-right: 5px; } .pl-5 { padding-left: 5px; } .block { display: block; } .pointer { cursor: pointer; } .inlineBlock { display: block; } .clearfix { &:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; } } aside { background: #eef1f6; padding: 8px 24px; margin-bottom: 20px; border-radius: 2px; display: block; line-height: 32px; font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; color: #2c3e50; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; a { color: #337ab7; cursor: pointer; &:hover { color: rgb(32, 160, 255); } } } //main-container全局样式 .app-container { padding: 10px; background: #fff; } .components-container { margin: 30px 50px; position: relative; } .pagination-container { margin-top: 0px; } .text-center { text-align: center } .sub-navbar { height: 50px; line-height: 50px; position: relative; width: 100%; text-align: right; padding-right: 20px; transition: 600ms ease position; background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%); .subtitle { font-size: 20px; color: #fff; } &.draft { background: #d0d0d0; } &.deleted { background: #d0d0d0; } } .link-type, .link-type:focus { color: #337ab7; cursor: pointer; &:hover { color: rgb(32, 160, 255); } } .filter-container { padding-bottom: 10px; .filter-item { display: inline-block; vertical-align: middle; margin-bottom: 10px; } } //refine vue-multiselect plugin .multiselect { line-height: 16px; } .multiselect--active { z-index: 1000 !important; } /* firefox */ input { filter: none !important; } .search{margin-bottom:10px;} .button{ height: 50px; .exportTable{ float: right;margin-right: 5px;height:30px;width:80px;border:1px solid #d4d4d4;line-height:30px;border-radius:3px;text-align:center;font-size:12px;color:#6b6b6b; } } $color1:#009C69; $color2:#FC2323; $color3:#fff; $color4:#F7BA2A; $color5:#e5f6f0; $color6:#FEF4DC; $color7:#333; $color8:#009A69; $color9:#4DB894; $color10:#D4D4D4; $color11:#6B6B6B; $color12:#CCCCCC; $color13:#666666; $color14:#EDF7F4; $color15:#19B6B1; $color16:#F4F4F5; $color17:#01BE80; $color18:#F65242; // .el-dialog__body{padding: 30px 0!important;} .el-dialog__header{border-bottom: 1px solid $color1;} .dialog-footer{ position: relative;height: 30px; // border-top: 1px solid $color1;height: 30px; // 保存+取消 .save {position: absolute;top: 10px;right: 20px;} .cancelClose {position: absolute;top: 10px;right: 130px;} .warning{position: absolute;top: 10px;right: 130px;} // 单取消 .cancelClose1{position: absolute;top: 10px;right: 20px;} // 小保存+小取消 .miniPrimary{position: absolute;top: 10px;right: 20px;} .downminCancel{position: absolute;top: 10px;right: 80px;} // :nth-child(2) button{position: absolute;top: 10px;right: 50px;} } // 颜色选择器 .el-color-dropdown__btn{color: $color8;border:none;background: none;} .el-color-dropdown__btn:focus{ color: $color8;border:none;background: none;} .el-color-dropdown__btn:hover{color: $color8;border:none;background: none;} .el-button.is-plain:focus, .el-button.is-plain:hover{color: $color8;border:none;background: none;} .app-main{background: #fff;} // 时间范围选中后 .el-date-table td.end-date span, .el-date-table td.start-date span{ background-color: $color1; } // 时间范围小图标 .el-date-editor .el-range__icon{ color: $color1; } .el-input__icon{ color: $color1; } .el-range-editor.is-active, .el-range-editor.is-active:hover{border-color: $color1;} // 当前时间默认颜色 .el-date-table td.today span{ color: $color1; } // 鼠标悬停颜色 .el-date-table td.available:hover{ color: $color1; } .el-date-table td.current:not(.disabled) span{ background-color: $color1; } // 下拉框小图标 .el-select .el-input .el-select__caret{ color: $color1; } .el-select .el-input.is-focus .el-input__inner{border-color: $color1;} .el-select .el-input__inner:focus{border-color: $color1;} .el-input.is-active .el-input__inner, .el-input__inner:focus{border-color: $color1;} .el-select-dropdown__item.selected{ color: $color1; } .el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color: $color1;} // table全选 .el-checkbox__input.is-checked .el-checkbox__inner{ background-color: $color1; border-color: $color1; } .el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner { background-color: $color1; border-color: $color1; } .el-checkbox__input.is-checked+.el-checkbox__label{ color: $color1; } // 单选按钮 .el-radio__input.is-checked .el-radio__inner{ background-color: $color1; border-color: $color1; } .el-radio__input.is-checked+.el-radio__label{ color: $color1; } .el-radio__inner:hover{border-color: $color1;} // table .el-table{font-size: 12px;color:$color7;} .el-table--border:after, .el-table--group:after, .el-table:before { background-color: $color15!important; } .el-table--border, .el-table--group { border-color: $color15!important; } .el-table--border th, .el-table--border th.gutter:last-of-type { border-bottom: 1px solid $color15!important; } .el-table--border td, .el-table--border th { border-right: 1px solid $color15!important; } .el-table td, .el-table th.is-leaf { border-bottom: 1px solid $color15!important; } .el-table td,.building-top .el-table th.is-leaf { border-bottom: 1px solid $color15!important; } .fixed-width{border-bottom: $color15!important ;} .el-table__fixed-right{height: 100%!important;border-bottom: 1px solid $color15!important;} .el-table__fixed{height: 100%!important;border-bottom: 1px solid $color15!important;} .el-table__footer{border-top: 1px solid $color15!important;} .has-gutter tr th{background-color: $color14!important;} .el-table tr th.is-leaf{background-color: $color14!important;} .el-table__fixed-right-patch{background-color: $color14!important;} .el-table .cell{line-height: 18px!important;} // 修改合计在滚动条上方 // .el-table { overflow-x: auto; } // .el-table__header-wrapper, .el-table__body-wrapper, .el-table__footer-wrapper { overflow: visible; } // .el-table::after { position: relative; } // .el-table--scrollable-x .el-table__body-wrapper { overflow: visible; } // .el-table__body{ // width: 100%; // table-layout: fixed !important; // } .operation{margin-top: 10px;height: 44px;} .fixed-width button{vertical-align: middle;} .fixed-width button{padding: 0 0;} // 恢复默认 .warning{background: #F7BA2A; border-color:#F7BA2A; color: #fff;min-width:100px;height: 40px;} .warning:focus, .warning:hover{ color: #fff; border-color: #F7BA2A; background-color: #F7BA2A; min-width:100px;height: 40px} // 新增/资料库/初始化库存/新增入库单 .el-button{padding: 0px 10px;font-size: 16px;} .success{ background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px; i{color: $color1;} } .success:focus{ background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px;} .success:hover{ color: $color1; border-color: $color1; background-color: $color5; height: 34px;line-height:34px;} // 复制 .copy{ background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px; i{color: $color4;} } .copy:focus{ background: $color3; border-color: $color3; color: $color7;height: 34px; line-height:34px;} .copy:hover{ color: $color4; border-color: $color4; background-color: $color6; height: 34px;line-height:34px;} // 删除 .danger{ height: 34px;line-height:34px;background: $color3; border-color: $color3; i{color: $color2;} } .danger:focus{height: 34px;line-height:34px;background: $color3; border-color: $color3; color: $color2;} .danger:hover{height: 34px;background: rgba(252,48,47,.1); border-color: $color2; color: $color2;} // 小编辑/小保存/下拉搜索按钮/拆分预混料 .miniSuccess{ color: $color7;font-size:18px;border:none;background: none;} .miniSuccess:focus{ color: $color7;font-size:18px;border:none;background: none;} .miniSuccess:hover{color: $color1;font-size:18px;border:none;background: none;} // 校正 .correcting{color: $color8;font-size:12px;} .correcting:focus{color: $color8;font-size:12px;} .correcting:hover{color: $color8;font-size:12px;} // 小删除 .miniDanger{color: $color2;font-size:18px;border:none;background: none;} .miniDanger:focus{color: $color2;font-size:18px;border:none;background: none;} .miniDanger:hover{color: $color2;font-size:18px;border:none;background: none;} // 小取消 .minCancel{color: $color2;font-size:18px;border:none;background: none;} .minCancel:focus{color: $color2;font-size:18px;border:none;background: none;} .minCancel:hover{ color: $color2;font-size:18px;border:none;background: none;} // 查询/重置 .successBorder{background: $color8; border-color: $color8; color: $color3;height:38px;padding:0 15px;font-size:14px;} .successBorder:focus{background: $color8; border-color: $color8; color: $color3;height:38px;padding:0 15px;font-size:14px;} .successBorder:hover{background:$color9; border-color: $color9; color: $color3;height:38px;padding:0 15px;font-size:14px;} // 查看 .miniPrimary{ background: $color8; border-color: $color8; color: $color3;padding: 7px 10px !important;font-size:14px;min-width:60px;} .miniPrimary:focus{background: $color8; border-color: $color8; color: $color3;padding: 7px 10px !important;font-size:14px;min-width:60px;} .miniPrimary:hover{color: $color3; border-color: $color9; background-color: $color9;padding: 7px 10px !important;font-size:14px;min-width:60px;} // 顺序保存 .sortCancel{ background: $color3; border-color: $color3; color: $color13;height: 34px; line-height:34px;} .sortCancel:focus{ background: $color3; border-color: $color12; color: $color13;height: 34px; line-height:34px;} .sortCancel:hover{ color: $color13; border-color: $color12; background-color: $color3; height: 34px;line-height:34px;} // 下拉取消 .downminCancel{background: $color3; border-color: $color12; color: $color13;padding: 7px 10px;font-size:14px;min-width:60px;} .downminCancel:focus{background: $color3; border-color: $color12; color: $color13;padding: 7px 10px;font-size:14px;min-width:60px;} .downminCancel:hover{ color: $color13; border-color: $color12; background-color: $color3; padding: 7px 10px;font-size:14px;min-width:60px;} // 弹出小框取消跟确认 .el-message-box__btns .el-button{padding: 9px 15px!important;} .el-message-box__btns .el-button--default:hover{color: $color8; border-color: $color8; background-color:$color3; padding: 9px 19px;} .el-message-box__btns .el-button--primary{color: $color3; border-color: $color8; background-color: $color8; padding: 9px 19px;} .el-message-box__btns .el-button--primary:hover{color: $color3; border-color: $color9; background-color: $color9; padding: 9px 19px;} // 隐藏 .hide{background: $color3; border-color: $color10; color: $color11;height:38px;} .hide:focus{background: $color3; border-color: $color10; color: $color11;height:38px;} .hide:hover{background:$color16; border-color: $color10; color: $color11;height:38px;} // 放大 .hide2{background: $color3; border-color: $color10; color: $color11;height:38px;} .hide2:focus{background: $color3; border-color: $color10; color: $color11;height:38px;} .hide2:hover{background:$color16; border-color: $color10; color: $color11;height:38px;} // 导出 .export{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;margin-right: 10px;} .export:focus{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;margin-right: 10px;} .export:hover{ color: $color11; border-color: $color10; background-color: $color16; min-width:100px;height: 38px;margin-right: 10px;} // 导入 .import{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;} .import:focus{background: $color3; border-color: $color10; color: $color11;min-width:100px;height: 38px;} .import:hover{ color: $color11; border-color: $color10; background-color: $color16; min-width:100px;height: 38px;} // 切换表格 .exportTable{ height:30px;width:80px;border:1px solid $color10;line-height:30px;border-radius:3px;text-align:center;font-size:12px;color:#6b6b6b;} .exportTable:focus{background: $color3; border-color: $color10; color: $color11;height:30px;width:80px;} .exportTable:hover{ color: $color11; border-color: $color10; background-color: $color16; height:30px;width:80px;} // 取消/关闭 .cancelClose{background: $color3; border-color: $color12; color: $color13;min-width:100px;height: 38px;} .cancelClose:focus, .cancelClose:hover{ color: $color13; border-color: $color12; background-color: $color3; min-width:100px;height: 38px} .cancelClose1{background: $color3; border-color: $color12; color: $color13;min-width:100px;height: 38px;} .cancelClose1:focus, .cancelClose1:hover{ color: $color13; border-color: $color12; background-color: $color3; min-width:100px;height: 38px} // 确认 .save{background: $color8; border-color: $color8; color: $color3;min-width:100px;height: 38px;} .save:focus{background: $color8; border-color: $color8; color: $color3;min-width:100px;height: 38px;} .save:hover{background:$color9; border-color: $color9; color: $color3;min-width:100px;height: 38px;} // 仪表盘编辑 .el-button--text{color: $color1!important;} // 仪表盘添加筛选条件 .save.is-disabled, .save.is-disabled:focus, .save.is-disabled:hover{background: $color1!important;color:$color3 ; } .visualize-card div i{ color: #009A69 !important; } // 间隔线 .centerSpan{padding: 0 5px 0 8px;color: $color12;} // 时间快捷键左右 .elIconArrowLeft{margin-right: -5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;} .elIconArrowLeft:focus{margin-right: -5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;} .elIconArrowLeft:hover{margin-right: -5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color16;border-color:$color10;} .elIconArrowRight{margin-right: 5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;} .elIconArrowRight:focus{margin-right: 5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color3;border-color:$color10;} .elIconArrowRight:hover{margin-right: 5px;margin-top:1px;padding: 11px 11px !important;color:$color1;background:$color16;border-color:$color10;} // 关闭窗口 .el-message-box__headerbtn:focus .el-message-box__close, .el-message-box__headerbtn:hover .el-message-box__close{color:$color1;} .el-dialog__headerbtn:focus .el-dialog__close, .el-dialog__headerbtn:hover .el-dialog__close{color:$color1;} // tab切换 .el-tabs__item.is-active { color: $color1; } .el-tabs__active-bar{background-color: $color1;} .el-tabs__item:hover{color: $color1;} .el-tabs__item{font-size: 16px;} .el-radio-button__orig-radio:checked+.el-radio-button__inner{ background-color:$color1;border-color:$color1; } .el-radio-button__inner:hover{color: $color1;} .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color: $color1;} .el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color: $color1;} // 给我一点时间 .el-loading-spinner .el-loading-text{color: $color1;} .el-loading-spinner .path{stroke:$color1;} // 菜单-树 .el-tag{background-color:$color5;border-color:$color1;color:$color1;} // 启用 .el-switch.is-checked .el-switch__core{ border-color:$color17!important;background-color:$color17!important; } .el-switch__core{ border-color:$color18!important;background-color:$color18!important; } // 分页 .el-pagination.is-background .el-pager li:not(.disabled).active{background-color:$color1; } .el-pagination.is-background .el-pager li:not(.disabled).active:hover{color: #fff; } .el-pagination.is-background .el-pager li:not(.disabled):hover{color: $color1;} body .el-table th.gutter{ display: table-cell!important; } body .el-table tr.gutter{ display: table-cell!important; } // 顶部tab切换 .tags-view-container .tags-view-wrapper .tags-view-item.active{ background-color:$color1 !important;border-color: $color1!important; } // 右侧下拉 .el-dropdown-menu__item:focus, .el-dropdown-menu__item:not(.is-disabled):hover{color:$color1 !important;} // .gutter { display: block !important; width: 17px !important; } // .el-table{ min-height: 290px !important; } .down{ width: 40px;color:red!important;height: 40px;float: right; transform:rotate(7deg); -ms-transform:rotate(180deg); /* IE 9 */ -moz-transform:rotate(180deg); /* Firefox */ -webkit-transform:rotate(180deg); /* Safari 和 Chrome */ -o-transform:rotate(180deg); } .el-menu-item.is-active{ color:$menuActiveBg !important; } .el-dialog__header { padding: 15px 20px 15px; } .el-dialog__headerbtn{ top: 15px; } /*dialog header*/ .el-dialog__header{ // background: #e3eaed; } .avue-crud__dialog__header { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } .el-dialog__title { color: rgba(0,0,0,.85); font-weight: 500; word-wrap: break-word; } .avue-crud__dialog__menu { padding-right: 20px; float: left; position: relative; } .avue-crud__dialog__menu svg { color: #909399; position: absolute; width: 10px !important; height: 10px !important; top: -8px; right: 25px; } .avue-crud__dialog__menu .svg-icon{ } .el-icon-full-screen{ cursor: pointer; } .el-icon-full-screen:before { content: "\e719"; }