form.less 11 KB

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