select2.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. /*
  2. Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
  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: top; width:90%;
  11. }
  12. .dataTables_length .select2-container{ width:auto!important;}
  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. -moz-box-sizing: border-box; /* firefox */
  23. -ms-box-sizing: border-box; /* ie */
  24. -webkit-box-sizing: border-box; /* webkit */
  25. -khtml-box-sizing: border-box; /* konqueror */
  26. box-sizing: border-box; /* css3 */
  27. }
  28. .select2-container .select2-choice {
  29. background-color: #fff;
  30. -moz-background-clip: padding;
  31. -webkit-background-clip: padding-box;
  32. background-clip: padding-box;
  33. border: 1px solid #aaa;
  34. display: block;
  35. overflow: hidden;
  36. white-space: nowrap;
  37. position: relative;
  38. height: 26px;
  39. line-height: 26px;
  40. padding: 0 0 0 8px;
  41. color: #444;
  42. text-decoration: none;
  43. }
  44. .select2-container.select2-drop-above .select2-choice
  45. {
  46. border-bottom-color: #aaa;
  47. }
  48. .select2-container .select2-choice span {
  49. margin-right: 26px;
  50. display: block;
  51. overflow: hidden;
  52. white-space: nowrap;
  53. -o-text-overflow: ellipsis;
  54. -ms-text-overflow: ellipsis;
  55. text-overflow: ellipsis;
  56. }
  57. .select2-container .select2-choice abbr {
  58. display: block;
  59. position: absolute;
  60. right: 26px;
  61. top: 8px;
  62. width: 12px;
  63. height: 12px;
  64. font-size: 1px;
  65. background: url('../img/select2.png') right top no-repeat;
  66. cursor: pointer;
  67. text-decoration: none;
  68. border:0;
  69. outline: 0;
  70. }
  71. .select2-container .select2-choice abbr:hover {
  72. background-position: right -11px;
  73. cursor: pointer;
  74. }
  75. .select2-drop {
  76. background: #fff;
  77. color: #000;
  78. border: 1px solid #aaa;
  79. border-top: 0;
  80. position: absolute;
  81. top: 100%;
  82. -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  83. -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  84. -o-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  85. box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  86. z-index: 9999;
  87. width:100%;
  88. margin-top:-1px;
  89. }
  90. .select2-drop.select2-drop-above {
  91. margin-top:1px;
  92. border-top: 1px solid #aaa;
  93. border-bottom: 0;
  94. -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  95. -moz-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  96. -o-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  97. box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
  98. }
  99. .select2-container .select2-choice div {
  100. -moz-background-clip: padding;
  101. -webkit-background-clip: padding-box;
  102. background-clip: padding-box;
  103. background: #ccc;
  104. border-left: 1px solid #aaa;
  105. position: absolute;
  106. right: 0;
  107. top: 0;
  108. display: block;
  109. height: 100%;
  110. width: 18px;
  111. }
  112. .select2-container .select2-choice div b {
  113. background: url('../img/select2.png') no-repeat 0 1px;
  114. display: block;
  115. width: 100%;
  116. height: 100%;
  117. }
  118. .select2-search {
  119. display: inline-block;
  120. white-space: nowrap;
  121. z-index: 10000;
  122. min-height: 26px;
  123. width: 100%;
  124. margin: 0;
  125. padding-left: 4px;
  126. padding-right: 4px;
  127. }
  128. .select2-search-hidden {
  129. display: block;
  130. position: absolute;
  131. left: -10000px;
  132. }
  133. .select2-search input {
  134. background: #fff url('../img/select2.png') no-repeat 100% -22px;
  135. 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));
  136. background: url('../img/select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  137. background: url('../img/select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  138. background: url('../img/select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
  139. background: url('../img/select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  140. background: url('../img/select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  141. padding: 4px 20px 4px 5px;
  142. outline: 0;
  143. border: 1px solid #aaa;
  144. font-family: sans-serif;
  145. font-size: 1em;
  146. width:100%;
  147. margin:0;
  148. height:auto !important;
  149. min-height: 26px;
  150. -webkit-box-shadow: none;
  151. -moz-box-shadow: none;
  152. box-shadow: none;
  153. border-radius: 0;
  154. -moz-border-radius: 0;
  155. -webkit-border-radius: 0;
  156. }
  157. .select2-drop.select2-drop-above .select2-search input
  158. {
  159. margin-top:4px;
  160. }
  161. .select2-search input.select2-active {
  162. background: #fff url('../img/spinner.gif') no-repeat 100%;
  163. background: url('../img/spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
  164. background: url('../img/spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  165. background: url('../img/spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
  166. background: url('../img/spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
  167. background: url('../img/spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  168. background: url('../img/spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  169. }
  170. .select2-container-active .select2-choice,
  171. .select2-container-active .select2-choices {
  172. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
  173. -moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
  174. -o-box-shadow : 0 0 5px rgba(0,0,0,.3);
  175. box-shadow : 0 0 5px rgba(0,0,0,.3);
  176. border: 1px solid #5897fb;
  177. outline: none;
  178. }
  179. .select2-dropdown-open .select2-choice {
  180. border: 1px solid #aaa;
  181. border-bottom-color: transparent;
  182. -webkit-box-shadow: 0 1px 0 #fff inset;
  183. -moz-box-shadow : 0 1px 0 #fff inset;
  184. -o-box-shadow : 0 1px 0 #fff inset;
  185. box-shadow : 0 1px 0 #fff inset;
  186. background-color: #eee;
  187. background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
  188. background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
  189. background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
  190. background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
  191. background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
  192. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
  193. background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
  194. -webkit-border-bottom-left-radius : 0;
  195. -webkit-border-bottom-right-radius: 0;
  196. -moz-border-radius-bottomleft : 0;
  197. -moz-border-radius-bottomright: 0;
  198. border-bottom-left-radius : 0;
  199. border-bottom-right-radius: 0;
  200. }
  201. .select2-dropdown-open .select2-choice div {
  202. background: transparent;
  203. border-left: none;
  204. }
  205. .select2-dropdown-open .select2-choice div b {
  206. background-position: -18px 1px;
  207. }
  208. /* results */
  209. .select2-results {
  210. margin: 4px 4px 4px 0;
  211. padding: 0 0 0 4px;
  212. position: relative;
  213. overflow-x: hidden;
  214. overflow-y: auto;
  215. max-height: 200px;
  216. }
  217. .select2-results ul.select2-result-sub {
  218. margin: 0 0 0 0;
  219. }
  220. .select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
  221. .select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }
  222. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }
  223. .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 }
  224. .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 }
  225. .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 }
  226. .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 }
  227. .select2-results li {
  228. list-style: none;
  229. display: list-item;
  230. }
  231. .select2-results li.select2-result-with-children > .select2-result-label {
  232. font-weight: bold;
  233. }
  234. .select2-results .select2-result-label {
  235. padding: 3px 7px 4px;
  236. margin: 0;
  237. cursor: pointer;
  238. }
  239. .select2-results .select2-highlighted {
  240. background: #3875d7;
  241. color: #fff;
  242. }
  243. .select2-results li em {
  244. background: #feffde;
  245. font-style: normal;
  246. }
  247. .select2-results .select2-highlighted em {
  248. background: transparent;
  249. }
  250. .select2-results .select2-no-results,
  251. .select2-results .select2-searching,
  252. .select2-results .select2-selection-limit {
  253. background: #f4f4f4;
  254. display: list-item;
  255. }
  256. /*
  257. disabled look for already selected choices in the results dropdown
  258. .select2-results .select2-disabled.select2-highlighted {
  259. color: #666;
  260. background: #f4f4f4;
  261. display: list-item;
  262. cursor: default;
  263. }
  264. .select2-results .select2-disabled {
  265. background: #f4f4f4;
  266. display: list-item;
  267. cursor: default;
  268. }
  269. */
  270. .select2-results .select2-disabled {
  271. display: none;
  272. }
  273. .select2-more-results.select2-active {
  274. background: #f4f4f4 url('../img/spinner.gif') no-repeat 100%;
  275. }
  276. .select2-more-results {
  277. background: #f4f4f4;
  278. display: list-item;
  279. }
  280. /* disabled styles */
  281. .select2-container.select2-container-disabled .select2-choice {
  282. background-color: #f4f4f4;
  283. background-image: none;
  284. border: 1px solid #ddd;
  285. cursor: default;
  286. }
  287. .select2-container.select2-container-disabled .select2-choice div {
  288. background-color: #f4f4f4;
  289. background-image: none;
  290. border-left: 0;
  291. }
  292. /* multiselect */
  293. .select2-container-multi .select2-choices {
  294. background-color: #fff;
  295. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  296. background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  297. background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  298. background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  299. background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  300. background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  301. border: 1px solid #ccc;
  302. margin: 0;
  303. padding: 0;
  304. cursor: text;
  305. overflow: hidden;
  306. height: auto !important;
  307. height: 1%;
  308. position: relative; width:100%;
  309. }
  310. .select2-container-multi .select2-choices {
  311. min-height: 26px;
  312. }
  313. .select2-container-multi.select2-container-active .select2-choices {
  314. -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(82, 168, 236, 0.6);
  315. -moz-box-shadow : 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(82, 168, 236, 0.6);
  316. -o-box-shadow : 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(82, 168, 236, 0.6);
  317. box-shadow : 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(82, 168, 236, 0.6);
  318. border: 1px solid #5897fb;
  319. outline: none;
  320. }
  321. .select2-container-multi .select2-choices li {
  322. float: left;
  323. list-style: none;
  324. }
  325. .select2-container-multi .select2-choices .select2-search-field {
  326. white-space: nowrap;
  327. margin: 0;
  328. padding: 0;
  329. }
  330. .select2-container-multi .select2-choices .select2-search-field input {
  331. color: #666;
  332. background: transparent !important;
  333. font-family: sans-serif;
  334. font-size: 100%;
  335. height: 15px;
  336. padding: 5px;
  337. margin: 1px 0;
  338. outline: 0;
  339. border: 0;
  340. -webkit-box-shadow: none;
  341. -moz-box-shadow : none;
  342. -o-box-shadow : none;
  343. box-shadow : none;
  344. }
  345. .select2-container-multi .select2-choices .select2-search-field input.select2-active {
  346. background: #fff url('../img/spinner.gif') no-repeat 100% !important;
  347. }
  348. .select2-default {
  349. color: #999 !important;
  350. }
  351. .select2-container-multi .select2-choices .select2-search-choice {
  352. -moz-background-clip : padding;
  353. -webkit-background-clip: padding-box;
  354. background-clip : padding-box;
  355. background:#f9eae1;
  356. -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  357. -moz-box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  358. box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
  359. color: #333;
  360. border: 1px solid #F77825;
  361. line-height: 13px;
  362. padding: 3px 5px 3px 18px;
  363. margin: 3px 0 3px 5px;
  364. position: relative;
  365. cursor: default;
  366. }
  367. .select2-container-multi .select2-choices .select2-search-choice span {
  368. cursor: default;
  369. }
  370. .select2-container-multi .select2-choices .select2-search-choice-focus {
  371. background: #d4d4d4;
  372. }
  373. .select2-search-choice-close {
  374. display: block;
  375. position: absolute;
  376. right: 3px;
  377. top: 4px;
  378. width: 12px;
  379. height: 13px;
  380. font-size: 1px;
  381. background: url('../img/select2.png') right top no-repeat;
  382. outline: none;
  383. }
  384. .select2-container-multi .select2-search-choice-close {
  385. left: 3px;
  386. }
  387. .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  388. background-position: right -11px;
  389. }
  390. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  391. background-position: right -11px;
  392. }
  393. /* disabled styles */
  394. .select2-container-multi.select2-container-disabled .select2-choices{
  395. background-color: #f4f4f4;
  396. background-image: none;
  397. border: 1px solid #ddd;
  398. cursor: default;
  399. }
  400. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
  401. background-image: none;
  402. background-color: #f4f4f4;
  403. border: 1px solid #ddd;
  404. padding: 3px 5px 3px 5px;
  405. }
  406. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close {
  407. display: none;
  408. }
  409. /* end multiselect */
  410. .select2-result-selectable .select2-match,
  411. .select2-result-unselectable .select2-result-selectable .select2-match { text-decoration: underline; }
  412. .select2-result-unselectable .select2-match { text-decoration: none; }
  413. .select2-offscreen { position: absolute; left: -10000px; }
  414. /* Retina-ize icons */
  415. @media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
  416. .select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice div b {
  417. background-image: url(../img/select2x2.png) !important;
  418. background-repeat: no-repeat !important;
  419. background-size: 60px 40px !important;
  420. }
  421. .select2-search input {
  422. background-position: 100% -21px !important;
  423. }
  424. }