123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474 |
- //饿了么UI组件的样式重绘
- .el-button[block] {
- width: 100%;
- }
- .el-button .hc-icon-i {
- margin-right: 4px;
- }
- .el-button.is-loading .hc-icon-i {
- display: none;
- }
- //主色
- .el-button--primary.is-link,
- .el-button--primary.is-plain,
- .el-button--primary.is-text {
- --el-button-border-color: transparent;
- --el-button-hover-text-color: var(--el-color-primary);
- --el-button-hover-bg-color: var(--el-color-primary-light-8);
- --el-button-hover-border-color: transparent;
- }
- //红色
- .el-button--danger.is-link,
- .el-button--danger.is-plain,
- .el-button--danger.is-text {
- --el-button-border-color: transparent;
- --el-button-hover-text-color: var(--el-color-danger);
- --el-button-hover-bg-color: var(--el-color-danger-light-8);
- --el-button-hover-border-color: transparent;
- }
- //绿色
- .el-button--success.is-link,
- .el-button--success.is-plain,
- .el-button--success.is-text {
- --el-button-border-color: transparent;
- --el-button-hover-text-color: var(--el-color-success);
- --el-button-hover-bg-color: var(--el-color-success-light-8);
- --el-button-hover-border-color: transparent;
- }
- .el-button + .el-button {
- margin-left: 20px;
- }
- .el-button--small + .el-button--small {
- margin-left: 5px;
- }
- //单选框、多选框
- .el-checkbox.size-xl .el-checkbox__inner,
- .el-radio.size-xl .el-radio__inner {
- width: 18px;
- height: 18px;
- }
- .el-checkbox.size-xl .el-checkbox__label,
- .el-radio.size-xl .el-radio__label {
- font-size: 16px;
- font-weight: 400;
- }
- .el-checkbox.size-xl .el-checkbox__inner::after {
- height: 10px;
- left: 6px;
- top: 1px;
- }
- .el-radio.size-xl .el-radio__inner::after {
- width: 8px;
- height: 8px;
- }
- //消息提示
- .el-message {
- --el-message-padding: 10px 20px;
- border: 0;
- box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.012), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
- }
- //按钮重绘
- .el-button[hc-btn] {
- border-radius: 6px;
- padding: 8px 20px;
- font-weight: 400;
- height: 40px;
- border: 0;
- box-shadow: var(--hc-shadow);
- &.is-loading:not([class*='el-button--']) {
- --el-button-bg-color: #f3f3f3;
- --el-button-text-color: #8c9099;
- }
- &.is-disabled:not([class*='el-button--']) {
- --el-button-disabled-text-color: #bfbfbf;
- --el-button-disabled-bg-color: #f3f3f3;
- }
- &:not([class*='el-button--']) {
- --el-button-bg-color: #f1f5f8;
- --el-button-text-color: #838791;
- --el-button-hover-text-color: #838791;
- --el-button-active-text-color: #838791;
- --el-button-hover-bg-color: var(--el-color-primary-light-9);
- --el-button-active-bg-color: var(--el-color-primary-light-8);
- }
- &.el-button--primary.is-plain {
- --el-button-text-color: var(--el-color-primary);
- --el-button-bg-color: var(--el-color-primary-light-9);
- --el-button-hover-text-color: var(--el-color-primary);
- --el-button-hover-bg-color: var(--el-color-primary-light-8);
- --el-button-active-text-color: var(--el-color-primary);
- --el-button-active-bg-color: var(--el-color-primary-light-7);
- }
- }
- //表单
- .el-form {
- position: relative;
- overflow: hidden;
- }
- //滚动条
- .el-scrollbar {
- overflow: initial;
- .el-scrollbar__bar.is-vertical {
- right: -16px;
- }
- .el-scrollbar__bar.is-horizontal {
- bottom: -20px;
- }
- }
- //个人中心项目列表
- .hc-project-menu.el-menu {
- --el-menu-level: 0;
- background-color: initial;
- border: initial;
- .el-sub-menu {
- border: 1px solid #e9e9e9;
- border-radius: 3px;
- margin-bottom: 20px;
- .el-sub-menu__title .hc-menu-icon {
- font-size: 20px;
- margin-right: 10px;
- }
- &.is-opened .el-sub-menu__title {
- color: var(--el-color-primary);
- background-color: var(--el-color-primary-light-8);
- }
- .el-menu {
- background-color: initial;
- }
- .el-menu-item {
- padding-left: 50px;
- }
- }
- .el-menu-item.is-active {
- color: var(--el-menu-active-color);
- background-color: var(--el-color-primary-light-9);
- .hc-menu-icon {
- position: absolute;
- font-size: 16px;
- left: 22px;
- }
- }
- }
- //表格
- .el-table[hc] {
- border: 1px solid #e9e9e9;
- --el-table-bg-color: initial;
- --el-table-header-bg-color: #DAE8F3;
- --el-table-header-text-color: #50545E;
- --el-table-tr-bg-color: #F1F5F8;
- --el-fill-color-lighter: #E7EEF4;
- --el-table-text-color: #666666;
- --el-table-row-hover-bg-color: var(--el-color-primary-light-9);
- th.el-table__cell>.cell {
- font-weight: 400;
- }
- .el-table__cell {
- padding: 12px 0;
- .el-checkbox {
- --el-checkbox-input-height: 18px;
- --el-checkbox-input-width: 18px;
- --el-checkbox-font-size: 16px;
- --el-checkbox-border-radius: 3px;
- .el-checkbox__inner::after {
- top: 3px;
- left: 6px;
- }
- }
- .el-checkbox__input.is-indeterminate .el-checkbox__inner::before {
- top: 7px;
- }
- }
- .el-table__inner-wrapper::before {
- background-color: transparent;
- }
- }
- //下拉框
- .el-select[block] {
- width: 100%;
- }
- //工单服务的时间轴
- .time-line-box .el-timeline.hc-time-line {
- padding-left: 5px;
- padding-top: 5px;
- .el-timeline-item {
- padding-bottom: 24px;
- .el-timeline-item__tail {
- top: 28px;
- left: 6px;
- height: calc(100% - 36px);
- border-width: 1px;
- border-color: #838791;
- }
- .el-timeline-item__node {
- display: none;
- }
- .el-timeline-item__wrapper {
- padding-left: 38px;
- .el-timeline-item__content {
- .timeline-item-icon {
- position: absolute;
- width: 24px;
- height: 24px;
- left: -5px;
- border: 1px solid #838791;
- border-radius: 50px;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #838791;
- .check-icon {
- font-size: 18px;
- }
- }
- .reply-name {
- color: #838791;
- font-size: 18px;
- }
- .reply-content {
- color: #838791;
- margin-top: 5px;
- }
- }
- }
- &.success {
- .el-timeline-item__tail {
- border-color: var(--el-color-primary);
- }
- .el-timeline-item__wrapper .el-timeline-item__content .timeline-item-icon {
- color: var(--el-color-primary);
- border: 1px solid var(--el-color-primary);
- }
- }
- &.primary {
- .el-timeline-item__wrapper .el-timeline-item__content {
- .reply-name {
- color: #1A1A1A;
- }
- .timeline-item-icon {
- background-color: var(--el-color-primary);
- border: 1px solid var(--el-color-primary);
- color: #ffffff;
- }
- }
- }
- }
- }
- //滚动条
- .el-scrollbar {
- scroll-behavior: smooth;
- .el-scrollbar__wrap--hidden-default {
- scroll-behavior: smooth;
- }
- }
- //弹窗
- .el-overlay-dialog {
- .el-dialog.hc-modal-border {
- .el-dialog__header {
- padding-bottom: var(--el-dialog-padding-primary);
- border-bottom: 1px solid #EEEEEE;
- margin-right: 0;
- }
- .el-dialog__footer {
- border-top: 1px solid #EEEEEE;
- padding-top: var(--el-dialog-padding-primary);
- }
- }
- .el-dialog.hc-modal-nop {
- .el-dialog__body {
- padding: 0;
- }
- }
- }
- //上传
- .el-upload-list.el-upload-list--picture-card {
- --el-upload-list-picture-card-size: 88px;
- .el-upload--picture-card {
- --el-upload-picture-card-size: 88px;
- .hc-upload-icon {
- font-size: 39px;
- }
- }
- }
- //头像
- .el-avatar {
- color: initial !important;
- background: initial !important;
- }
- //表格
- .hc-table-ref-box {
- position: relative;
- display: inline-grid;
- width: 100%;
- }
- //naiveui 鼠标右键菜单的图标
- .n-dropdown-menu .n-dropdown-option .n-dropdown-option-body .n-dropdown-option-body__prefix.n-dropdown-option-body__prefix--show-icon {
- font-size: 22px;
- }
- //树
- .el-tree.hc-tree-node {
- --el-fill-color-blank: transparent;
- --el-tree-node-hover-bg-color: var(--el-color-primary-light-9);
- --el-tree-text-color: #50545E;
- --el-tree-expand-icon-color: #838791;
- background: var(--el-fill-color-blank);
- color: var(--el-tree-text-color);
- .el-tree-node__content {
- border-radius: 2px;
- }
- &.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
- background-color: var(--el-color-primary-light-7);
- }
- .el-tree-node__expand-icon {
- font-size: 16px;
- }
- }
- //弹窗提示
- .el-dialog .el-dialog__body {
- position: relative;
- max-height: 60vh;
- overflow: auto;
- .el-alert {
- margin-top: -10px;
- margin-bottom: 20px;
- }
- }
- .el-dialog.hc-modal-table .el-dialog__body {
- height: 60vh;
- }
- //上传文件列表
- .hc-upload-border {
- .hc-upload-loading {
- position: relative;
- }
- .el-upload-list {
- border-top: 1px solid #f1f1f1;
- margin-top: 24px;
- padding-top: 24px;
- }
- }
- //表单上传组件
- .hc-upload-table-form {
- position: relative;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- .el-upload {
- position: relative;
- flex: 1;
- height: 100%;
- color: #ccc;
- display: flex;
- justify-content: center;
- align-items: center;
- .hc-table-form-icon {
- font-size: 24px;
- font-weight: 100;
- }
- .hc-table-form-img {
- width: 100%;
- height: 100%;
- }
- }
- }
- //伪表单
- .el-form-item--large .el-form-item__content .form-item-div {
- position: relative;
- color: #606266;
- font-size: 14px;
- padding: 0 12px;
- height: 40px;
- width: 100%;
- border: 1px solid #e0e0e6;
- border-radius: 4px;
- display: flex;
- align-items: center;
- }
- //无名称
- .el-form-item[no-label] .el-form-item__label-wrap {
- margin-left: 0 !important;
- }
- .el-form--large.el-form--label-top .el-form-item .el-form-item__label {
- min-height: 22px;
- }
- //输入框验证问题
- .el-input.is-error .el-input__wrapper {
- box-shadow: 0 0 0 1px var(--el-color-danger) inset;
- }
- //设置表单样式
- .hc-table-form-box {
- td {
- padding: 6px;
- font-family: "EUDC", 宋体, v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
- .el-input {
- background-color: #ffffff !important;
- border-radius: 3px;
- .el-input__wrapper {
- background-color: inherit;
- }
- .el-input__wrapper.is-focus, .el-input__wrapper:hover {
- box-shadow: 0 0 0 1.5px var(--el-input-focus-border-color) inset;
- background-color: #eddac4;
- }
- //公式 #dcdcdc
- //焦点 #eddac4
- }
- }
- }
- //设置表单的上传
- .hc-upload-table-form {
- position: relative;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- .el-upload {
- position: relative;
- flex: 1;
- height: inherit;
- color: #ccc;
- .hc-table-form-icon {
- font-size: 24px;
- font-weight: 100;
- }
- .hc-table-form-img {
- width: 100%;
- height: inherit;
- }
- .hc-table-form-del {
- position: absolute;
- right: 0;
- top: 0;
- }
- }
- }
|