select2.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. .select2-container {
  2. box-sizing: border-box;
  3. display: inline-block;
  4. margin: 0;
  5. position: relative;
  6. vertical-align: middle; }
  7. .select2-container .select2-selection--single {
  8. box-sizing: border-box;
  9. cursor: pointer;
  10. display: block;
  11. height: 28px;
  12. user-select: none;
  13. -webkit-user-select: none; }
  14. .select2-container .select2-selection--single .select2-selection__rendered {
  15. display: block;
  16. padding-left: 8px;
  17. padding-right: 20px;
  18. overflow: hidden;
  19. text-overflow: ellipsis;
  20. white-space: nowrap; }
  21. .select2-container .select2-selection--single .select2-selection__clear {
  22. background-color: transparent;
  23. border: none;
  24. font-size: 1em; }
  25. .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  26. padding-right: 8px;
  27. padding-left: 20px; }
  28. .select2-container .select2-selection--multiple {
  29. box-sizing: border-box;
  30. cursor: pointer;
  31. display: block;
  32. min-height: 32px;
  33. user-select: none;
  34. -webkit-user-select: none; }
  35. .select2-container .select2-selection--multiple .select2-selection__rendered {
  36. display: inline;
  37. list-style: none;
  38. padding: 0; }
  39. .select2-container .select2-selection--multiple .select2-selection__clear {
  40. background-color: transparent;
  41. border: none;
  42. font-size: 1em; }
  43. .select2-container .select2-search--inline .select2-search__field {
  44. box-sizing: border-box;
  45. border: none;
  46. font-size: 100%;
  47. margin-top: 5px;
  48. margin-left: 5px;
  49. padding: 0;
  50. max-width: 100%;
  51. resize: none;
  52. height: 18px;
  53. vertical-align: bottom;
  54. font-family: sans-serif;
  55. overflow: hidden;
  56. word-break: keep-all; }
  57. .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
  58. -webkit-appearance: none; }
  59. .select2-dropdown {
  60. background-color: white;
  61. border: 1px solid #aaa;
  62. border-radius: 4px;
  63. box-sizing: border-box;
  64. display: block;
  65. position: absolute;
  66. left: -100000px;
  67. width: 100%;
  68. z-index: 1051; }
  69. .select2-results {
  70. display: block; }
  71. .select2-results__options {
  72. list-style: none;
  73. margin: 0;
  74. padding: 0; }
  75. .select2-results__option {
  76. padding: 6px;
  77. user-select: none;
  78. -webkit-user-select: none; }
  79. .select2-results__option--selectable {
  80. cursor: pointer; }
  81. .select2-container--open .select2-dropdown {
  82. left: 0; }
  83. .select2-container--open .select2-dropdown--above {
  84. border-bottom: none;
  85. border-bottom-left-radius: 0;
  86. border-bottom-right-radius: 0; }
  87. .select2-container--open .select2-dropdown--below {
  88. border-top: none;
  89. border-top-left-radius: 0;
  90. border-top-right-radius: 0; }
  91. .select2-search--dropdown {
  92. display: block;
  93. padding: 4px; }
  94. .select2-search--dropdown .select2-search__field {
  95. padding: 4px;
  96. width: 100%;
  97. box-sizing: border-box; }
  98. .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  99. -webkit-appearance: none; }
  100. .select2-search--dropdown.select2-search--hide {
  101. display: none; }
  102. .select2-close-mask {
  103. border: 0;
  104. margin: 0;
  105. padding: 0;
  106. display: block;
  107. position: fixed;
  108. left: 0;
  109. top: 0;
  110. min-height: 100%;
  111. min-width: 100%;
  112. height: auto;
  113. width: auto;
  114. opacity: 0;
  115. z-index: 99;
  116. background-color: #fff;
  117. filter: alpha(opacity=0); }
  118. .select2-hidden-accessible {
  119. border: 0 !important;
  120. clip: rect(0 0 0 0) !important;
  121. -webkit-clip-path: inset(50%) !important;
  122. clip-path: inset(50%) !important;
  123. height: 1px !important;
  124. overflow: hidden !important;
  125. padding: 0 !important;
  126. position: absolute !important;
  127. width: 1px !important;
  128. white-space: nowrap !important; }
  129. .select2-container--default .select2-selection--single {
  130. background-color: #fff;
  131. border: 1px solid #aaa;
  132. border-radius: 4px; }
  133. .select2-container--default .select2-selection--single .select2-selection__rendered {
  134. color: #444;
  135. line-height: 28px; }
  136. .select2-container--default .select2-selection--single .select2-selection__clear {
  137. cursor: pointer;
  138. float: right;
  139. font-weight: bold;
  140. height: 26px;
  141. margin-right: 20px;
  142. padding-right: 0px; }
  143. .select2-container--default .select2-selection--single .select2-selection__placeholder {
  144. color: #999; }
  145. .select2-container--default .select2-selection--single .select2-selection__arrow {
  146. height: 26px;
  147. position: absolute;
  148. top: 1px;
  149. right: 1px;
  150. width: 20px; }
  151. .select2-container--default .select2-selection--single .select2-selection__arrow b {
  152. border-color: #888 transparent transparent transparent;
  153. border-style: solid;
  154. border-width: 5px 4px 0 4px;
  155. height: 0;
  156. left: 50%;
  157. margin-left: -4px;
  158. margin-top: -2px;
  159. position: absolute;
  160. top: 50%;
  161. width: 0; }
  162. .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  163. float: left; }
  164. .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  165. left: 1px;
  166. right: auto; }
  167. .select2-container--default.select2-container--disabled .select2-selection--single {
  168. background-color: #eee;
  169. cursor: default; }
  170. .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
  171. display: none; }
  172. .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  173. border-color: transparent transparent #888 transparent;
  174. border-width: 0 4px 5px 4px; }
  175. .select2-container--default .select2-selection--multiple {
  176. background-color: white;
  177. border: 1px solid #aaa;
  178. border-radius: 4px;
  179. cursor: text;
  180. padding-bottom: 5px;
  181. padding-right: 5px;
  182. position: relative; }
  183. .select2-container--default .select2-selection--multiple.select2-selection--clearable {
  184. padding-right: 25px; }
  185. .select2-container--default .select2-selection--multiple .select2-selection__clear {
  186. cursor: pointer;
  187. font-weight: bold;
  188. height: 20px;
  189. margin-right: 10px;
  190. margin-top: 5px;
  191. position: absolute;
  192. right: 0;
  193. padding: 1px; }
  194. .select2-container--default .select2-selection--multiple .select2-selection__choice {
  195. background-color: #e4e4e4;
  196. border: 1px solid #aaa;
  197. border-radius: 4px;
  198. box-sizing: border-box;
  199. display: inline-block;
  200. margin-left: 5px;
  201. margin-top: 5px;
  202. padding: 0;
  203. padding-left: 20px;
  204. position: relative;
  205. max-width: 100%;
  206. overflow: hidden;
  207. text-overflow: ellipsis;
  208. vertical-align: bottom;
  209. white-space: nowrap; }
  210. .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  211. cursor: default;
  212. padding-left: 2px;
  213. padding-right: 5px; }
  214. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  215. background-color: transparent;
  216. border: none;
  217. border-right: 1px solid #aaa;
  218. border-top-left-radius: 4px;
  219. border-bottom-left-radius: 4px;
  220. color: #999;
  221. cursor: pointer;
  222. font-size: 1em;
  223. font-weight: bold;
  224. padding: 0 4px;
  225. position: absolute;
  226. left: 0;
  227. top: 0; }
  228. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
  229. background-color: #f1f1f1;
  230. color: #333;
  231. outline: none; }
  232. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  233. margin-left: 5px;
  234. margin-right: auto; }
  235. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
  236. padding-left: 5px;
  237. padding-right: 2px; }
  238. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  239. border-left: 1px solid #aaa;
  240. border-right: none;
  241. border-top-left-radius: 0;
  242. border-bottom-left-radius: 0;
  243. border-top-right-radius: 4px;
  244. border-bottom-right-radius: 4px; }
  245. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__clear {
  246. float: left;
  247. margin-left: 10px;
  248. margin-right: auto; }
  249. .select2-container--default.select2-container--focus .select2-selection--multiple {
  250. border: solid black 1px;
  251. outline: 0; }
  252. .select2-container--default.select2-container--disabled .select2-selection--multiple {
  253. background-color: #eee;
  254. cursor: default; }
  255. .select2-container--default.select2-container--disabled .select2-selection__choice__remove {
  256. display: none; }
  257. .select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  258. border-top-left-radius: 0;
  259. border-top-right-radius: 0; }
  260. .select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  261. border-bottom-left-radius: 0;
  262. border-bottom-right-radius: 0; }
  263. .select2-container--default .select2-search--dropdown .select2-search__field {
  264. border: 1px solid #aaa; }
  265. .select2-container--default .select2-search--inline .select2-search__field {
  266. background: transparent;
  267. border: none;
  268. outline: 0;
  269. box-shadow: none;
  270. -webkit-appearance: textfield; }
  271. .select2-container--default .select2-results > .select2-results__options {
  272. max-height: 200px;
  273. overflow-y: auto; }
  274. .select2-container--default .select2-results__option .select2-results__option {
  275. padding-left: 1em; }
  276. .select2-container--default .select2-results__option .select2-results__option .select2-results__group {
  277. padding-left: 0; }
  278. .select2-container--default .select2-results__option .select2-results__option .select2-results__option {
  279. margin-left: -1em;
  280. padding-left: 2em; }
  281. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  282. margin-left: -2em;
  283. padding-left: 3em; }
  284. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  285. margin-left: -3em;
  286. padding-left: 4em; }
  287. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  288. margin-left: -4em;
  289. padding-left: 5em; }
  290. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  291. margin-left: -5em;
  292. padding-left: 6em; }
  293. .select2-container--default .select2-results__option--group {
  294. padding: 0; }
  295. .select2-container--default .select2-results__option--disabled {
  296. color: #999; }
  297. .select2-container--default .select2-results__option--selected {
  298. background-color: #ddd; }
  299. .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  300. background-color: #939393;
  301. color: white; }
  302. .select2-container--default .select2-results__group {
  303. cursor: default;
  304. display: block;
  305. padding: 6px; }
  306. .select2-container--classic .select2-selection--single {
  307. background-color: #f7f7f7;
  308. border: 1px solid #aaa;
  309. border-radius: 4px;
  310. outline: 0;
  311. background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
  312. background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
  313. background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
  314. background-repeat: repeat-x;
  315. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
  316. .select2-container--classic .select2-selection--single:focus {
  317. border: 1px solid #939393; }
  318. .select2-container--classic .select2-selection--single .select2-selection__rendered {
  319. color: #444;
  320. line-height: 28px; }
  321. .select2-container--classic .select2-selection--single .select2-selection__clear {
  322. cursor: pointer;
  323. float: right;
  324. font-weight: bold;
  325. height: 26px;
  326. margin-right: 20px; }
  327. .select2-container--classic .select2-selection--single .select2-selection__placeholder {
  328. color: #999; }
  329. .select2-container--classic .select2-selection--single .select2-selection__arrow {
  330. background-color: #ddd;
  331. border: none;
  332. border-left: 1px solid #aaa;
  333. border-top-right-radius: 4px;
  334. border-bottom-right-radius: 4px;
  335. height: 26px;
  336. position: absolute;
  337. top: 1px;
  338. right: 1px;
  339. width: 20px;
  340. background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  341. background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  342. background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
  343. background-repeat: repeat-x;
  344. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
  345. .select2-container--classic .select2-selection--single .select2-selection__arrow b {
  346. border-color: #888 transparent transparent transparent;
  347. border-style: solid;
  348. border-width: 5px 4px 0 4px;
  349. height: 0;
  350. left: 50%;
  351. margin-left: -4px;
  352. margin-top: -2px;
  353. position: absolute;
  354. top: 50%;
  355. width: 0; }
  356. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
  357. float: left; }
  358. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  359. border: none;
  360. border-right: 1px solid #aaa;
  361. border-radius: 0;
  362. border-top-left-radius: 4px;
  363. border-bottom-left-radius: 4px;
  364. left: 1px;
  365. right: auto; }
  366. .select2-container--classic.select2-container--open .select2-selection--single {
  367. border: 1px solid #939393; }
  368. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
  369. background: transparent;
  370. border: none; }
  371. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
  372. border-color: transparent transparent #888 transparent;
  373. border-width: 0 4px 5px 4px; }
  374. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
  375. border-top: none;
  376. border-top-left-radius: 0;
  377. border-top-right-radius: 0;
  378. background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
  379. background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
  380. background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
  381. background-repeat: repeat-x;
  382. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
  383. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
  384. border-bottom: none;
  385. border-bottom-left-radius: 0;
  386. border-bottom-right-radius: 0;
  387. background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
  388. background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
  389. background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
  390. background-repeat: repeat-x;
  391. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
  392. .select2-container--classic .select2-selection--multiple {
  393. background-color: white;
  394. border: 1px solid #aaa;
  395. border-radius: 4px;
  396. cursor: text;
  397. outline: 0;
  398. padding-bottom: 5px;
  399. padding-right: 5px; }
  400. .select2-container--classic .select2-selection--multiple:focus {
  401. border: 1px solid #939393; }
  402. .select2-container--classic .select2-selection--multiple .select2-selection__clear {
  403. display: none; }
  404. .select2-container--classic .select2-selection--multiple .select2-selection__choice {
  405. background-color: #e4e4e4;
  406. border: 1px solid #aaa;
  407. border-radius: 4px;
  408. display: inline-block;
  409. margin-left: 5px;
  410. margin-top: 5px;
  411. padding: 0; }
  412. .select2-container--classic .select2-selection--multiple .select2-selection__choice__display {
  413. cursor: default;
  414. padding-left: 2px;
  415. padding-right: 5px; }
  416. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
  417. background-color: transparent;
  418. border: none;
  419. border-top-left-radius: 4px;
  420. border-bottom-left-radius: 4px;
  421. color: #888;
  422. cursor: pointer;
  423. font-size: 1em;
  424. font-weight: bold;
  425. padding: 0 4px; }
  426. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
  427. color: #555;
  428. outline: none; }
  429. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  430. margin-left: 5px;
  431. margin-right: auto; }
  432. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
  433. padding-left: 5px;
  434. padding-right: 2px; }
  435. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  436. border-top-left-radius: 0;
  437. border-bottom-left-radius: 0;
  438. border-top-right-radius: 4px;
  439. border-bottom-right-radius: 4px; }
  440. .select2-container--classic.select2-container--open .select2-selection--multiple {
  441. border: 1px solid #939393; }
  442. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
  443. border-top: none;
  444. border-top-left-radius: 0;
  445. border-top-right-radius: 0; }
  446. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
  447. border-bottom: none;
  448. border-bottom-left-radius: 0;
  449. border-bottom-right-radius: 0; }
  450. .select2-container--classic .select2-search--dropdown .select2-search__field {
  451. border: 1px solid #aaa;
  452. outline: 0; }
  453. .select2-container--classic .select2-search--inline .select2-search__field {
  454. outline: 0;
  455. box-shadow: none; }
  456. .select2-container--classic .select2-dropdown {
  457. background-color: white;
  458. border: 1px solid transparent; }
  459. .select2-container--classic .select2-dropdown--above {
  460. border-bottom: none; }
  461. .select2-container--classic .select2-dropdown--below {
  462. border-top: none; }
  463. .select2-container--classic .select2-results > .select2-results__options {
  464. max-height: 200px;
  465. overflow-y: auto; }
  466. .select2-container--classic .select2-results__option--group {
  467. padding: 0; }
  468. .select2-container--classic .select2-results__option--disabled {
  469. color: grey; }
  470. .select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable {
  471. background-color: #3875d7;
  472. color: white; }
  473. .select2-container--classic .select2-results__group {
  474. cursor: default;
  475. display: block;
  476. padding: 6px; }
  477. .select2-container--classic.select2-container--open .select2-dropdown {
  478. border-color: #939393; }