| --el-border-color-light: #353535; |
| 9 | --el-border-color-lighter: #2a2a2a; |
| 10 | --el-text-color-primary: #e5e7eb; |
| 11 | --el-text-color-secondary: #888888; |
| 12 | --el-text-color-placeholder: #afafaf; |
| 13 | background-color: #212121; |
| 14 | color-scheme: dark; |
| 15 | } |
| 16 |
| 17 | /* Scrollbar */ |
| 18 | html.dark ::-webkit-scrollbar { |
| 19 | width: 6px; |
| 20 | height: 6px; |
| 21 | } |
| 22 |
| 23 | html.dark ::-webkit-scrollbar-track { |
| 24 | background: #303030; |
| 25 | } |
| 26 |
| 27 | html.dark ::-webkit-scrollbar-thumb { |
| 28 | background: #404040; |
| 29 | border-radius: 3px; |
| 30 | } |
| 31 |
| 32 | html.dark ::-webkit-scrollbar-thumb:hover { |
| 33 | background: #505050; |
| 34 | } |
| 35 |
| 36 | /* Form */ |
| 37 | html.dark .el-form-item__label { |
| 38 | color: #e5e7eb; |
| 39 | } |
| 40 |
| 41 | /* Input */ |
| 42 | html.dark .el-input__wrapper { |
| 43 | background: var(--color-bg-input); |
| 44 | box-shadow: 0 0 0 1px #404040 inset; |
| 45 | } |
| 46 |
| 47 | html.dark .el-input__wrapper:hover { |
| 48 | box-shadow: 0 0 0 1px #505050 inset; |
| 49 | } |
| 50 |
| 51 | html.dark .el-input__wrapper.is-focus { |
| 52 | box-shadow: 0 0 0 1px var(--el-color-primary) inset; |
| 53 | } |
| 54 |
| 55 | html.dark .el-input__inner { |
| 56 | color: #e5e7eb; |
| 57 | } |
| 58 |
| 59 | html.dark .el-input__inner::placeholder { |
| 60 | color: #afafaf; |
| 61 | } |
| 62 |
| 63 | html.dark .el-textarea__inner { |
| 64 | background: var(--color-bg-input); |
| 65 | box-shadow: 0 0 0 1px #404040 inset; |
| 66 | color: #e5e7eb; |
| 67 | } |
| 68 |
| 69 | html.dark .el-textarea__inner:hover { |
| 70 | box-shadow: 0 0 0 1px #505050 inset; |
| 71 | } |
| 72 |
| 73 | html.dark .el-textarea__inner:focus { |
| 74 | box-shadow: 0 0 0 1px var(--el-color-primary) inset; |
| 75 | } |
| 76 |
| 77 | /* Select */ |
| 78 | html.dark .el-select__wrapper { |
| 79 | background: var(--color-bg-input); |
| 80 | box-shadow: 0 0 0 1px #404040 inset; |
| 81 | } |
| 82 |
| 83 | html.dark .el-select__wrapper:hover { |
| 84 | box-shadow: 0 0 0 1px #505050 inset; |
| 85 | } |
| 86 |
| 87 | html.dark .el-select__selected-item { |
| 88 | color: #e5e7eb; |
| 89 | } |
| 90 |
| 91 | html.dark .el-select__placeholder { |
| 92 | color: #afafaf; |
| 93 | } |
| 94 |
| 95 | html.dark .el-select-dropdown { |
| 96 | background: #303030; |
| 97 | border-color: #404040; |
| 98 | } |
| 99 |
| 100 | html.dark .el-select-dropdown__item { |
| 101 | color: #e5e7eb; |
| 102 | } |
| 103 |
| 104 | html.dark .el-select-dropdown__item:hover { |
| 105 | background: #3a3a3a; |
| 106 | } |
| 107 |
| 108 | html.dark .el-select-dropdown__item.is-selected { |
| 109 | color: var(--el-color-primary); |
| 110 | } |
| 111 |
| 112 | html.dark .el-select-dropdown__item.is-disabled { |
| 113 | color: #666666; |
| 114 | } |
| 115 |
| 116 | /* Tag */ |
| 117 | html.dark .el-tag--info { |
| 118 | background: #303030; |
| 119 | border-color: #404040; |
| 120 | color: #b0b0b0; |
| 121 | } |
| 122 |
| 123 | /* Button */ |
| 124 | html.dark .el-button--default { |
| 125 | background: #303030; |
| 126 | border-color: #404040; |
| 127 | color: #e5e7eb; |
| 128 | } |
| 129 |
| 130 | html.dark .el-button--default:hover { |
| 131 | background: #3a3a3a; |
| 132 | border-color: #505050; |
| 133 | color: #e5e7eb; |
| 134 | } |
| 135 |
| 136 | /* Card */ |
| 137 | html.dark .el-card { |
| 138 | background: #212121; |
| 139 | border-color: #353535; |
| 140 | color: #b0b0b0; |
| 141 | } |
| 142 |
| 143 | html.dark .el-card__header { |
| 144 | border-bottom-color: #353535; |
| 145 | color: #e5e7eb; |
| 146 | } |
| 147 |
| 148 | /* Dialog */ |
| 149 | html.dark .el-dialog { |
| 150 | background: #212121; |
| 151 | } |
| 152 |
| 153 | html.dark .el-dialog__title { |
| 154 | color: #e5e7eb; |
| 155 | } |
| 156 |
| 157 | /* Message */ |
| 158 | html.dark .el-message { |
| 159 | background: #303030; |
| 160 | border-color: #404040; |
| 161 | } |
| 162 |
| 163 | html.dark .el-message--success { |
| 164 | background: #1e3d2e; |
| 165 | border-color: #3d6b4f; |
| 166 | } |
| 167 |
| 168 | html.dark .el-message--warning { |
| 169 | background: #3d3020; |
| 170 | border-color: #6b5020; |
| 171 | } |
| 172 |
| 173 | html.dark .el-message--error { |
| 174 | background: #3d2027; |
| 175 | border-color: #5c2d2d; |
| 176 | } |
| 177 |
| 178 | /* Loading */ |
| 179 | html.dark .el-loading-mask { |
| 180 | background-color: rgba(33, 33, 33, 0.9); |
| 181 | } |
| 182 |
| 183 | /* Overlay */ |
| 184 | html.dark .el-overlay { |
| 185 | background-color: rgba(0, 0, 0, 0.6); |
| 186 | } |
| 187 |
| 188 | /* Tooltip */ |
| 189 | html.dark .el-tooltip__popper { |
| 190 | background: #303030 !important; |
| 191 | border-color: #404040 !important; |
| 192 | color: #e5e7eb !important; |
| 193 | } |