select2.css 21 KB

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