select2.css 20 KB

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