select2.css 20 KB

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