form.less 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. // 查询 样式
  2. .query {
  3. display: flex;
  4. justify-content: space-between;
  5. .query-items {
  6. flex: 0 0 auto;
  7. display: flex;
  8. .query-item {
  9. flex: 0 0 auto;
  10. display: flex;
  11. margin: 0 1.4815vh;
  12. .lable {
  13. flex: 0 0 auto;
  14. margin-right: 1.4815vh;
  15. line-height: 33px;
  16. color: @gray-l;
  17. }
  18. .search-input {
  19. position: relative;
  20. input {
  21. box-sizing: border-box;
  22. flex: 0 0 200px;
  23. border: 0px solid @darkgray;
  24. color: @white;
  25. outline: unset;
  26. border-radius: 0%;
  27. padding-right: 40px;
  28. background: fade(#536268, 20);
  29. height: 33px;
  30. line-height: 33px;
  31. &::placeholder {
  32. font-size: 12px;
  33. text-align: right;
  34. color: @darkgray;
  35. }
  36. }
  37. .unit {
  38. position: absolute;
  39. right: 12px;
  40. top: 6px;
  41. line-height: 33px;
  42. margin: auto;
  43. }
  44. }
  45. }
  46. }
  47. .query-actions {
  48. flex: 0 0 auto;
  49. }
  50. }
  51. input[type="checkbox"] {
  52. position: relative;
  53. display: inline-block;
  54. appearance: none;
  55. width: 14px;
  56. height: 14px;
  57. outline: none;
  58. border: 1px solid @gray;
  59. background-color: #000;
  60. border-radius: 20%;
  61. margin: 0;
  62. &:checked {
  63. border-color: @green;
  64. background: @green;
  65. }
  66. &::after {
  67. display: inline-block;
  68. content: " ";
  69. position: absolute;
  70. left: 30%;
  71. top: 5%;
  72. width: 3px;
  73. height: 7px;
  74. border-color: #fff;
  75. border-style: solid;
  76. border-width: 0px 2px 2px 0px;
  77. transform: rotate(45deg);
  78. opacity: 0;
  79. }
  80. &:checked::after {
  81. content: "";
  82. opacity: 1;
  83. transition: opacity 0.3s ease-out;
  84. }
  85. }
  86. .search-input {
  87. .el-input {
  88. line-height: 33px;
  89. height: 33px;
  90. &.el-input--prefix .el-input__inner {
  91. padding-left: 16px;
  92. }
  93. .el-input__icon {
  94. height: 33px;
  95. line-height: 33px;
  96. }
  97. }
  98. .el-select {
  99. line-height: 33px;
  100. .el-input {
  101. .el-input__suffix {
  102. padding: 0 8px;
  103. background: transparent;
  104. right: 0;
  105. }
  106. .el-input__icon {
  107. line-height: 33px;
  108. height: 33px;
  109. }
  110. .el-input__inner {
  111. background: fade(#536268, 20);
  112. border-color: fade(#536268, 20);
  113. height: 33px;
  114. line-height: 33px;
  115. padding-left: 16px;
  116. &::placeholder {
  117. text-align: right;
  118. padding-right: 8px;
  119. color: @gray;
  120. }
  121. }
  122. }
  123. .el-select__tags .el-tag {
  124. background-color: fade(@green, 50);
  125. color: @white;
  126. .el-icon-close {
  127. background-color: fade(@green, 50);
  128. }
  129. }
  130. }
  131. .el-input__prefix {
  132. left: unset;
  133. right: 5px;
  134. }
  135. .el-input__suffix {
  136. right: 30px;
  137. }
  138. }
  139. .select {
  140. &.el-select__popper.el-popper[role="tooltip"] {
  141. background: fade(#121d1c, 95);
  142. border: 1px solid fade(#121d1c, 95);
  143. }
  144. .el-select-dropdown {
  145. &.is-multiple .el-select-dropdown__item.selected {
  146. background-color: fade(@green, 100);
  147. color: #fff;
  148. font-weight: 400;
  149. }
  150. .el-select-dropdown__item {
  151. color: @font-color;
  152. &:hover {
  153. background-color: fade(@green, 100);
  154. color: #fff;
  155. }
  156. &.selected {
  157. background-color: fade(@green, 100);
  158. color: #fff;
  159. }
  160. }
  161. }
  162. &.el-popper.is-light .el-popper__arrow::before {
  163. background: fade(#121d1c, 95);
  164. border: 1px solid fade(#121d1c, 95) !important;
  165. }
  166. }
  167. .date-select {
  168. &.el-picker__popper.el-popper[role="tooltip"] {
  169. background: fade(#121d1c, 95);
  170. border: 1px solid fade(#121d1c, 95);
  171. .el-picker-panel {
  172. background: transparent;
  173. color: @white;
  174. .el-date-table {
  175. th {
  176. color: @white;
  177. }
  178. td {
  179. &.next-month,
  180. &.prev-month {
  181. color: @gray;
  182. }
  183. &.available:hover {
  184. color: @green;
  185. }
  186. &.today span {
  187. color: @green;
  188. }
  189. &.current:not(.disabled) span {
  190. color: @white;
  191. background: @green;
  192. }
  193. }
  194. }
  195. .el-year-table td.today .cell {
  196. color: @white;
  197. }
  198. }
  199. }
  200. .el-select-dropdown {
  201. &.is-multiple .el-select-dropdown__item.selected {
  202. background-color: fade(@green, 100);
  203. color: #fff;
  204. font-weight: 400;
  205. }
  206. .el-select-dropdown__item {
  207. color: @font-color;
  208. &:hover {
  209. background-color: fade(@green, 100);
  210. color: #fff;
  211. }
  212. &.selected {
  213. background-color: fade(@green, 100);
  214. color: #fff;
  215. }
  216. }
  217. }
  218. &.el-popper.is-light .el-popper__arrow::before {
  219. background: fade(#121d1c, 95);
  220. border: 1px solid fade(#121d1c, 95) !important;
  221. }
  222. .el-picker-panel__icon-btn:hover {
  223. color: @green;
  224. }
  225. .el-date-picker__header-label.active,
  226. .el-date-picker__header-label:hover {
  227. color: @green;
  228. }
  229. .el-year-table td .cell:hover,
  230. .el-year-table td.current:not(.disabled) .cell {
  231. color: @green;
  232. }
  233. .el-month-table td .cell:hover {
  234. color: @green;
  235. }
  236. .el-month-table td.current:not(.disabled) .cell {
  237. color: @green;
  238. }
  239. }