select2.css 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. /*
  2. Version: @@ver@@ Timestamp: @@timestamp@@
  3. */
  4. .select2-container {
  5. margin: 0;
  6. position: relative;
  7. display: inline-block;
  8. /* inline-block for ie7 */
  9. zoom: 1;
  10. *display: inline;
  11. vertical-align: middle;
  12. }
  13. .select2-container,
  14. .select2-drop,
  15. .select2-search,
  16. .select2-search input{
  17. /*
  18. Force border-box so that % widths fit the parent
  19. container without overlap because of margin/padding.
  20. More Info : http://www.quirksmode.org/css/box.html
  21. */
  22. -webkit-box-sizing: border-box; /* webkit */
  23. -khtml-box-sizing: border-box; /* konqueror */
  24. -moz-box-sizing: border-box; /* firefox */
  25. -ms-box-sizing: border-box; /* ie */
  26. box-sizing: border-box; /* css3 */
  27. }
  28. .select2-container .select2-choice {
  29. display: block;
  30. height: 26px;
  31. padding: 0 0 0 8px;
  32. overflow: hidden;
  33. position: relative;
  34. border: 1px solid #aaa;
  35. white-space: nowrap;
  36. line-height: 26px;
  37. color: #444;
  38. text-decoration: none;
  39. -webkit-border-radius: 4px;
  40. -moz-border-radius: 4px;
  41. border-radius: 4px;
  42. -webkit-background-clip: padding-box;
  43. -moz-background-clip: padding;
  44. background-clip: padding-box;
  45. -webkit-touch-callout: none;
  46. -webkit-user-select: none;
  47. -khtml-user-select: none;
  48. -moz-user-select: none;
  49. -ms-user-select: none;
  50. user-select: none;
  51. background-color: #fff;
  52. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
  53. background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%);
  54. background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
  55. background-image: -o-linear-gradient(bottom, #eeeeee 0%, #ffffff 50%);
  56. background-image: -ms-linear-gradient(top, #ffffff 0%, #eeeeee 50%);
  57. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
  58. background-image: linear-gradient(top, #ffffff 0%, #eeeeee 50%);
  59. }
  60. .select2-container.select2-drop-above .select2-choice {
  61. border-bottom-color: #aaa;
  62. -webkit-border-radius:0 0 4px 4px;
  63. -moz-border-radius:0 0 4px 4px;
  64. border-radius:0 0 4px 4px;
  65. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.9, white));
  66. background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 90%);
  67. background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 90%);
  68. background-image: -o-linear-gradient(bottom, #eeeeee 0%, white 90%);
  69. background-image: -ms-linear-gradient(top, #eeeeee 0%,#ffffff 90%);
  70. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
  71. background-image: linear-gradient(top, #eeeeee 0%,#ffffff 90%);
  72. }
  73. .select2-container.select2-allowclear .select2-choice span {
  74. margin-right: 42px;
  75. }
  76. .select2-container .select2-choice span {
  77. margin-right: 26px;
  78. display: block;
  79. overflow: hidden;
  80. white-space: nowrap;
  81. -ms-text-overflow: ellipsis;
  82. -o-text-overflow: ellipsis;
  83. text-overflow: ellipsis;
  84. }
  85. .select2-container .select2-choice abbr {
  86. display: inline-block;
  87. width: 12px;
  88. height: 12px;
  89. position: absolute;
  90. right: 24px;
  91. top: 8px;
  92. font-size: 1px;
  93. text-decoration: none;
  94. border: 0;
  95. background: url('select2.png') right top no-repeat;
  96. cursor: pointer;
  97. outline: 0;
  98. }
  99. .select2-container .select2-choice abbr:hover {
  100. background-position: right -11px;
  101. cursor: pointer;
  102. }
  103. .select2-drop-mask {
  104. position: absolute;
  105. left: 0;
  106. top: 0;
  107. z-index: 9998;
  108. background-color: #fff;
  109. opacity: 0;
  110. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* works in IE 8 */
  111. filter: "alpha(opacity=0)"; /* expected to work in IE 8 */
  112. filter: alpha(opacity=0); /* IE 4-7 */
  113. }
  114. .select2-drop {
  115. width: 100%;
  116. margin-top:-1px;
  117. position: absolute;
  118. z-index: 9999;
  119. top: 100%;
  120. background: #fff;
  121. color: #000;
  122. border: 1px solid #aaa;
  123. border-top: 0;
  124. -webkit-border-radius: 0 0 4px 4px;
  125. -moz-border-radius: 0 0 4px 4px;
  126. border-radius: 0 0 4px 4px;
  127. -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  128. -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  129. box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  130. }
  131. .select2-drop-auto-width {
  132. border-top: 1px solid #aaa;
  133. width: auto;
  134. }
  135. .select2-drop-auto-width .select2-search {
  136. padding-top: 4px;
  137. }
  138. .select2-drop.select2-drop-above {
  139. margin-top: 1px;
  140. border-top: 1px solid #aaa;
  141. border-bottom: 0;
  142. -webkit-border-radius: 4px 4px 0 0;
  143. -moz-border-radius: 4px 4px 0 0;
  144. border-radius: 4px 4px 0 0;
  145. -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  146. -moz-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  147. box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  148. }
  149. .select2-container .select2-choice div {
  150. display: inline-block;
  151. width: 18px;
  152. height: 100%;
  153. position: absolute;
  154. right: 0;
  155. top: 0;
  156. border-left: 1px solid #aaa;
  157. -webkit-border-radius: 0 4px 4px 0;
  158. -moz-border-radius: 0 4px 4px 0;
  159. border-radius: 0 4px 4px 0;
  160. -webkit-background-clip: padding-box;
  161. -moz-background-clip: padding;
  162. background-clip: padding-box;
  163. background: #ccc;
  164. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
  165. background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
  166. background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
  167. background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
  168. background-image: -ms-linear-gradient(top, #cccccc 0%, #eeeeee 60%);
  169. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
  170. background-image: linear-gradient(top, #cccccc 0%, #eeeeee 60%);
  171. }
  172. .select2-container .select2-choice div b {
  173. display: block;
  174. width: 100%;
  175. height: 100%;
  176. background: url('select2.png') no-repeat 0 1px;
  177. }
  178. .select2-search {
  179. display: inline-block;
  180. width: 100%;
  181. min-height: 26px;
  182. margin: 0;
  183. padding-left: 4px;
  184. padding-right: 4px;
  185. position: relative;
  186. z-index: 10000;
  187. white-space: nowrap;
  188. }
  189. .select2-search-hidden {
  190. display: block;
  191. position: absolute;
  192. left: -10000px;
  193. }
  194. .select2-search input {
  195. width: 100%;
  196. height: auto !important;
  197. min-height: 26px;
  198. padding: 4px 20px 4px 5px;
  199. margin: 0;
  200. outline: 0;
  201. font-family: sans-serif;
  202. font-size: 1em;
  203. border: 1px solid #aaa;
  204. -webkit-border-radius: 0;
  205. -moz-border-radius: 0;
  206. border-radius: 0;
  207. -webkit-box-shadow: none;
  208. -moz-box-shadow: none;
  209. box-shadow: none;
  210. background: #fff url('select2.png') no-repeat 100% -22px;
  211. background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
  212. background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  213. background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  214. background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
  215. background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  216. background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  217. }
  218. .select2-drop.select2-drop-above .select2-search input {
  219. margin-top: 4px;
  220. }
  221. .select2-search input.select2-active {
  222. background: #fff url('select2-spinner.gif') no-repeat 100%;
  223. background: url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
  224. background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  225. background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  226. background: url('select2-spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
  227. background: url('select2-spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  228. background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  229. }
  230. .select2-container-active .select2-choice,
  231. .select2-container-active .select2-choices {
  232. border: 1px solid #5897fb;
  233. outline: none;
  234. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
  235. -moz-box-shadow: 0 0 5px rgba(0,0,0,.3);
  236. box-shadow: 0 0 5px rgba(0,0,0,.3);
  237. }
  238. .select2-dropdown-open .select2-choice {
  239. border-bottom-color: transparent;
  240. -webkit-box-shadow: 0 1px 0 #fff inset;
  241. -moz-box-shadow: 0 1px 0 #fff inset;
  242. box-shadow: 0 1px 0 #fff inset;
  243. -webkit-border-bottom-left-radius: 0;
  244. -moz-border-radius-bottomleft: 0;
  245. border-bottom-left-radius: 0;
  246. -webkit-border-bottom-right-radius: 0;
  247. -moz-border-radius-bottomright: 0;
  248. border-bottom-right-radius: 0;
  249. background-color: #eee;
  250. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
  251. background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
  252. background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
  253. background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
  254. background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
  255. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
  256. background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
  257. }
  258. .select2-dropdown-open.select2-drop-above .select2-choice,
  259. .select2-dropdown-open.select2-drop-above .select2-choices {
  260. border: 1px solid #5897fb;
  261. border-top-color: transparent;
  262. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, white), color-stop(0.5, #eeeeee));
  263. background-image: -webkit-linear-gradient(center top, white 0%, #eeeeee 50%);
  264. background-image: -moz-linear-gradient(center top, white 0%, #eeeeee 50%);
  265. background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
  266. background-image: -ms-linear-gradient(bottom, #ffffff 0%,#eeeeee 50%);
  267. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
  268. background-image: linear-gradient(bottom, #ffffff 0%,#eeeeee 50%);
  269. }
  270. .select2-dropdown-open .select2-choice div {
  271. background: transparent;
  272. border-left: none;
  273. filter: none;
  274. }
  275. .select2-dropdown-open .select2-choice div b {
  276. background-position: -18px 1px;
  277. }
  278. /* results */
  279. .select2-results {
  280. max-height: 200px;
  281. padding: 0 0 0 4px;
  282. margin: 4px 4px 4px 0;
  283. position: relative;
  284. overflow-x: hidden;
  285. overflow-y: auto;
  286. -webkit-tap-highlight-color: rgba(0,0,0,0);
  287. }
  288. .select2-results ul.select2-result-sub {
  289. margin: 0;
  290. }
  291. .select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
  292. .select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }
  293. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }
  294. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 80px }
  295. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 100px }
  296. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 110px }
  297. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 120px }
  298. .select2-results li {
  299. list-style: none;
  300. display: list-item;
  301. background-image: none;
  302. }
  303. .select2-results li.select2-result-with-children > .select2-result-label {
  304. font-weight: bold;
  305. }
  306. .select2-results .select2-result-label {
  307. padding: 3px 7px 4px;
  308. margin: 0;
  309. cursor: pointer;
  310. min-height: 1em;
  311. -webkit-touch-callout: none;
  312. -webkit-user-select: none;
  313. -khtml-user-select: none;
  314. -moz-user-select: none;
  315. -ms-user-select: none;
  316. user-select: none;
  317. }
  318. .select2-results .select2-highlighted {
  319. background: #3875d7;
  320. color: #fff;
  321. }
  322. .select2-results li em {
  323. background: #feffde;
  324. font-style: normal;
  325. }
  326. .select2-results .select2-highlighted em {
  327. background: transparent;
  328. }
  329. .select2-results .select2-highlighted ul {
  330. background: white;
  331. color: #000;
  332. }
  333. .select2-results .select2-no-results,
  334. .select2-results .select2-searching,
  335. .select2-results .select2-selection-limit {
  336. background: #f4f4f4;
  337. display: list-item;
  338. }
  339. /*
  340. disabled look for disabled choices in the results dropdown
  341. */
  342. .select2-results .select2-disabled.select2-highlighted {
  343. color: #666;
  344. background: #f4f4f4;
  345. display: list-item;
  346. cursor: default;
  347. }
  348. .select2-results .select2-disabled {
  349. background: #f4f4f4;
  350. display: list-item;
  351. cursor: default;
  352. }
  353. .select2-results .select2-selected {
  354. display: none;
  355. }
  356. .select2-more-results.select2-active {
  357. background: #f4f4f4 url('select2-spinner.gif') no-repeat 100%;
  358. }
  359. .select2-more-results {
  360. background: #f4f4f4;
  361. display: list-item;
  362. }
  363. /* disabled styles */
  364. .select2-container.select2-container-disabled .select2-choice {
  365. background-color: #f4f4f4;
  366. background-image: none;
  367. border: 1px solid #ddd;
  368. cursor: default;
  369. }
  370. .select2-container.select2-container-disabled .select2-choice div {
  371. background-color: #f4f4f4;
  372. background-image: none;
  373. border-left: 0;
  374. }
  375. .select2-container.select2-container-disabled .select2-choice abbr {
  376. display: none;
  377. }
  378. /* multiselect */
  379. .select2-container-multi .select2-choices {
  380. height: auto !important;
  381. height: 1%;
  382. margin: 0;
  383. padding: 0;
  384. position: relative;
  385. border: 1px solid #aaa;
  386. cursor: text;
  387. overflow: hidden;
  388. background-color: #fff;
  389. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  390. background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  391. background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  392. background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  393. background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  394. background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  395. }
  396. .select2-locked {
  397. padding: 3px 5px 3px 5px !important;
  398. }
  399. .select2-container-multi .select2-choices {
  400. min-height: 26px;
  401. }
  402. .select2-container-multi.select2-container-active .select2-choices {
  403. border: 1px solid #5897fb;
  404. outline: none;
  405. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
  406. -moz-box-shadow: 0 0 5px rgba(0,0,0,.3);
  407. box-shadow: 0 0 5px rgba(0,0,0,.3);
  408. }
  409. .select2-container-multi .select2-choices li {
  410. float: left;
  411. list-style: none;
  412. }
  413. .select2-container-multi .select2-choices .select2-search-field {
  414. margin: 0;
  415. padding: 0;
  416. white-space: nowrap;
  417. }
  418. .select2-container-multi .select2-choices .select2-search-field input {
  419. padding: 5px;
  420. margin: 1px 0;
  421. font-family: sans-serif;
  422. font-size: 100%;
  423. color: #666;
  424. outline: 0;
  425. border: 0;
  426. -webkit-box-shadow: none;
  427. -moz-box-shadow: none;
  428. box-shadow: none;
  429. background: transparent !important;
  430. }
  431. .select2-container-multi .select2-choices .select2-search-field input.select2-active {
  432. background: #fff url('select2-spinner.gif') no-repeat 100% !important;
  433. }
  434. .select2-default {
  435. color: #999 !important;
  436. }
  437. .select2-container-multi .select2-choices .select2-search-choice {
  438. padding: 3px 5px 3px 18px;
  439. margin: 3px 0 3px 5px;
  440. position: relative;
  441. line-height: 13px;
  442. color: #333;
  443. cursor: default;
  444. border: 1px solid #aaaaaa;
  445. -webkit-border-radius: 3px;
  446. -moz-border-radius: 3px;
  447. border-radius: 3px;
  448. -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  449. -moz-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  450. box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  451. -webkit-background-clip: padding-box;
  452. -moz-background-clip: padding;
  453. background-clip: padding-box;
  454. -webkit-touch-callout: none;
  455. -webkit-user-select: none;
  456. -khtml-user-select: none;
  457. -moz-user-select: none;
  458. -ms-user-select: none;
  459. user-select: none;
  460. background-color: #e4e4e4;
  461. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0 );
  462. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
  463. background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  464. background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  465. background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  466. background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  467. background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  468. }
  469. .select2-container-multi .select2-choices .select2-search-choice span {
  470. cursor: default;
  471. }
  472. .select2-container-multi .select2-choices .select2-search-choice-focus {
  473. background: #d4d4d4;
  474. }
  475. .select2-search-choice-close {
  476. display: block;
  477. width: 12px;
  478. height: 13px;
  479. position: absolute;
  480. right: 3px;
  481. top: 4px;
  482. font-size: 1px;
  483. outline: none;
  484. background: url('select2.png') right top no-repeat;
  485. }
  486. .select2-container-multi .select2-search-choice-close {
  487. left: 3px;
  488. }
  489. .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  490. background-position: right -11px;
  491. }
  492. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  493. background-position: right -11px;
  494. }
  495. /* disabled styles */
  496. .select2-container-multi.select2-container-disabled .select2-choices{
  497. background-color: #f4f4f4;
  498. background-image: none;
  499. border: 1px solid #ddd;
  500. cursor: default;
  501. }
  502. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
  503. padding: 3px 5px 3px 5px;
  504. border: 1px solid #ddd;
  505. background-image: none;
  506. background-color: #f4f4f4;
  507. }
  508. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
  509. background:none;
  510. }
  511. /* end multiselect */
  512. .select2-result-selectable .select2-match,
  513. .select2-result-unselectable .select2-match {
  514. text-decoration: underline;
  515. }
  516. .select2-offscreen {
  517. border: 0;
  518. clip: rect(0 0 0 0);
  519. height: 1px;
  520. margin: -1px;
  521. overflow: hidden;
  522. padding: 0;
  523. position: absolute;
  524. width: 1px;
  525. left: 0;
  526. }
  527. .select2-display-none {
  528. display: none;
  529. }
  530. .select2-measure-scrollbar {
  531. position: absolute;
  532. top: -10000px;
  533. left: -10000px;
  534. width: 100px;
  535. height: 100px;
  536. overflow: scroll;
  537. }
  538. /* Retina-ize icons */
  539. @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
  540. .select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice div b {
  541. background-image: url('select2x2.png') !important;
  542. background-repeat: no-repeat !important;
  543. background-size: 60px 40px !important;
  544. }
  545. .select2-search input {
  546. background-position: 100% -21px !important;
  547. }
  548. }