form.less 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. // 查询 样式
  2. .main-body {
  3. .query {
  4. display: flex;
  5. justify-content: space-between;
  6. &.left {
  7. justify-content: flex-start;
  8. }
  9. .query-items {
  10. flex: 0 0 auto;
  11. display: flex;
  12. .query-item {
  13. flex: 0 0 auto;
  14. display: flex;
  15. margin: 0 1.4815vh;
  16. .el-input {
  17. &.placeholder-left {
  18. input {
  19. &::placeholder {
  20. text-align: left;
  21. }
  22. }
  23. }
  24. }
  25. .placeholder-left {
  26. .el-input {
  27. input {
  28. height: 33px !important;
  29. &::placeholder {
  30. text-align: left;
  31. }
  32. }
  33. }
  34. }
  35. .lable {
  36. flex: 0 0 auto;
  37. margin-right: 1.4815vh;
  38. line-height: 33px;
  39. color: @gray-l;
  40. }
  41. .search-input {
  42. position: relative;
  43. // input {
  44. // box-sizing: border-box;
  45. // flex: 0 0 200px;
  46. // border: 0px solid @darkgray;
  47. // color: @white;
  48. // outline: unset;
  49. // border-radius: 0%;
  50. // padding-right: 40px;
  51. // background: fade(#536268, 20);
  52. // height: 33px;
  53. // line-height: 33px;
  54. // &::placeholder {
  55. // font-size: 12px;
  56. // text-align: right;
  57. // color: @darkgray;
  58. // }
  59. // }
  60. // .unit {
  61. // position: absolute;
  62. // right: 12px;
  63. // top: 6px;
  64. // line-height: 33px;
  65. // margin: auto;
  66. // }
  67. }
  68. }
  69. }
  70. .query-actions {
  71. flex: 0 0 auto;
  72. }
  73. }
  74. input {
  75. box-sizing: border-box;
  76. flex: 0 0 200px;
  77. border: 0px solid @darkgray;
  78. color: @white;
  79. outline: unset;
  80. border-radius: 0%;
  81. padding-right: 40px;
  82. background: fade(#536268, 20);
  83. height: 33px;
  84. line-height: 33px;
  85. &::placeholder {
  86. font-size: 12px;
  87. text-align: right;
  88. color: @darkgray;
  89. }
  90. }
  91. input[type="checkbox"] {
  92. position: relative;
  93. display: inline-block;
  94. appearance: none;
  95. width: 14px;
  96. height: 14px;
  97. outline: none;
  98. border: 1px solid @gray;
  99. background-color: #000;
  100. border-radius: 20%;
  101. margin: 0;
  102. padding: 0;
  103. &:checked {
  104. border-color: @green;
  105. background: @green;
  106. }
  107. &::after {
  108. display: inline-block;
  109. content: " ";
  110. position: absolute;
  111. left: 30%;
  112. top: 5%;
  113. width: 3px;
  114. height: 7px;
  115. border-color: #fff;
  116. border-style: solid;
  117. border-width: 0px 2px 2px 0px;
  118. transform: rotate(45deg);
  119. opacity: 0;
  120. }
  121. &:checked::after {
  122. content: "";
  123. opacity: 1;
  124. transition: opacity 0.3s ease-out;
  125. }
  126. }
  127. }
  128. .search-input {
  129. .el-input {
  130. line-height: 33px;
  131. height: 33px;
  132. &.el-input--prefix .el-input__inner {
  133. padding-left: 16px;
  134. }
  135. .el-input__icon {
  136. height: 33px;
  137. line-height: 33px;
  138. }
  139. }
  140. .el-select {
  141. line-height: 33px;
  142. .el-input {
  143. .el-input__suffix {
  144. padding: 0 8px;
  145. background: transparent;
  146. right: 0;
  147. }
  148. .el-input__icon {
  149. line-height: 33px;
  150. height: 33px;
  151. }
  152. .el-input__inner {
  153. background: fade(#536268, 20);
  154. border-color: fade(#536268, 20);
  155. height: 33px;
  156. line-height: 33px;
  157. padding-left: 16px;
  158. &::placeholder {
  159. text-align: right;
  160. padding-right: 8px;
  161. color: @gray;
  162. }
  163. }
  164. }
  165. .el-select__tags .el-tag {
  166. background-color: fade(@green, 50);
  167. color: @white;
  168. .el-icon-close {
  169. background-color: fade(@green, 50);
  170. }
  171. }
  172. }
  173. .el-input__prefix {
  174. left: unset;
  175. right: 5px;
  176. }
  177. .el-input__suffix {
  178. right: 30px;
  179. }
  180. }
  181. .select {
  182. &.el-select__popper.el-popper[role="tooltip"] {
  183. background: fade(#121d1c, 95);
  184. border: 1px solid fade(#121d1c, 95);
  185. }
  186. .el-select-dropdown {
  187. &.is-multiple .el-select-dropdown__item.selected {
  188. background-color: fade(@green, 20);
  189. color: #fff;
  190. font-weight: 400;
  191. border: 1px solid @green;
  192. }
  193. .el-select-dropdown__item {
  194. color: @font-color;
  195. &:hover {
  196. background-color: fade(@green, 20);
  197. color: #fff;
  198. }
  199. &.selected {
  200. background-color: fade(@green, 20);
  201. color: #fff;
  202. border: 1px solid #05bb4c;
  203. font-weight: 500;
  204. }
  205. }
  206. }
  207. &.el-popper.is-light .el-popper__arrow::before {
  208. background: fade(#121d1c, 95);
  209. border: 1px solid fade(#121d1c, 95) !important;
  210. }
  211. }
  212. .date-select {
  213. .el-input {
  214. .el-input__inner {
  215. background: fade(#536268, 20);
  216. border-color: fade(#536268, 20);
  217. height: 33px;
  218. line-height: 33px;
  219. padding-left: 16px;
  220. color: #ffffff;
  221. font-size: 12px;
  222. font-family: "SourceHanSans";
  223. &::placeholder {
  224. font-size: 12px;
  225. color: #606769;
  226. }
  227. }
  228. }
  229. &.el-picker__popper.el-popper[role="tooltip"] {
  230. background: fade(#121d1c, 95);
  231. border: 1px solid fade(#121d1c, 95);
  232. .el-picker-panel {
  233. background: transparent;
  234. color: @white;
  235. .el-date-table {
  236. th {
  237. color: @white;
  238. }
  239. td {
  240. &.next-month,
  241. &.prev-month {
  242. color: @gray;
  243. }
  244. &.available:hover {
  245. color: @green;
  246. }
  247. &.today span {
  248. color: @green;
  249. }
  250. &.current:not(.disabled) span {
  251. color: @white;
  252. background: @green;
  253. }
  254. }
  255. }
  256. .el-year-table td.today .cell {
  257. color: @white;
  258. }
  259. .el-date-picker__editor-wrap {
  260. .el-time-panel {
  261. .el-time-panel__content {
  262. background: fade(#121d1c, 95);
  263. }
  264. .el-time-panel__footer {
  265. background: fade(#121d1c, 95);
  266. }
  267. }
  268. }
  269. .el-picker-panel__footer {
  270. background: fade(#121d1c, 95);
  271. }
  272. }
  273. }
  274. .el-select-dropdown {
  275. &.is-multiple .el-select-dropdown__item.selected {
  276. background-color: fade(@green, 100);
  277. color: #fff;
  278. font-weight: 400;
  279. }
  280. .el-select-dropdown__item {
  281. color: @font-color;
  282. &:hover {
  283. background-color: fade(@green, 100);
  284. color: #fff;
  285. }
  286. &.selected {
  287. background-color: fade(@green, 100);
  288. color: #fff;
  289. }
  290. }
  291. }
  292. &.el-popper.is-light .el-popper__arrow::before {
  293. background: fade(#121d1c, 95);
  294. border: 1px solid fade(#121d1c, 95) !important;
  295. }
  296. .el-picker-panel__icon-btn:hover {
  297. color: @green;
  298. }
  299. .el-date-picker__header-label.active,
  300. .el-date-picker__header-label:hover {
  301. color: @green;
  302. }
  303. .el-year-table td .cell:hover,
  304. .el-year-table td.current:not(.disabled) .cell {
  305. color: @green;
  306. }
  307. .el-month-table td .cell:hover {
  308. color: @green;
  309. }
  310. .el-month-table td.current:not(.disabled) .cell {
  311. color: @green;
  312. }
  313. }
  314. .el-form {
  315. .el-form-item {
  316. margin-bottom: 8px;
  317. .el-form-item__label {
  318. line-height: 33px;
  319. color: @gray-l;
  320. font-family: "SourceHanSans";
  321. }
  322. .el-form-item__content {
  323. line-height: 33px;
  324. .el-input {
  325. line-height: 33px;
  326. .el-input__inner {
  327. background: fade(#536268, 20);
  328. border-color: fade(#536268, 20);
  329. height: 33px;
  330. line-height: 33px;
  331. padding-left: 16px;
  332. color: #ffffff;
  333. font-size: 12px;
  334. font-family: "SourceHanSans";
  335. &::placeholder {
  336. font-size: 12px;
  337. color: #606769;
  338. }
  339. }
  340. }
  341. .el-textarea {
  342. .el-textarea__inner {
  343. background: fade(#536268, 20);
  344. border-color: fade(#536268, 20);
  345. color: #ffffff;
  346. font-size: 12px;
  347. font-family: "SourceHanSans";
  348. &::placeholder {
  349. font-size: 12px;
  350. color: #606769;
  351. }
  352. }
  353. }
  354. }
  355. }
  356. }
  357. .el-input-number {
  358. .el-input {
  359. .el-input__inner {
  360. background: fade(#536268, 20);
  361. border-color: fade(#536268, 20);
  362. height: 33px;
  363. line-height: 33px;
  364. padding-left: 16px;
  365. color: #ffffff;
  366. font-size: 12px;
  367. font-family: "SourceHanSans";
  368. &::placeholder {
  369. font-size: 12px;
  370. color: #606769;
  371. }
  372. }
  373. }
  374. }
  375. .el-checkbox-group {
  376. .el-checkbox {
  377. &.is-checked {
  378. .el-checkbox__input {
  379. &.is-checked {
  380. .el-checkbox__inner {
  381. background-color: @green;
  382. border-color: @green;
  383. }
  384. }
  385. }
  386. .el-checkbox__label {
  387. color: @green;
  388. }
  389. }
  390. .el-checkbox__input {
  391. .el-checkbox__inner {
  392. background-color: transparent;
  393. border-color: #606769;
  394. }
  395. }
  396. .el-checkbox__label {
  397. color: @gray-l;
  398. }
  399. }
  400. }