form.less 8.9 KB

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