select2.css 17 KB

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