form.less 8.9 KB

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