search_dropdown.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. @-webkit-keyframes iui-fadeIn {
  2. 0% {
  3. opacity: 0
  4. }
  5. 100% {
  6. opacity: 1
  7. }
  8. }
  9. @-moz-keyframes iui-fadeIn {
  10. 0% {
  11. opacity: 0
  12. }
  13. 100% {
  14. opacity: 1
  15. }
  16. }
  17. @-ms-keyframes iui-fadeIn {
  18. 0% {
  19. opacity: 0
  20. }
  21. 100% {
  22. opacity: 1
  23. }
  24. }
  25. @-o-keyframes iui-fadeIn {
  26. 0% {
  27. opacity: 0
  28. }
  29. 100% {
  30. opacity: 1
  31. }
  32. }
  33. @keyframes iui-fadeIn {
  34. 0% {
  35. opacity: 0
  36. }
  37. 100% {
  38. opacity: 1
  39. }
  40. }
  41. @-webkit-keyframes iui-fadeOut {
  42. 0% {
  43. opacity: 1
  44. }
  45. 100% {
  46. opacity: 0
  47. }
  48. }
  49. @-moz-keyframes iui-fadeOut {
  50. 0% {
  51. opacity: 1
  52. }
  53. 100% {
  54. opacity: 0
  55. }
  56. }
  57. @-ms-keyframes iui-fadeOut {
  58. 0% {
  59. opacity: 1
  60. }
  61. 100% {
  62. opacity: 0
  63. }
  64. }
  65. @-o-keyframes iui-fadeOut {
  66. 0% {
  67. opacity: 1
  68. }
  69. 100% {
  70. opacity: 0
  71. }
  72. }
  73. @keyframes iui-fadeOut {
  74. 0% {
  75. opacity: 1
  76. }
  77. 100% {
  78. opacity: 0
  79. }
  80. }
  81. .dropdown-multiple,
  82. .dropdown-multiple-label,
  83. .dropdown-single {
  84. position: relative
  85. }
  86. .dropdown-multiple-label.active .dropdown-main,
  87. .dropdown-multiple.active .dropdown-main,
  88. .dropdown-single.active .dropdown-main {
  89. display: block;
  90. -webkit-animation: iui-fadeIn .2s ease-in forwards;
  91. -moz-animation: iui-fadeIn .2s ease-in forwards;
  92. -ms-animation: iui-fadeIn .2s ease-in forwards;
  93. -o-animation: iui-fadeIn .2s ease-in forwards;
  94. animation: iui-fadeIn .2s ease-in forwards
  95. }
  96. .dropdown-multiple-label.active .dropdown-display-label:after,
  97. .dropdown-multiple-label.active .dropdown-display:after,
  98. .dropdown-multiple.active .dropdown-display-label:after,
  99. .dropdown-multiple.active .dropdown-display:after,
  100. .dropdown-single.active .dropdown-display-label:after,
  101. .dropdown-single.active .dropdown-display:after {
  102. top:11px;
  103. border-top: none;
  104. border-bottom: 7px solid #999;
  105. border-left: 5px solid transparent;
  106. border-right: 5px solid transparent
  107. }
  108. .dropdown-multiple-label.active .dropdown-display,
  109. .dropdown-multiple-label.active .dropdown-display-label,
  110. .dropdown-multiple.active .dropdown-display,
  111. .dropdown-multiple.active .dropdown-display-label,
  112. .dropdown-single.active .dropdown-display,
  113. .dropdown-single.active .dropdown-display-label {
  114. border-bottom-left-radius: 0;
  115. border-bottom-right-radius: 0
  116. }
  117. .dropdown-display,
  118. .dropdown-display-label {
  119. position: relative;
  120. display: block;
  121. margin-bottom: 0;
  122. font-size: 13px;
  123. line-height: 1.6;
  124. vertical-align: middle;
  125. touch-action: manipulation;
  126. cursor: pointer;
  127. user-select: none;
  128. background-image: none;
  129. border: 1px solid #ccc;
  130. color: #333;
  131. background-color: #fff
  132. }
  133. .dropdown-display-label:after,
  134. .dropdown-display:after {
  135. content: '';
  136. position: absolute;
  137. border-top: 7px solid #888;
  138. border-left: 5px solid transparent;
  139. border-right: 5px solid transparent;
  140. top: 12px;
  141. right: 8px
  142. }
  143. .dropdown-clear-all {/*
  144. background-color: #fff;
  145. border: none;
  146. font-size: 22px;
  147. z-index: 999;
  148. color: #999;
  149. position: absolute;
  150. right: 2px;
  151. top: 2px;
  152. display: none;
  153. width: 25px;
  154. height: 30px;
  155. text-align: center;
  156. line-height: 30px; */
  157. /* display:none; */
  158. }
  159. .dropdown-clear-all:focus {
  160. outline: 0
  161. }
  162. .dropdown-clear-all:hover {
  163. color: #ccc;
  164. text-decoration: none;
  165. }
  166. .dropdown-display {
  167. white-space: nowrap;
  168. padding: 0 20px 0 12px;
  169. width:90% !important;
  170. height:30px;
  171. }
  172. .dropdown-multiple:hover .dropdown-clear-all,
  173. .dropdown-single:hover .dropdown-clear-all {
  174. display: block
  175. }
  176. .dropdown-display .dropdown-chose-list {
  177. display: inline-block;
  178. /* vertical-align: middle; */
  179. line-height:28px;
  180. width: 100%;
  181. overflow: hidden;
  182. text-overflow: ellipsis;
  183. white-space: nowrap;
  184. color:#111;
  185. }
  186. .dropdown-display .dropdown-chose-list span:before {
  187. content: ','
  188. }
  189. .dropdown-display .dropdown-chose-list span:first-child:before {
  190. content: ''
  191. }
  192. .dropdown-display .placeholder {
  193. display: none !important
  194. }
  195. .dropdown-display .placeholder:first-child {
  196. position: absolute;
  197. height: 100%;
  198. width: 100%;
  199. top: 0;
  200. left: 0;
  201. color: #999;
  202. display: block !important;
  203. text-indent: 10px;
  204. font-size: 13px;
  205. line-height: 28px
  206. }
  207. .dropdown-display input {
  208. border: 0;
  209. outline: 0
  210. }
  211. .dropdown-display-label {
  212. cursor: text;
  213. padding: 6px 25px 5px 0
  214. }
  215. .dropdown-display-label .dropdown-search {
  216. display: inline-block;
  217. }
  218. .dropdown-display-label input,
  219. .dropdown-display-label input:focus {
  220. border: none;
  221. outline: 0
  222. }
  223. .dropdown-display-label .dropdown-chose-list {
  224. display: inline-block;
  225. padding: 0 5px
  226. }
  227. .dropdown-display-label .dropdown-chose-list .placeholder {
  228. display: none
  229. }
  230. .dropdown-display-label .dropdown-selected {
  231. position: relative;
  232. margin: 0 5px 5px 0;
  233. padding: 0 20px 0 5px;
  234. border: 1px solid #aaa;
  235. max-width: 100%;
  236. border-radius: 3px;
  237. background-repeat: repeat-x;
  238. color: #333;
  239. cursor: default;
  240. display: inline-block
  241. }
  242. .dropdown-selected .del {
  243. display:inline-flex;
  244. -webkit-appearance: none;
  245. padding:0px 3px;
  246. cursor: pointer;
  247. background: 0 0;
  248. border: 0;
  249. float: right;
  250. line-height: 1;
  251. color: #999;
  252. position: absolute;
  253. right:30px;
  254. top: 50%;
  255. transform:translateY(-50%);
  256. border-radius: 100%;
  257. }
  258. .dropdown-selected .del:after {
  259. content: '\D7';
  260. font-size: 16px
  261. }
  262. .dropdown-main {
  263. position: absolute;
  264. top: 100%;
  265. left: 0;
  266. z-index: 1010;
  267. width: 100%;
  268. color: #444;
  269. box-sizing: border-box;
  270. background-color: #fff;
  271. border: 1px solid #ccc;
  272. border-radius: 0 0 4px 4px;
  273. box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  274. margin-top: -1px;
  275. border-top: 0;
  276. padding: 4px 7px;
  277. display: none
  278. }
  279. .dropdown-main ul {
  280. overflow-x: hidden;
  281. overflow-y: auto;
  282. max-height: 240px;
  283. margin: 0;
  284. padding: 0
  285. }
  286. .dropdown-main input {
  287. margin-top: 0;
  288. display: block;
  289. box-sizing: border-box;
  290. height: 30px;
  291. border: 1px solid #ccc;
  292. width: 100%;
  293. text-indent: 5px;
  294. border-radius: 3px;
  295. }
  296. .dropdown-main .dropdown-search {
  297. position:relative;
  298. }
  299. .dropdown-main .dropdown-search button.del {
  300. position:absolute;
  301. top:5px;
  302. right:0;
  303. width:30px;
  304. height:32px;
  305. line-height:26px;
  306. text-align: center;
  307. }
  308. .dropdown-main .dropdown-search button.del::after{
  309. content:'×';
  310. }
  311. .dropdown-main .dropdown-search {
  312. display: block;
  313. padding: 5px 0
  314. }
  315. .dropdown-group {
  316. font-weight: 700
  317. }
  318. .dropdown-group,
  319. .dropdown-option {
  320. margin: 0;
  321. padding-left: 12px;
  322. list-style: none;
  323. line-height: 28px;
  324. word-wrap: break-word;
  325. font-size:13px;
  326. }
  327. .dropdown-option {
  328. cursor: pointer
  329. }
  330. .dropdown-option:focus,
  331. .dropdown-option:hover {
  332. background-color: #efefef;
  333. outline: 0
  334. }
  335. .dropdown-option[disabled] {
  336. color: #ddd;
  337. background-color: #fff;
  338. cursor: not-allowed;
  339. text-decoration: line-through
  340. }
  341. .dropdown-option.dropdown-chose {
  342. background-color:#d1d9ff;
  343. }
  344. .dropdown-maxItem-alert, .dropdown-minItem-alert {
  345. position: absolute;
  346. top: 0;
  347. left: 0;
  348. background-color: #e4e3e2;
  349. width: 100%;
  350. height: 39px;
  351. line-height: 39px;
  352. padding: 0 5px;
  353. border-radius: 5px;
  354. color: #999;
  355. -webkit-animation: iui-fadeIn .2s ease-in forwards;
  356. -moz-animation: iui-fadeIn .2s ease-in forwards;
  357. -ms-animation: iui-fadeIn .2s ease-in forwards;
  358. -o-animation: iui-fadeIn .2s ease-in forwards;
  359. animation: iui-fadeIn .2s ease-in forwards
  360. }