123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478 |
- // dialog
- .el-dialog {
- border-radius: 10px;
- overflow: hidden;
- border: 1px solid #c8c8ca;
- background-color: #f6f6f6;
- box-shadow: 5px 5px 4px 0px rgba(0, 0, 0, 0.1);
- }
- .el-dialog__header {
- padding: 15px 20px;
- background-color: #f6f6f6;
- .el-dialog__title {
- color: #666666;
- font-weight: bold;
- font-size: 16px;
- line-height: 19px;
- }
- }
- .el-dialog__body {
- padding: 30px 20px 20px;
- background-color: #f6f6f6;
- position: relative;
- border-top: 1px solid #e5e5e5;
- &::after {
- content: "";
- position: absolute;
- top: 0;
- left: 0;
- z-index: auto;
- width: 100%;
- height: 10px;
- background: linear-gradient(
- 0deg,
- rgba(245, 245, 245, 0) 0%,
- rgba(238, 238, 238, 1) 100%
- );
- }
- .el-form-item__label {
- font-weight: bold;
- color: rgba(153, 153, 153, 1);
- padding-right: 2px;
- }
- .el-input-tips {
- font-weight: bold;
- color: rgba(187, 187, 187, 1);
- margin-left: 13px;
- }
- }
- .el-dialog__footer {
- background-color: #f6f6f6;
- text-align: center;
- .el-button {
- width: 100px;
- border-radius: 10px;
- }
- .el-button--default {
- background: rgba(245, 245, 245, 1);
- color: #999;
- }
- }
- .el-popup-close {
- height: 20px;
- width: 20px;
- background-image: url(../images/icon-close.png);
- background-repeat: no-repeat;
- background-size: 100% 100%;
- &::before {
- content: "";
- }
- &:hover {
- background-image: url(../images/icon-close-act.png);
- }
- }
- .el-dialog__headerbtn {
- top: 14px;
- right: 14px;
- .el-dialog__close {
- @extend .el-popup-close;
- }
- }
- // form
- .el-form {
- &-item {
- &__error {
- font-size: 12px;
- font-weight: bold;
- color: rgba(254, 108, 105, 1);
- }
- &__content {
- .el-table {
- line-height: 1;
- }
- }
- }
- &--inline {
- .el-form-item {
- margin-right: 20px;
- }
- }
- }
- // input
- .el-input {
- &.is-focus {
- .el-input__inner {
- border-color: $--color-primary !important;
- }
- }
- .el-input__inner {
- border-radius: 7px;
- border-color: #ddd;
- background-color: #f5f5f5;
- }
- }
- // 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;
- background-image: linear-gradient(
- -90deg,
- $--color-success 0%,
- $--color-primary 100%
- );
- }
- // button
- .el-button {
- border-radius: $--border-radius;
- > .icon {
- margin-right: 5px;
- }
- > span {
- display: inline-block;
- vertical-align: middle;
- }
- &.is-disabled {
- color: $--color-text-secondary !important;
- background: $--color-background !important;
- border: 1px solid $--color-border !important;
- }
- }
- .el-button--default {
- color: $--color-text-regular;
- background: $--color-background;
- border: 1px solid $--color-border;
- &:hover,
- &:focus {
- color: $--color-text-regular;
- background: $--color-white;
- border: 1px solid $--color-border;
- }
- &.el-button--default-act {
- color: $--color-text-regular !important;
- background: $--color-background !important;
- border: 1px solid $--color-border !important;
- &:hover,
- &:focus {
- color: $--color-text-regular !important;
- background: $--color-white !important;
- border: 1px solid $--color-border !important;
- }
- }
- }
- .el-button--primary {
- color: $--color-white;
- border-color: $--color-primary;
- background: $--color-primary;
- background-image: linear-gradient(
- -90deg,
- $--color-success 0%,
- $--color-primary 100%
- );
- &:hover,
- &:focus {
- color: $--color-white;
- border-color: $--color-primary;
- background: $--color-primary;
- background-image: linear-gradient(
- -90deg,
- mix($--color-white, $--color-success, 20%) 0%,
- mix($--color-white, $--color-primary, 20%) 100%
- );
- }
- }
- .el-button--warning {
- color: $--color-white;
- border-color: $--color-warning-lighter;
- background: $--color-warning-lighter;
- background-image: linear-gradient(
- -90deg,
- $--color-warning-lighter 0%,
- $--color-warning 100%
- );
- &:hover,
- &:focus {
- color: $--color-white;
- border-color: $--color-warning-lighter;
- background: $--color-warning-lighter;
- background-image: linear-gradient(
- -90deg,
- mix($--color-white, $--color-warning-lighter, 20%) 0%,
- mix($--color-white, $--color-warning, 20%) 100%
- );
- }
- }
- .el-button + .popover-button,
- .popover-button + .el-button {
- margin-left: 10px;
- }
- .el-button + .el-button {
- margin-left: 18px;
- }
- .el-button--text + .el-button--text {
- margin-left: 5px;
- }
- .el-button--text {
- color: $--color-text-regular;
- &.btn-table-icon {
- padding: 0;
- min-width: 10px;
- > i {
- width: 20px;
- height: 20px;
- }
- &:hover {
- transform: scale(1.2);
- }
- }
- }
- // table
- .el-table {
- color: $--color-text-regular;
- font-weight: bold;
- &--border {
- border-radius: $--border-radius;
- border: 1px solid $--color-border;
- }
- &__header thead {
- font-size: 16px;
- color: $--color-text-primary;
- font-weight: bold;
- }
- tr.el-table__row {
- background-color: $--color-background;
- &.el-table__row--striped {
- td {
- background-color: $--color-white;
- }
- }
- }
- td,
- th {
- border-color: $--color-border-light !important;
- }
- .el-table__row.row-danger {
- color: $--color-danger;
- }
- &.el-table--noback {
- tr.el-table__row {
- background-color: $--color-white;
- }
- }
- }
- // el-checkbox
- .el-checkbox {
- .el-checkbox__input {
- .el-checkbox__inner {
- width: 18px;
- height: 18px;
- border-color: $--color-border;
- &::after {
- display: none;
- }
- }
- &.is-checked {
- .el-checkbox__inner {
- border: none;
- background-color: transparent;
- background-image: url(../images/icon-checked.png);
- background-repeat: no-repeat;
- background-size: 100% 100%;
- }
- }
- &.is-focus {
- .el-checkbox__inner {
- border-color: $--color-border;
- }
- }
- }
- .el-checkbox__label {
- color: $--color-text-regular !important;
- font-weight: bold;
- }
- }
- .el-radio {
- .el-radio__input {
- .el-radio__inner {
- width: 18px;
- height: 18px;
- border-color: $--color-border;
- &::after {
- display: none;
- }
- }
- &.is-checked {
- .el-radio__inner {
- border: none;
- background-color: transparent;
- background-image: url(../images/icon-radio-checked.png);
- background-repeat: no-repeat;
- background-size: 100% 100%;
- }
- }
- &.is-focus {
- .el-radio__inner {
- border-color: $--color-border;
- }
- }
- }
- .el-radio__label {
- color: $--color-text-regular !important;
- font-weight: bold;
- }
- &.is-disabled {
- .el-radio__label {
- color: $--color-text-secondary !important;
- }
- }
- }
- // el-pagination
- .el-pagination-li {
- width: 32px;
- height: 32px;
- border-radius: 50%;
- overflow: hidden;
- background-color: $--color-white;
- border: 1px solid $--color-border;
- }
- .el-pagination {
- &.is-background {
- .btn-prev,
- .btn-next {
- color: $--color-text-regular;
- margin: 0 13px;
- @extend .el-pagination-li;
- }
- .btn-prev:disabled,
- .btn-next:disabled {
- background-color: $--color-background;
- }
- .el-pager li {
- color: $--color-text-regular;
- font-weight: bold;
- margin: 0 5px;
- line-height: 32px;
- @extend .el-pagination-li;
- &:not(.disabled).active {
- color: #fff;
- @extend .el-button--primary;
- }
- }
- }
- }
- // el-message-box
- .el-message-box {
- width: 350px;
- background-color: #f6f6f6;
- border-radius: 10px;
- &__title {
- display: none;
- }
- &__headerbtn {
- top: 10px;
- right: 10px;
- }
- &__close.el-icon-close {
- @extend .el-popup-close;
- }
- &__content {
- text-align: center;
- .el-message-box__status {
- position: relative;
- top: 0;
- height: 50px;
- width: 50px;
- 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 {
- position: relative;
- height: 75px;
- padding: 20px;
- > .el-button {
- width: 85px;
- position: absolute;
- left: 50%;
- top: 20px;
- &:first-child {
- margin-left: 5px;
- }
- &:last-child {
- margin-left: -90px;
- }
- }
- }
- }
- .alert-message {
- .el-message-box__btns {
- text-align: center;
- > .el-button {
- position: relative;
- left: auto;
- top: 0;
- margin: 0;
- }
- }
- }
- // el-date-editor
- .el-date-editor {
- .el-range-separator {
- width: auto;
- line-height: 28px;
- }
- .el-range-input {
- background-color: transparent;
- }
- .el-input__icon {
- line-height: 28px;
- }
- }
|