form.less 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  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. }
  92. input[type="checkbox"] {
  93. position: relative;
  94. display: inline-block;
  95. appearance: none;
  96. width: 14px;
  97. height: 14px;
  98. outline: none;
  99. border: 1px solid @gray;
  100. background-color: #000;
  101. border-radius: 20%;
  102. margin: 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. .search-input {
  128. .el-input {
  129. line-height: 33px;
  130. height: 33px;
  131. &.el-input--prefix .el-input__inner {
  132. padding-left: 16px;
  133. }
  134. .el-input__icon {
  135. height: 33px;
  136. line-height: 33px;
  137. }
  138. }
  139. .el-select {
  140. line-height: 33px;
  141. .el-input {
  142. .el-input__suffix {
  143. padding: 0 8px;
  144. background: transparent;
  145. right: 0;
  146. }
  147. .el-input__icon {
  148. line-height: 33px;
  149. height: 33px;
  150. }
  151. .el-input__inner {
  152. background: fade(#536268, 20);
  153. border-color: fade(#536268, 20);
  154. height: 33px;
  155. line-height: 33px;
  156. padding-left: 16px;
  157. &::placeholder {
  158. text-align: right;
  159. padding-right: 8px;
  160. color: @gray;
  161. }
  162. }
  163. }
  164. .el-select__tags .el-tag {
  165. background-color: fade(@green, 50);
  166. color: @white;
  167. .el-icon-close {
  168. background-color: fade(@green, 50);
  169. }
  170. }
  171. }
  172. .el-input__prefix {
  173. left: unset;
  174. right: 5px;
  175. }
  176. .el-input__suffix {
  177. right: 30px;
  178. }
  179. }
  180. .select {
  181. &.el-select__popper.el-popper[role="tooltip"] {
  182. background: fade(#121d1c, 95);
  183. border: 1px solid fade(#121d1c, 95);
  184. }
  185. .el-select-dropdown {
  186. &.is-multiple .el-select-dropdown__item.selected {
  187. background-color: fade(@green, 20);
  188. color: #fff;
  189. font-weight: 400;
  190. border: 1px solid @green;
  191. }
  192. .el-select-dropdown__item {
  193. color: @font-color;
  194. &:hover {
  195. background-color: fade(@green, 20);
  196. color: #fff;
  197. }
  198. &.selected {
  199. background-color: fade(@green, 20);
  200. color: #fff;
  201. border: 1px solid #05bb4c;
  202. font-weight: 500;
  203. }
  204. }
  205. }
  206. &.el-popper.is-light .el-popper__arrow::before {
  207. background: fade(#121d1c, 95);
  208. border: 1px solid fade(#121d1c, 95) !important;
  209. }
  210. }
  211. .date-select {
  212. .el-input {
  213. .el-input__inner {
  214. background: fade(#536268, 20);
  215. border-color: fade(#536268, 20);
  216. height: 33px;
  217. line-height: 33px;
  218. padding-left: 16px;
  219. color: #ffffff;
  220. font-size: 12px;
  221. font-family: "SourceHanSans";
  222. &::placeholder {
  223. font-size: 12px;
  224. color: #606769;
  225. }
  226. }
  227. }
  228. &.el-picker__popper.el-popper[role="tooltip"] {
  229. background: fade(#121d1c, 95);
  230. border: 1px solid fade(#121d1c, 95);
  231. .el-picker-panel {
  232. background: transparent;
  233. color: @white;
  234. .el-date-table {
  235. th {
  236. color: @white;
  237. }
  238. td {
  239. &.next-month,
  240. &.prev-month {
  241. color: @gray;
  242. }
  243. &.available:hover {
  244. color: @green;
  245. }
  246. &.today span {
  247. color: @green;
  248. }
  249. &.current:not(.disabled) span {
  250. color: @white;
  251. background: @green;
  252. }
  253. }
  254. }
  255. .el-year-table td.today .cell {
  256. color: @white;
  257. }
  258. .el-date-picker__editor-wrap {
  259. .el-time-panel {
  260. .el-time-panel__content {
  261. background: fade(#121d1c, 95);
  262. }
  263. .el-time-panel__footer {
  264. background: fade(#121d1c, 95);
  265. }
  266. }
  267. }
  268. .el-picker-panel__footer {
  269. background: fade(#121d1c, 95);
  270. }
  271. }
  272. }
  273. .el-select-dropdown {
  274. &.is-multiple .el-select-dropdown__item.selected {
  275. background-color: fade(@green, 100);
  276. color: #fff;
  277. font-weight: 400;
  278. }
  279. .el-select-dropdown__item {
  280. color: @font-color;
  281. &:hover {
  282. background-color: fade(@green, 100);
  283. color: #fff;
  284. }
  285. &.selected {
  286. background-color: fade(@green, 100);
  287. color: #fff;
  288. }
  289. }
  290. }
  291. &.el-popper.is-light .el-popper__arrow::before {
  292. background: fade(#121d1c, 95);
  293. border: 1px solid fade(#121d1c, 95) !important;
  294. }
  295. .el-picker-panel__icon-btn:hover {
  296. color: @green;
  297. }
  298. .el-date-picker__header-label.active,
  299. .el-date-picker__header-label:hover {
  300. color: @green;
  301. }
  302. .el-year-table td .cell:hover,
  303. .el-year-table td.current:not(.disabled) .cell {
  304. color: @green;
  305. }
  306. .el-month-table td .cell:hover {
  307. color: @green;
  308. }
  309. .el-month-table td.current:not(.disabled) .cell {
  310. color: @green;
  311. }
  312. }
  313. .el-form {
  314. .el-form-item {
  315. margin-bottom: 8px;
  316. .el-form-item__label {
  317. line-height: 33px;
  318. color: @gray-l;
  319. font-family: "SourceHanSans";
  320. }
  321. .el-form-item__content {
  322. line-height: 33px;
  323. .el-input {
  324. line-height: 33px;
  325. .el-input__inner {
  326. background: fade(#536268, 20);
  327. border-color: fade(#536268, 20);
  328. height: 33px;
  329. line-height: 33px;
  330. padding-left: 16px;
  331. color: #ffffff;
  332. font-size: 12px;
  333. font-family: "SourceHanSans";
  334. &::placeholder {
  335. font-size: 12px;
  336. color: #606769;
  337. }
  338. }
  339. }
  340. .el-textarea {
  341. .el-textarea__inner {
  342. background: fade(#536268, 20);
  343. border-color: fade(#536268, 20);
  344. color: #ffffff;
  345. font-size: 12px;
  346. font-family: "SourceHanSans";
  347. &::placeholder {
  348. font-size: 12px;
  349. color: #606769;
  350. }
  351. }
  352. }
  353. }
  354. }
  355. }
  356. .el-input-number {
  357. .el-input {
  358. .el-input__inner {
  359. background: fade(#536268, 20);
  360. border-color: fade(#536268, 20);
  361. height: 33px;
  362. line-height: 33px;
  363. padding-left: 16px;
  364. color: #ffffff;
  365. font-size: 12px;
  366. font-family: "SourceHanSans";
  367. &::placeholder {
  368. font-size: 12px;
  369. color: #606769;
  370. }
  371. }
  372. }
  373. }
  374. .el-checkbox-group {
  375. .el-checkbox {
  376. &.is-checked {
  377. .el-checkbox__input {
  378. &.is-checked {
  379. .el-checkbox__inner {
  380. background-color: @green;
  381. border-color: @green;
  382. }
  383. }
  384. }
  385. .el-checkbox__label {
  386. color: @green;
  387. }
  388. }
  389. .el-checkbox__input {
  390. .el-checkbox__inner {
  391. background-color: transparent;
  392. border-color: #606769;
  393. }
  394. }
  395. .el-checkbox__label {
  396. color: @gray-l;
  397. }
  398. }
  399. }