select2.css 20 KB

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