123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399 |
- @picker-bg-color: fade(#121d1c, 95);
- body {
- .el-input__inner {
- background: fade(@gray, 20);
- color: @gray-l;
- }
- .el-input {
- &.is-disabled .el-input__inner {
- background-color: fade(@gray-l, 20);
- border-color: @gray;
- color: @gray;
- cursor: not-allowed;
- }
- &.is-in-pagination .el-input__inner[type="number"] {
- width: 48px;
- }
- .el-input__inner[type="number"] {
- width: 200px;
- &::-webkit-textfield-decoration-container {
- appearance: none;
- }
- &::-webkit-inner-spin-button,
- &::-webkit-outer-spin-button {
- appearance: none;
- }
- }
- }
- // 数字组件
- .el-input-number {
- &.is-controls-right {
- .el-input-number__increase {
- border-bottom: 1px solid @gray;
- }
- .el-input-number__decrease,
- .el-input-number__increase {
- line-height: 15px;
- color: @gray-l;
- background: fade(@gray, 40);
- border-left: 1px solid @gray;
- }
- }
- }
- // 日期组件
- .el-date-editor {
- &.is-active,
- &.is-active:hover,
- &.is-focus .el-input__inner {
- border-color: @green;
- }
- // el datetimerange Start
- &.el-date-editor--datetimerange {
- border: 1px solid fade(@gray, 20);
- height: 33px;
- padding: 0 8px;
- width: 369px;
- .el-range-separator {
- color: @gray-l;
- line-height: 33px;
- }
- .el-range-input {
- flex-basis: 145px;
- line-height: 33px;
- background: transparent;
- color: @gray-l;
- &::placeholder {
- text-align: center;
- color: @gray-l;
- }
- }
- }
- // el datetimerange End
- }
- // 单选框
- .el-radio {
- color: @gray-l;
- &.is-checked {
- .el-radio__inner {
- background: @green;
- border-color: @green;
- }
- .el-radio__label {
- color: @green;
- }
- }
- &.is-bordered.is-checked {
- border-color: @green;
- }
- &:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
- box-shadow: 0 0 2px 2px @green;
- }
- }
- // 单选框组
- .el-radio-group {
- height: 33px;
- & > .el-radio {
- line-height: 33px;
- }
- }
- .el-checkbox {
- height: 33px;
- line-height: 33px;
- color: @gray-l;
- &.is-bordered {
- height: 33px;
- line-height: 33px;
- padding: 0px 20px;
- border-color: @gray;
- &.is-checked {
- border-color: @green;
- }
- }
- .el-checkbox__inner {
- background: fade(@gray, 20);
- border-color: fade(@gray, 40);
- }
- .el-checkbox__input.is-checked + .el-checkbox__label {
- color: @green;
- }
- .el-checkbox__input.is-checked .el-checkbox__inner,
- .el-checkbox__input.is-indeterminate .el-checkbox__inner {
- background-color: @green;
- border-color: @green;
- }
- .el-checkbox__input.is-focus .el-checkbox__inner {
- border-color: @green;
- }
- }
- // 树组件
- .el-tree {
- color: @gray-l;
- background: fade(@gray, 20);
- .el-checkbox__inner {
- background: transparent;
- border-color: @gray;
- }
- .el-tree-node:focus > .el-tree-node__content {
- background: transparent;
- }
- .el-checkbox__input.is-disabled .el-checkbox__inner {
- background: @gray;
- border-color: @gray;
- }
- &.el-tree--highlight-current
- .el-tree-node.is-current
- > .el-tree-node__content {
- background: transparent;
- color: @green;
- }
- .el-tree-node__content:hover,
- .el-upload-list__item:hover {
- background: transparent;
- color: @green;
- }
- .el-checkbox__inner:hover {
- border-color: @green;
- }
- .el-checkbox__input.is-focus .el-checkbox__inner {
- border-color: @green;
- }
- .el-checkbox__input.is-checked .el-checkbox__inner,
- .el-checkbox__input.is-indeterminate .el-checkbox__inner {
- background: @green;
- border-color: @green;
- }
- }
- // Cascader 级联选择器
- .el-cascader {
- line-height: 30px;
- .el-cascader__tags {
- .el-tag {
- color: white;
- background-color: fade(@green, 50);
- .el-icon-close {
- background-color: fade(@green, 50);
- }
- }
- }
- .el-input__suffix {
- right: 0px;
- }
- }
- .el-select {
- .el-input.is-focus .el-input__inner {
- border-color: @green;
- }
- .el-input__inner:focus {
- border-color: @green;
- }
- }
- .el-select .el-select__tags .el-tag {
- background: #000;
- }
- .el-select .el-select__tags .el-tag .el-icon-close {
- background-color: transparent;
- border: 1px solid #fff;
- }
- .el-popper {
- &.el-cascader__dropdown[role="tooltip"] {
- background: @picker-bg-color;
- border-color: @picker-bg-color;
- .el-cascader-menu {
- border-color: @gray;
- }
- .el-cascader-node:not(.is-disabled):focus,
- .el-cascader-node:not(.is-disabled):hover {
- background: fade(@green, 20);
- color: @green;
- }
- .el-cascader-node.in-active-path,
- .el-cascader-node.is-active,
- .el-cascader-node.is-selectable.in-checked-path {
- color: @green;
- }
- }
- &.el-select__popper[role="tooltip"] {
- border-color: @picker-bg-color;
- background: @picker-bg-color;
- .el-cascader-menu {
- border-color: @gray;
- }
- .el-select-dropdown__item.hover,
- .el-select-dropdown__item:hover {
- background: fade(@green, 20);
- color: @green;
- }
- .el-select-dropdown__item.selected {
- color: @green;
- }
- }
- }
- }
- .el-picker__popper.el-popper[role="tooltip"] {
- border-color: @picker-bg-color !important;
- background: @picker-bg-color !important;
- }
- .el-picker-panel {
- // el datetimerange picker Start
- &.el-date-range-picker {
- color: @gray-l;
- background: transparent;
- .el-date-range-picker__time-header {
- border-color: @gray;
- .el-icon-arrow-right {
- color: @gray-l;
- }
- .el-input__inner {
- background: fade(@gray, 20);
- color: @gray-l;
- border-color: @gray;
- }
- .el-date-range-picker__time-picker-wrap {
- .el-time-panel {
- background-color: @picker-bg-color;
- .el-time-spinner__item.active:not(.disabled) {
- color: @green;
- }
- .el-time-spinner__item:hover:not(.disabled):not(.active) {
- background: transparent;
- color: @green;
- }
- }
- .el-time-panel__btn.confirm {
- color: @green;
- }
- .el-time-panel__btn.cancel {
- color: @gray;
- }
- }
- }
- .el-date-range-picker__content {
- border-color: @gray;
- .el-date-table {
- th {
- color: @gray-l;
- }
- td {
- &.available:hover {
- color: @green;
- }
- &.in-range div,
- &.in-range div:hover {
- background: fade(@gray, 40);
- }
- &.end-date span,
- &.start-date span {
- background: @green;
- }
- &.today {
- span {
- color: @green;
- }
- &.end-date span,
- &.start-date span {
- color: @white;
- }
- }
- &.next-month,
- &.prev-month {
- color: @gray;
- }
- }
- }
- }
- }
- // el datetimerange picker End
- .el-picker-panel__body {
- border-color: @gray;
- }
- .el-picker-panel__footer {
- background: transparent;
- border-color: @gray;
- .el-button--text {
- color: @gray;
- }
- .el-button.is-plain {
- background: transparent;
- border-color: @green;
- color: @green;
- }
- }
- .el-time-panel__btn.confirm {
- color: @green;
- }
- .el-time-panel__btn.cancel {
- color: @gray;
- }
- }
- .el-popper__arrow::before {
- background: fade(#121d1c, 95) !important;
- border: 1px solid fade(#121d1c, 95) !important;
- }
|