/* 初始化样式 ------------------------------- */ * { margin: 0; padding: 0; box-sizing: border-box; outline: none !important; } :root { --hotline-color-white: #ffffff; // 整体背景颜色 --hotline-bg-main-color: #f0f4ff; --hotline-bg-color: #f5f5ff; --hotline-border-color-light: #f1f2f3; --hotline-color-primary-lighter: #ecf5ff; --hotline-color-warning-lighter: #fdf6ec; --hotline-color-danger-lighter: #fef0f0; --hotline-color-dark-hover: #0000001a; --hotline-color-menu-hover: rgba(0, 0, 0, 0.3); --hotline-color-user-hover: rgba(0, 0, 0, 0.04); --hotline-color-seting-main: #e9eef3; --hotline-color-seting-aside: #d3dce6; --hotline-color-seting-header: #b3c0d1; --hotline-bg-grey-color: #999; // 主题字体颜色 --hotline-color-text-main: var(--el-text-color-primary); // 主题字体颜色淡色 --hotline-color-text-main-light: #666; --hotline-overlay-color-lighter-4: rgba(0, 0, 0, 0.4); --hotline-overlay-color-lighter-3: rgba(0, 0, 0, 0.3); --hotline-color-popover: #667aed; // 列表操作图标的字体的大小 --hotline-table-icon-font-size: 16px; // tagsview 按钮 --hotline-tagsview-icon-color: #d4d4d4; // element主题色 --el-color-danger: #f56c6c; --el-color-success: #67c23a; --el-color-warning: #e6a23c; // 工单流转记录 --hotline-order-CrculationRecord-color: #eef0f4; } html, body, #app { margin: 0; padding: 0; width: 100%; height: 100%; font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: var(--hotline-bg-main-color); font-size: 14px; overflow: hidden; position: relative; } ul, li { list-style: none; } /* 主布局样式 ------------------------------- */ .layout-container { width: 100%; height: 100%; color: var(--hotline-color-text-main); .layout-pd { padding: 15px !important; } .layout-flex { display: flex; flex-direction: column; flex: 1; } .layout-aside { background: var(--hotline-bg-menuBar); box-shadow: 2px 0 6px rgb(0 21 41 / 1%); height: inherit; position: relative; z-index: 1; display: flex; flex-direction: column; overflow-x: hidden !important; .el-scrollbar__view { overflow: hidden; } } .layout-header { padding: 0 !important; height: auto !important; } .layout-main { padding: 0 !important; overflow: hidden; width: 100%; background-color: var(--hotline-bg-main-color); display: flex; flex-direction: column; // 内层 el-scrollbar样式,用于界面高度自适应(main.vue) .layout-main-scroll { @extend .layout-flex; .layout-parent { @extend .layout-flex; position: relative; } } } // 用于界面高度自适应 .layout-padding { @extend .layout-pd; position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; @extend .layout-flex; &-auto { height: inherit; @extend .layout-flex; } &-view { background-color: var(--el-color-white); width: 100%; height: 100%; border-radius: 8px; overflow: hidden; } } // 用于界面高度自适应,主视图区 main 的内边距,用于 iframe .layout-padding-unset { padding: 0 !important; &-view { border-radius: 0 !important; border: none !important; } } // 用于设置 iframe loading 时的高度(loading 垂直居中显示) .layout-iframe { .el-loading-parent--relative { height: 100%; } } .el-scrollbar { width: 100%; } // 此字段多次用到,建议不删除,如需修改,请重写覆盖样式 .layout-view-bg-white { background: var(--el-color-white); width: 100%; height: 100%; border-radius: 4px; border: 1px solid var(--el-border-color-light, #ebeef5); } .layout-el-aside-br-color { border-right: 1px solid var(--el-border-color-light, #ebeef5); } // pc端左侧导航样式 .layout-aside-pc-220 { width: 220px !important; transition: width 0.3s ease; } .layout-aside-pc-64 { width: 64px !important; transition: width 0.3s ease; } .layout-aside-pc-1 { width: 1px !important; transition: width 0.3s ease; } // 手机端左侧导航样式 .layout-aside-mobile { position: fixed; top: 0; left: -220px; width: 220px; z-index: 9999999; } .layout-aside-mobile-close { left: -220px; transition: all 0.3s cubic-bezier(0.39, 0.58, 0.57, 1); } .layout-aside-mobile-open { left: 0; transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); } .layout-aside-mobile-mode { position: fixed; top: 0; right: 0; bottom: 0; left: 0; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 9999998; animation: error-img 0.3s; } .layout-main-height-50 { height: calc(100vh - 50px); } .layout-columns-warp { flex: 1; display: flex; overflow: hidden; } .layout-hide { display: none; } } /* element plus 全局样式 ------------------------------- */ .layout-breadcrumb-seting { .el-divider { background-color: rgb(230, 230, 230); } } /* nprogress 进度条跟随主题颜色 ------------------------------- */ #nprogress { .bar { background: var(--el-color-primary) !important; z-index: 9999999 !important; } } /* flex 弹性布局 ------------------------------- */ .flex { display: flex; } .flex-auto { flex: 1; overflow: hidden; } .flex-center { @extend .flex; flex-direction: column; width: 100%; overflow: hidden; } .flex-center-between { @extend .flex; justify-content: space-between; align-items: center; width: 100%; overflow: hidden; } .flex-between { @extend .flex; justify-content: space-between; } .flex-center-align { display: flex; align-items: center; } .flex-center-center { display: flex; align-items: center; justify-content: center; } .flex-margin { margin: auto; } .flex-warp { display: flex; flex-wrap: wrap; align-content: flex-start; margin: 0 -5px; .flex-warp-item { padding: 5px; .flex-warp-item-box { width: 100%; height: 100%; } } } /* cursor 鼠标形状 ------------------------------- */ // 默认 .cursor-default { cursor: default !important; } // 帮助 .cursor-help { cursor: help !important; } // 手指 .cursor-pointer { cursor: pointer !important; } // 移动 .cursor-move { cursor: move !important; } /* 宽高 100% ------------------------------- */ .w100 { width: 100% !important; } .h100 { height: 100% !important; } .vh100 { height: 100vh !important; } .max100vh { max-height: 100vh !important; } .min100vh { min-height: 100vh !important; } /* 颜色值 ------------------------------- */ .color-primary { color: var(--el-color-primary); } .color-success { color: var(--el-color-success); } .color-warning { color: var(--el-color-warning); } .color-danger { color: var(--el-color-danger); } .color-info { color: var(--el-color-info); } /* 字体大小全局样式 ------------------------------- */ @for $i from 10 through 32 { .font#{$i} { font-size: #{$i}px !important; } } /* 行高 ------------------------------- */ @for $i from 10 through 50 { .lineHeight#{$i} { line-height: #{$i}px !important; } } /* 外边距、内边距全局样式 ------------------------------- */ @for $i from 0 through 35 { .mt#{$i} { margin-top: #{$i}px !important; } .mr#{$i} { margin-right: #{$i}px !important; } .mb#{$i} { margin-bottom: #{$i}px !important; } .ml#{$i} { margin-left: #{$i}px !important; } .pt#{$i} { padding-top: #{$i}px !important; } .pr#{$i} { padding-right: #{$i}px !important; } .pb#{$i} { padding-bottom: #{$i}px !important; } .pl#{$i} { padding-left: #{$i}px !important; } .pd#{$i} { padding: #{$i}px !important; } .mg#{$i} { margin: #{$i}px !important; } } /* 宽度长度 ------------------------------- */ @for $i from 0 through 1000 { .width#{$i} { width: #{$i}px !important; } .height#{$i} { height: #{$i}px !important; } } /* 文字超过几行显示省略号 ------------------------------- */ @for $i from 1 through 10 { .text-ellipsis#{$i} { overflow: hidden; word-break: break-all; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: $i; -webkit-box-orient: vertical; } } /* 公共样式 ------------------------------- */ // 超过一行 .text-no-wrap { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } // 表格头部文字 .table-title { font-size: var(--el-font-size-large); font-weight: 600; color: var(--hotline-color-bar); } // 选择图片下拉 .item-Img { display: flex; align-items: center; justify-content: space-between; height: 100%; img { width: 20px; height: 20px; } } .flex-end { display: flex; justify-content: flex-end; } // 更新提示弹框 .updateTips { .el-notification__group { width: 100%; } } // 公共标题样式 左侧带颜色条 .border-title { font-size: var(--el-font-size-medium); line-height: var(--el-font-size-medium); color: var(--el-color-primary); border-left: 4px solid var(--el-color-primary); padding-left: 7px; } // 字体加粗 .font-bold { font-weight: bold; } /* 表单仅用于展示 */ .show-info-form { .el-form-item { margin-bottom: 5px; } } /* 失效时间隐藏此刻选项 */ .no-atTheMoment { .el-button.is-text { display: none !important; } } /* 边框按钮样式 */ .default-button { color: var(--el-color-primary); border: 1px solid var(--el-color-primary); } /* 消息通知样式 */ .notice-container { &-box { display: flex; max-height: 300px; &-inner { flex: 1; padding: 10px 0 10px 10px; &:last-child { border-left: var(--el-border); } .el-tag { margin: 0 5px 5px 0; } } } } /* 超期圆形 */ .overdue-circle { width: 15px; height: 15px; border-radius: 50%; display: inline-block; } /* 正常状态样式 */ .overdue-status-0 { @extend .overdue-circle; background-color: #109688; } /* 即将超期状态样式 */ .overdue-status-1 { @extend .overdue-circle; background-color: #f49934; } /* 已超期状态样式 */ .overdue-status-2 { @extend .overdue-circle; background-color: #d70024; } /* 剩余时间小于50%”或“剩余时间小于20% */ .overdue-status-3 { @extend .overdue-circle; background-color: #2D2DB6; } /* 关键词查询输入框宽度 */ .keyword-input { min-width: 250px; } .el-empty__description{ margin-top: 5px; } /* 还原内容的换行和缩进 */ .formatted-text { white-space: pre-wrap; /* 保留换行 */ word-wrap: break-word; /* 超长单词自动换行 */ overflow-wrap: break-word; /* 处理长单词或 URL 的换行 */ line-height: 20px; .el-form-item__content{ line-height: 20px !important; } }