123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619 |
- /*
- * element-ui不管是自行构建的主题还是动态设置的主题,
- * 产生的css文件中存在近乎1/3的冗余样式,过于累赘,不如直接覆盖样式简洁。
- */
- // dialog
- .el-dialog {
- border-radius: 8px;
- overflow: hidden;
- border: 1px solid #c8c8ca;
- box-shadow: 5px 5px 4px 0px rgba(0, 0, 0, 0.1);
- &.is-fullscreen {
- border-radius: 0;
- .el-dialog__header {
- width: 100%;
- position: fixed;
- z-index: 9;
- background-color: #fff;
- border-bottom: 1px solid $--color-border;
- }
- .el-dialog__body {
- padding-top: 90px;
- }
- }
- }
- .el-dialog__header {
- padding: 15px 20px;
- .el-dialog__title {
- color: $--color-text-dark;
- font-size: 16px;
- line-height: 19px;
- }
- .el-dialog__headerbtn {
- top: 15px;
- width: 16px;
- height: 16px;
- background-image: url(../images/icon-close.png);
- background-repeat: no-repeat;
- background-size: 100% 100%;
- &:hover {
- background-image: url(../images/icon-close-act.png);
- }
- .el-dialog__close {
- display: none;
- }
- }
- }
- .el-dialog__body {
- padding: 30px 40px;
- position: relative;
- border-top: 1px solid $--color-border;
- color: $--color-text-dark-1;
- .el-form-item__label {
- padding-right: 2px;
- }
- .el-input-tips {
- color: rgba(187, 187, 187, 1);
- margin-left: 13px;
- }
- }
- .el-dialog__footer {
- overflow: hidden;
- .el-button {
- width: 100px;
- border-radius: 8px;
- float: right;
- margin-left: 10px;
- }
- }
- // .opacity-dialog
- .opacity-dialog {
- .el-dialog {
- background-color: transparent;
- }
- .el-dialog__header,
- .el-dialog__footer {
- display: none;
- }
- .el-dialog__body {
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- padding: 0;
- background-color: transparent;
- }
- }
- // form
- .el-form {
- &-item {
- &__error {
- font-size: 12px;
- color: rgba(254, 108, 105, 1);
- }
- &__content {
- .el-table {
- line-height: 1;
- }
- }
- }
- // form-info
- &.form-info {
- .el-form-item {
- margin-bottom: 0;
- .el-form-item__label {
- color: $--color-text-gray-2;
- }
- }
- }
- &--label-top {
- .el-form-item__label {
- line-height: 20px;
- padding-bottom: 5px;
- font-size: 12px;
- }
- }
- }
- // input
- .el-input {
- &.is-focus {
- .el-input__inner {
- border-color: $--color-primary !important;
- }
- }
- &.is-disabled {
- .el-input__inner {
- color: $--color-text-gray-2;
- }
- }
- .el-input__inner {
- border-radius: 8px;
- border-color: #ddd;
- background-color: #fff;
- }
- // .el-input__suffix {
- // right: 0;
- // border-left: 1px solid #ddd;
- // }
- }
- // textarea
- .el-textarea {
- &.is-disabled {
- .el-textarea__inner {
- color: $--color-text-gray-2;
- }
- }
- }
- .el-select {
- .el-input__suffix {
- right: 0;
- border-left: 1px solid #ddd;
- }
- .el-input {
- .el-select__caret {
- width: 30px;
- }
- .el-icon-arrow-up:before {
- font-size: 12px;
- content: "\e78f";
- }
- }
- }
- .el-select-dropdown {
- &.popper-filter {
- .el-scrollbar {
- display: block !important;
- padding-top: 52px;
- }
- .el-select-filter {
- padding: 0 10px;
- position: absolute;
- width: 100%;
- top: 10px;
- left: 0;
- z-index: 9;
- }
- }
- }
- // upload
- .el-upload,
- .el-upload-dragger {
- width: 100%;
- }
- // radio
- .el-radio-button {
- &:hover {
- .el-radio-button__inner {
- color: $--color-primary;
- }
- }
- }
- .el-radio-button__orig-radio:checked + .el-radio-button__inner {
- color: $--color-white;
- border-color: $--color-primary;
- background: $--color-primary;
- }
- // button
- .el-button {
- border-radius: $--border-radius;
- > .icon {
- margin-right: 5px;
- }
- > span {
- display: inline-block;
- }
- &.is-disabled {
- color: $--color-text-gray-3 !important;
- background: $--color-background !important;
- border: 1px solid $--color-border !important;
- }
- }
- .el-button + .popover-button,
- .popover-button + .el-button {
- margin-left: 10px;
- }
- .el-button + .el-button {
- margin-left: 10px;
- }
- .el-button--text + .el-button--text {
- margin-left: 5px;
- }
- .el-button--small {
- padding-top: 8px;
- padding-bottom: 8px;
- font-size: 12px;
- }
- .el-button--text {
- color: $--color-text-gray-2;
- & + .el-button--text {
- margin-left: 10px;
- }
- }
- .el-button--info {
- background-color: $--color-cyan;
- border-color: $--color-cyan;
- &:hover,
- &:focus {
- background-color: $--color-cyan-light;
- border-color: $--color-cyan-light;
- }
- }
- .el-button--primary {
- background-color: $--color-primary;
- border-color: $--color-primary;
- &:hover,
- &:focus {
- background-color: $--color-primary-light;
- border-color: $--color-primary-light;
- }
- }
- .el-button--success {
- background-color: $--color-success;
- border-color: $--color-success;
- &:hover,
- &:focus {
- background-color: $--color-success-light;
- border-color: $--color-success-light;
- }
- }
- // table
- .el-table {
- color: $--color-text-dark-1;
- thead th {
- color: $--color-text-gray-2;
- }
- thead.is-group th {
- background-color: $--color-white;
- }
- tr.el-table__row {
- color: $--color-text-dark;
- }
- td,
- th {
- border-color: $--color-border !important;
- padding: 14px 0;
- font-weight: 500;
- }
- .el-table__row.row-danger {
- color: $--color-danger;
- }
- &.el-table--noback {
- tr.el-table__row {
- background-color: $--color-white;
- }
- }
- .cell-head {
- display: inline-block;
- vertical-align: middle;
- line-height: 1.3;
- }
- // caret-wrapper
- .caret-wrapper {
- width: 20px;
- height: 20px;
- top: -1px;
- .sort-caret {
- &.ascending {
- top: -1px;
- }
- &.descending {
- bottom: -1px;
- }
- }
- }
- // action-column
- td.action-column {
- padding-left: 10px;
- padding-right: 10px;
- .cell {
- padding: 0;
- margin: 0 -5px;
- }
- .el-button--text {
- padding: 0;
- margin: 0 5px;
- border: none !important;
- outline: none !important;
- &:hover {
- transform: scale(1.1);
- }
- }
- }
- }
- .el-table--border {
- border-radius: 10px;
- th {
- padding: 12px 0;
- background-color: #fcfcfd;
- border-right: none;
- }
- td {
- border-right: none;
- }
- }
- // el-checkbox
- .el-checkbox {
- .el-checkbox__label {
- color: $--color-text-gray-2 !important;
- }
- .el-checkbox__inner::after {
- border-width: 2px;
- }
- }
- .el-checkbox__input.is-checked .el-checkbox__inner {
- background-color: $--color-white;
- border-color: $--color-primary;
- &::after {
- border-color: $--color-primary;
- }
- }
- .el-checkbox__input.is-indeterminate .el-checkbox__inner {
- background-color: $--color-white;
- border-color: $--color-primary;
- &::before {
- background-color: $--color-primary;
- }
- }
- .el-radio {
- .el-radio__label {
- color: $--color-text-gray-2 !important;
- }
- }
- .el-radio__input.is-checked .el-radio__inner {
- background-color: $--color-white;
- border-color: $--color-primary;
- &::after {
- width: 6px;
- height: 6px;
- background-color: $--color-primary;
- }
- }
- // el-switch
- .el-switch {
- &.is-checked {
- .el-switch__core {
- background-color: $--color-primary;
- border-color: $--color-primary;
- }
- }
- }
- // el-pagination
- .el-pagination-li {
- min-width: 32px;
- height: 32px;
- border-radius: 8px;
- overflow: hidden;
- background-color: $--color-white;
- border: 1px solid #e1e3eb;
- }
- .el-pagination {
- padding: 0;
- .el-pagination__total {
- float: left;
- }
- span:not([class*="suffix"]) {
- line-height: 32px;
- height: 32px;
- }
- &.is-background {
- .btn-prev,
- .btn-next {
- color: $--color-text-gray-2;
- margin: 0 5px;
- @extend .el-pagination-li;
- }
- .btn-prev:disabled,
- .btn-next:disabled {
- opacity: 0.7;
- }
- .el-pager li {
- color: $--color-text-gray-2;
- margin: 0 5px;
- padding: 0 8px;
- line-height: 32px;
- @extend .el-pagination-li;
- &:not(.disabled).active {
- color: #fff;
- background-color: $--color-primary;
- }
- }
- }
- }
- // el-message-box
- .el-message-box {
- width: 320px;
- background-color: #f6f6f6;
- border-radius: 10px;
- &__title {
- display: none;
- }
- &__headerbtn {
- display: none;
- }
- &__content {
- text-align: center;
- .el-message-box__status {
- position: relative;
- top: 0;
- height: 48px;
- width: 48px;
- transform: none;
- margin-bottom: 10px;
- &.el-icon-warning {
- border-radius: 50%;
- &::before {
- content: "";
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-image: url(../images/icon-doubt.png);
- background-repeat: no-repeat;
- background-size: 100% 100%;
- }
- }
- }
- .el-message-box__message {
- padding: 0;
- }
- }
- &__btns {
- height: 75px;
- padding: 30px 20px 10px;
- text-align: center;
- > .el-button {
- width: 100px;
- }
- }
- }
- .alert-message {
- .el-message-box__btns {
- text-align: center;
- > .el-button {
- position: relative;
- left: auto;
- top: 0;
- margin: 0;
- }
- }
- }
- // .el-message
- .el-message-loading {
- border-color: mix($--color-white, $--color-success, 80%);
- background-color: mix($--color-white, $--color-success, 90%);
- }
- // el-date-editor
- .el-date-editor {
- border-radius: 8px;
- .el-range-separator {
- width: auto;
- }
- .el-range-input {
- background-color: transparent;
- }
- }
- // el-step
- .el-step {
- &__title.is-success,
- &__description.is-success,
- &__title.is-process,
- &__description.is-process {
- color: $--color-success;
- }
- &__title.is-process {
- font-weight: normal;
- }
- &__head.is-success {
- .el-step__line {
- background-color: $--color-success;
- }
- .el-step__icon.is-text {
- color: $--color-white;
- border-color: $--color-success;
- background-color: $--color-success;
- }
- }
- &__head.is-process {
- .el-step__icon.is-text {
- color: $--color-success;
- border-color: $--color-success;
- }
- }
- &__title.is-wait,
- &__description.is-wait {
- color: $--color-text-gray-2;
- }
- &__head.is-wait {
- .el-step__icon.is-text {
- color: $--color-text-gray-2;
- border-color: #e1e3eb;
- background-color: #e1e3eb;
- }
- }
- }
- // el-popover
- .el-popper-dark {
- background-color: $--color-text-dark-1;
- color: #fff;
- font-size: 12px;
- line-height: 18px;
- padding: 16px;
- border: none;
- }
- .el-popper-dark {
- box-shadow: 0px 10px 10px 0px rgba(54, 61, 89, 0.2);
- }
- .el-popper-dark[x-placement^="right"] .popper__arrow {
- border-right-color: $--color-text-dark-1;
- &::after {
- border-right-color: $--color-text-dark-1;
- }
- }
- .el-popper-dark[x-placement^="top"] .popper__arrow {
- border-top-color: $--color-text-dark-1;
- &::after {
- border-top-color: $--color-text-dark-1;
- }
- }
- .el-popper-dark[x-placement^="bottom"] .popper__arrow {
- border-bottom-color: $--color-text-dark-1;
- &::after {
- border-bottom-color: $--color-text-dark-1;
- }
- }
- .el-popper-dark[x-placement^="left"] .popper__arrow {
- border-left-color: $--color-text-dark-1;
- &::after {
- border-left-color: $--color-text-dark-1;
- }
- }
- // popper-list
- .popper-list {
- min-width: auto;
- .el-button {
- display: block;
- width: 100%;
- margin: 0;
- &:not(:last-child) {
- margin-bottom: 5px;
- }
- }
- }
|