index.module.less 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. @img: './images';
  2. .wrap {
  3. // margin-bottom: 20px;
  4. display: flex;
  5. flex-direction: row;
  6. align-items: center;
  7. border: 1px solid #2dc7aa;
  8. padding: 0 6px 0 20px;
  9. line-height: 60px;
  10. height: 60px;
  11. background: #fff;
  12. border-radius: 30px;
  13. overflow: hidden;
  14. cursor: pointer;
  15. &:hover,
  16. &.active {
  17. box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
  18. .searchline,
  19. .searchBtn {
  20. visibility: visible;
  21. }
  22. }
  23. .selectWrap {
  24. :global {
  25. // .hasVal {
  26. // .el-input__wrapper {
  27. // &:hover {
  28. // .el-input__suffix-inner {
  29. // position: relative;
  30. // .el-select__caret {
  31. // //箭头样式
  32. // appearance: none;
  33. // background: url('@{img}/closeIcon.png') no-repeat; //自定义图片
  34. // background-size: 16px 16px;
  35. // top: -1px;
  36. // right: -1px;
  37. // }
  38. // }
  39. // }
  40. // }
  41. // }
  42. .el-input__wrapper {
  43. padding-right: 25px;
  44. font-size: 16px;
  45. box-shadow: none !important;
  46. line-height: 60px;
  47. height: 60px;
  48. position: relative;
  49. }
  50. .el-input__wrapper.is-focus {
  51. // font-size: 16px;
  52. box-shadow: none !important;
  53. }
  54. .el-input.is-focus .el-input__wrapper {
  55. box-shadow: none !important;
  56. background-color: #fff;
  57. }
  58. // select 那层
  59. // .el-input__suffix {
  60. // .el-input__suffix-inner {
  61. // color: #2dc7aa;
  62. // font-size: 20px;
  63. // font-weight: bold;
  64. // }
  65. // }
  66. // .el-select__caret {
  67. // color: #2dc7aa !important;
  68. // font-size: 20px !important;
  69. // font-weight: bold;
  70. // // 更换箭头
  71. // }
  72. .el-select__caret {
  73. //箭头样式
  74. // transform: rotateZ(0deg); //转动图片
  75. appearance: none;
  76. background: url('@{img}/selectArrow.png') no-repeat; //自定义图片
  77. background-size: 16px 16px;
  78. width: 16px;
  79. height: 16px !important;
  80. position: absolute; //图片定位
  81. top: -1px;
  82. right: -1px;
  83. }
  84. .el-icon svg {
  85. //隐藏原来箭头
  86. display: none;
  87. }
  88. .el-select .el-input.is-focus .el-input__wrapper {
  89. font-size: 16px;
  90. .el-input {
  91. font-size: 18px;
  92. .el-input.is-focus {
  93. .el-input__wrapper {
  94. box-shadow: none !important;
  95. background-color: #fff;
  96. }
  97. }
  98. .el-input__wrapper.is-focus {
  99. box-shadow: none !important;
  100. background-color: #fff;
  101. }
  102. }
  103. // .el-input.is-focus {
  104. // .el-input__wrapper.is-focus {
  105. // box-shadow: none !important;
  106. // background-color: #fff;
  107. // }
  108. // }
  109. }
  110. }
  111. }
  112. .selectWrap {
  113. display: flex;
  114. flex-direction: row;
  115. position: relative;
  116. align-items: center;
  117. .line {
  118. width: 1px;
  119. height: 36px;
  120. background: #2dc7aa !important;
  121. // position: absolute;
  122. // right: -13px;
  123. // top: 2px;
  124. // z-index: 1000;
  125. }
  126. }
  127. .inputSelect {
  128. width: 600px;
  129. :global {
  130. .el-input__wrapper {
  131. width: 600px;
  132. padding-right: 0;
  133. font-size: 16px;
  134. box-shadow: none !important;
  135. line-height: 60px;
  136. height: 60px;
  137. position: relative;
  138. }
  139. .el-icon {
  140. position: relative;
  141. top: -5px;
  142. left: -18px;
  143. display: block;
  144. font-size: 30px !important;
  145. width: 16px;
  146. height: 16px;
  147. opacity: 0;
  148. // visibility: hidden;
  149. // svg {
  150. // //隐藏原来箭头
  151. // }
  152. }
  153. .el-input__suffix {
  154. cursor: pointer;
  155. background: url('@{img}/closeIcon.png') no-repeat; //自定义图片
  156. background-size: 16px 16px;
  157. width: 16px;
  158. height: 16px;
  159. position: absolute; //图片定位
  160. top: 20px;
  161. right: 22px;
  162. }
  163. .el-input__wrapper.is-focus {
  164. // font-size: 16px;
  165. box-shadow: none !important;
  166. }
  167. .el-input.is-focus .el-input__wrapper {
  168. box-shadow: none !important;
  169. background-color: #fff;
  170. }
  171. .el-input__wrapper {
  172. padding-left: 0;
  173. .el-input__inner {
  174. font-size: 18px !important;
  175. }
  176. }
  177. .el-select .el-input.is-focus .el-input__wrapper {
  178. font-size: 16px;
  179. .el-input {
  180. font-size: 18px;
  181. .el-input.is-focus {
  182. .el-input__wrapper {
  183. box-shadow: none !important;
  184. background-color: #fff;
  185. }
  186. }
  187. .el-input__wrapper.is-focus {
  188. box-shadow: none !important;
  189. background-color: #fff;
  190. }
  191. }
  192. // .el-input.is-focus {
  193. // .el-input__wrapper.is-focus {
  194. // box-shadow: none !important;
  195. // background-color: #fff;
  196. // }
  197. // }
  198. }
  199. }
  200. }
  201. .searchIcon {
  202. font-size: 20px !important;
  203. }
  204. .searchWrap {
  205. cursor: pointer;
  206. width: 97px;
  207. display: flex;
  208. flex-direction: row;
  209. align-items: center;
  210. justify-content: center;
  211. img {
  212. width: 24px;
  213. height: 25px;
  214. }
  215. }
  216. .searchBtn {
  217. width: 90px;
  218. height: 50px;
  219. background: #2dc7aa;
  220. border-radius: 25px;
  221. color: #fff;
  222. text-align: center;
  223. line-height: 50px;
  224. cursor: pointer;
  225. visibility: hidden;
  226. &:active {
  227. opacity: 0.9;
  228. }
  229. }
  230. .searchline {
  231. visibility: hidden;
  232. width: 1px;
  233. height: 36px;
  234. background-color: #eee;
  235. margin-right: 15px;
  236. }
  237. }