el-input.less 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. @picker-bg-color: fade(#121d1c, 95);
  2. body {
  3. .el-input__inner {
  4. background: fade(@gray, 20);
  5. color: @gray-l;
  6. }
  7. .el-input {
  8. &.is-disabled .el-input__inner {
  9. background-color: fade(@gray-l, 20);
  10. border-color: @gray;
  11. color: @gray;
  12. cursor: not-allowed;
  13. }
  14. &.is-in-pagination .el-input__inner[type="number"] {
  15. width: 48px;
  16. }
  17. .el-input__inner[type="number"] {
  18. width: 200px;
  19. &::-webkit-textfield-decoration-container {
  20. appearance: none;
  21. }
  22. &::-webkit-inner-spin-button,
  23. &::-webkit-outer-spin-button {
  24. appearance: none;
  25. }
  26. }
  27. }
  28. // 数字组件
  29. .el-input-number {
  30. &.is-controls-right {
  31. .el-input-number__increase {
  32. border-bottom: 1px solid @gray;
  33. }
  34. .el-input-number__decrease,
  35. .el-input-number__increase {
  36. line-height: 15px;
  37. color: @gray-l;
  38. background: fade(@gray, 40);
  39. border-left: 1px solid @gray;
  40. }
  41. }
  42. }
  43. // 日期组件
  44. .el-date-editor {
  45. &.is-active,
  46. &.is-active:hover,
  47. &.is-focus .el-input__inner {
  48. border-color: @green;
  49. }
  50. // el datetimerange Start
  51. &.el-date-editor--datetimerange {
  52. border: 1px solid fade(@gray, 20);
  53. height: 33px;
  54. padding: 0 8px;
  55. width: 369px;
  56. .el-range-separator {
  57. color: @gray-l;
  58. line-height: 33px;
  59. }
  60. .el-range-input {
  61. flex-basis: 145px;
  62. line-height: 33px;
  63. background: transparent;
  64. color: @gray-l;
  65. &::placeholder {
  66. text-align: center;
  67. color: @gray-l;
  68. }
  69. }
  70. }
  71. // el datetimerange End
  72. }
  73. // 单选框
  74. .el-radio {
  75. color: @gray-l;
  76. &.is-checked {
  77. .el-radio__inner {
  78. background: @green;
  79. border-color: @green;
  80. }
  81. .el-radio__label {
  82. color: @green;
  83. }
  84. }
  85. &.is-bordered.is-checked {
  86. border-color: @green;
  87. }
  88. &:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
  89. box-shadow: 0 0 2px 2px @green;
  90. }
  91. }
  92. // 单选框组
  93. .el-radio-group {
  94. height: 33px;
  95. & > .el-radio {
  96. line-height: 33px;
  97. }
  98. }
  99. .el-checkbox {
  100. height: 33px;
  101. line-height: 33px;
  102. color: @gray-l;
  103. &.is-bordered {
  104. height: 33px;
  105. line-height: 33px;
  106. padding: 0px 20px;
  107. border-color: @gray;
  108. &.is-checked {
  109. border-color: @green;
  110. }
  111. }
  112. .el-checkbox__inner {
  113. background: fade(@gray, 20);
  114. border-color: fade(@gray, 40);
  115. }
  116. .el-checkbox__input.is-checked + .el-checkbox__label {
  117. color: @green;
  118. }
  119. .el-checkbox__input.is-checked .el-checkbox__inner,
  120. .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  121. background-color: @green;
  122. border-color: @green;
  123. }
  124. .el-checkbox__input.is-focus .el-checkbox__inner {
  125. border-color: @green;
  126. }
  127. }
  128. // 树组件
  129. .el-tree {
  130. color: @gray-l;
  131. background: fade(@gray, 20);
  132. .el-checkbox__inner {
  133. background: transparent;
  134. border-color: @gray;
  135. }
  136. .el-tree-node:focus > .el-tree-node__content {
  137. background: transparent;
  138. }
  139. .el-checkbox__input.is-disabled .el-checkbox__inner {
  140. background: @gray;
  141. border-color: @gray;
  142. }
  143. &.el-tree--highlight-current
  144. .el-tree-node.is-current
  145. > .el-tree-node__content {
  146. background: transparent;
  147. color: @green;
  148. }
  149. .el-tree-node__content:hover,
  150. .el-upload-list__item:hover {
  151. background: transparent;
  152. color: @green;
  153. }
  154. .el-checkbox__inner:hover {
  155. border-color: @green;
  156. }
  157. .el-checkbox__input.is-focus .el-checkbox__inner {
  158. border-color: @green;
  159. }
  160. .el-checkbox__input.is-checked .el-checkbox__inner,
  161. .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  162. background: @green;
  163. border-color: @green;
  164. }
  165. }
  166. // Cascader 级联选择器
  167. .el-cascader {
  168. line-height: 30px;
  169. .el-cascader__tags {
  170. .el-tag {
  171. color: white;
  172. background-color: fade(@green, 50);
  173. .el-icon-close {
  174. background-color: fade(@green, 50);
  175. }
  176. }
  177. }
  178. .el-input__suffix {
  179. right: 0px;
  180. }
  181. }
  182. .el-select {
  183. .el-input.is-focus .el-input__inner {
  184. border-color: @green;
  185. }
  186. .el-input__inner:focus {
  187. border-color: @green;
  188. }
  189. }
  190. .el-select .el-select__tags .el-tag {
  191. background: #000;
  192. }
  193. .el-select .el-select__tags .el-tag .el-icon-close {
  194. background-color: transparent;
  195. border: 1px solid #fff;
  196. }
  197. .el-popper {
  198. &.el-cascader__dropdown[role="tooltip"] {
  199. background: @picker-bg-color;
  200. border-color: @picker-bg-color;
  201. .el-cascader-menu {
  202. border-color: @gray;
  203. }
  204. .el-cascader-node:not(.is-disabled):focus,
  205. .el-cascader-node:not(.is-disabled):hover {
  206. background: fade(@green, 20);
  207. color: @green;
  208. }
  209. .el-cascader-node.in-active-path,
  210. .el-cascader-node.is-active,
  211. .el-cascader-node.is-selectable.in-checked-path {
  212. color: @green;
  213. }
  214. }
  215. &.el-select__popper[role="tooltip"] {
  216. border-color: @picker-bg-color;
  217. background: @picker-bg-color;
  218. .el-cascader-menu {
  219. border-color: @gray;
  220. }
  221. .el-select-dropdown__item.hover,
  222. .el-select-dropdown__item:hover {
  223. background: fade(@green, 20);
  224. color: @green;
  225. }
  226. .el-select-dropdown__item.selected {
  227. color: @green;
  228. }
  229. }
  230. }
  231. }
  232. .el-picker__popper.el-popper[role="tooltip"] {
  233. border-color: @picker-bg-color !important;
  234. background: @picker-bg-color !important;
  235. }
  236. .el-picker-panel {
  237. // el datetimerange picker Start
  238. &.el-date-range-picker {
  239. color: @gray-l;
  240. background: transparent;
  241. .el-date-range-picker__time-header {
  242. border-color: @gray;
  243. .el-icon-arrow-right {
  244. color: @gray-l;
  245. }
  246. .el-input__inner {
  247. background: fade(@gray, 20);
  248. color: @gray-l;
  249. border-color: @gray;
  250. }
  251. .el-date-range-picker__time-picker-wrap {
  252. .el-time-panel {
  253. background-color: @picker-bg-color;
  254. .el-time-spinner__item.active:not(.disabled) {
  255. color: @green;
  256. }
  257. .el-time-spinner__item:hover:not(.disabled):not(.active) {
  258. background: transparent;
  259. color: @green;
  260. }
  261. }
  262. .el-time-panel__btn.confirm {
  263. color: @green;
  264. }
  265. .el-time-panel__btn.cancel {
  266. color: @gray;
  267. }
  268. }
  269. }
  270. .el-date-range-picker__content {
  271. border-color: @gray;
  272. .el-date-table {
  273. th {
  274. color: @gray-l;
  275. }
  276. td {
  277. &.available:hover {
  278. color: @green;
  279. }
  280. &.in-range div,
  281. &.in-range div:hover {
  282. background: fade(@gray, 40);
  283. }
  284. &.end-date span,
  285. &.start-date span {
  286. background: @green;
  287. }
  288. &.today {
  289. span {
  290. color: @green;
  291. }
  292. &.end-date span,
  293. &.start-date span {
  294. color: @white;
  295. }
  296. }
  297. &.next-month,
  298. &.prev-month {
  299. color: @gray;
  300. }
  301. }
  302. }
  303. }
  304. }
  305. // el datetimerange picker End
  306. .el-picker-panel__body {
  307. border-color: @gray;
  308. }
  309. .el-picker-panel__footer {
  310. background: transparent;
  311. border-color: @gray;
  312. .el-button--text {
  313. color: @gray;
  314. }
  315. .el-button.is-plain {
  316. background: transparent;
  317. border-color: @green;
  318. color: @green;
  319. }
  320. }
  321. .el-time-panel__btn.confirm {
  322. color: @green;
  323. }
  324. .el-time-panel__btn.cancel {
  325. color: @gray;
  326. }
  327. }
  328. .el-popper__arrow::before {
  329. background: fade(#121d1c, 95) !important;
  330. border: 1px solid fade(#121d1c, 95) !important;
  331. }