select2-bootstrap.css 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  1. /*!
  2. * Select2 Bootstrap Theme v0.1.0-beta.10 (https://select2.github.io/select2-bootstrap-theme)
  3. * Copyright 2015-2017 Florian Kissling and contributors (https://github.com/select2/select2-bootstrap-theme/graphs/contributors)
  4. * Licensed under MIT (https://github.com/select2/select2-bootstrap-theme/blob/master/LICENSE)
  5. */
  6. .select2-container--bootstrap {
  7. display: block;
  8. /*------------------------------------* #COMMON STYLES
  9. \*------------------------------------*/
  10. /**
  11. * Search field in the Select2 dropdown.
  12. */
  13. /**
  14. * No outline for all search fields - in the dropdown
  15. * and inline in multi Select2s.
  16. */
  17. /**
  18. * Adjust Select2's choices hover and selected styles to match
  19. * Bootstrap 3's default dropdown styles.
  20. *
  21. * @see http://getbootstrap.com/components/#dropdowns
  22. */
  23. /**
  24. * Clear the selection.
  25. */
  26. /**
  27. * Address disabled Select2 styles.
  28. *
  29. * @see https://select2.github.io/examples.html#disabled
  30. * @see http://getbootstrap.com/css/#forms-control-disabled
  31. */
  32. /*------------------------------------* #DROPDOWN
  33. \*------------------------------------*/
  34. /**
  35. * Dropdown border color and box-shadow.
  36. */
  37. /**
  38. * Limit the dropdown height.
  39. */
  40. /*------------------------------------* #SINGLE SELECT2
  41. \*------------------------------------*/
  42. /*------------------------------------* #MULTIPLE SELECT2
  43. \*------------------------------------*/
  44. /**
  45. * Address Bootstrap control sizing classes
  46. *
  47. * 1. Reset Bootstrap defaults.
  48. * 2. Adjust the dropdown arrow button icon position.
  49. *
  50. * @see http://getbootstrap.com/css/#forms-control-sizes
  51. */
  52. /* 1 */
  53. /*------------------------------------* #RTL SUPPORT
  54. \*------------------------------------*/
  55. }
  56. .select2-container--bootstrap .select2-selection {
  57. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  58. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  59. background-color: #fff;
  60. border: 1px solid #ccc;
  61. border-radius: 4px;
  62. color: #555555;
  63. font-size: 14px;
  64. outline: 0;
  65. }
  66. .select2-container--bootstrap .select2-selection.form-control {
  67. border-radius: 4px;
  68. }
  69. .select2-container--bootstrap .select2-search--dropdown .select2-search__field {
  70. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  71. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  72. background-color: #fff;
  73. border: 1px solid #ccc;
  74. border-radius: 4px;
  75. color: #555555;
  76. font-size: 14px;
  77. }
  78. .select2-container--bootstrap .select2-search__field {
  79. outline: 0;
  80. /* Firefox 18- */
  81. /**
  82. * Firefox 19+
  83. *
  84. * @see http://stackoverflow.com/questions/24236240/color-for-styled-placeholder-text-is-muted-in-firefox
  85. */
  86. }
  87. .select2-container--bootstrap .select2-search__field::-webkit-input-placeholder {
  88. color: #999;
  89. }
  90. .select2-container--bootstrap .select2-search__field:-moz-placeholder {
  91. color: #999;
  92. }
  93. .select2-container--bootstrap .select2-search__field::-moz-placeholder {
  94. color: #999;
  95. opacity: 1;
  96. }
  97. .select2-container--bootstrap .select2-search__field:-ms-input-placeholder {
  98. color: #999;
  99. }
  100. .select2-container--bootstrap .select2-results__option {
  101. padding: 6px 12px;
  102. /**
  103. * Disabled results.
  104. *
  105. * @see https://select2.github.io/examples.html#disabled-results
  106. */
  107. /**
  108. * Hover state.
  109. */
  110. /**
  111. * Selected state.
  112. */
  113. }
  114. .select2-container--bootstrap .select2-results__option[role=group] {
  115. padding: 0;
  116. }
  117. .select2-container--bootstrap .select2-results__option[aria-disabled=true] {
  118. color: #777777;
  119. cursor: not-allowed;
  120. }
  121. .select2-container--bootstrap .select2-results__option[aria-selected=true] {
  122. background-color: #f5f5f5;
  123. color: #262626;
  124. }
  125. .select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
  126. background-color: #337ab7;
  127. color: #fff;
  128. }
  129. .select2-container--bootstrap .select2-results__option .select2-results__option {
  130. padding: 6px 12px;
  131. }
  132. .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__group {
  133. padding-left: 0;
  134. }
  135. .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option {
  136. margin-left: -12px;
  137. padding-left: 24px;
  138. }
  139. .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  140. margin-left: -24px;
  141. padding-left: 36px;
  142. }
  143. .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  144. margin-left: -36px;
  145. padding-left: 48px;
  146. }
  147. .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  148. margin-left: -48px;
  149. padding-left: 60px;
  150. }
  151. .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  152. margin-left: -60px;
  153. padding-left: 72px;
  154. }
  155. .select2-container--bootstrap .select2-results__group {
  156. color: #777777;
  157. display: block;
  158. padding: 6px 12px;
  159. font-size: 12px;
  160. line-height: 1.42857143;
  161. white-space: nowrap;
  162. }
  163. .select2-container--bootstrap.select2-container--focus .select2-selection, .select2-container--bootstrap.select2-container--open .select2-selection {
  164. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  165. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  166. -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  167. -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  168. -webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
  169. transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
  170. transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  171. transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
  172. border-color: #66afe9;
  173. }
  174. .select2-container--bootstrap.select2-container--open {
  175. /**
  176. * Make the dropdown arrow point up while the dropdown is visible.
  177. */
  178. /**
  179. * Handle border radii of the container when the dropdown is showing.
  180. */
  181. }
  182. .select2-container--bootstrap.select2-container--open .select2-selection .select2-selection__arrow b {
  183. border-color: transparent transparent #999 transparent;
  184. border-width: 0 4px 4px 4px;
  185. }
  186. .select2-container--bootstrap.select2-container--open.select2-container--below .select2-selection {
  187. border-bottom-right-radius: 0;
  188. border-bottom-left-radius: 0;
  189. border-bottom-color: transparent;
  190. }
  191. .select2-container--bootstrap.select2-container--open.select2-container--above .select2-selection {
  192. border-top-right-radius: 0;
  193. border-top-left-radius: 0;
  194. border-top-color: transparent;
  195. }
  196. .select2-container--bootstrap .select2-selection__clear {
  197. color: #999;
  198. cursor: pointer;
  199. float: right;
  200. font-weight: bold;
  201. margin-right: 10px;
  202. }
  203. .select2-container--bootstrap .select2-selection__clear:hover {
  204. color: #333;
  205. }
  206. .select2-container--bootstrap.select2-container--disabled .select2-selection {
  207. border-color: #ccc;
  208. -webkit-box-shadow: none;
  209. box-shadow: none;
  210. }
  211. .select2-container--bootstrap.select2-container--disabled .select2-selection,
  212. .select2-container--bootstrap.select2-container--disabled .select2-search__field {
  213. cursor: not-allowed;
  214. }
  215. .select2-container--bootstrap.select2-container--disabled .select2-selection,
  216. .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
  217. background-color: #eeeeee;
  218. }
  219. .select2-container--bootstrap.select2-container--disabled .select2-selection__clear,
  220. .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove {
  221. display: none;
  222. }
  223. .select2-container--bootstrap .select2-dropdown {
  224. -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  225. box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  226. border-color: #66afe9;
  227. overflow-x: hidden;
  228. margin-top: -1px;
  229. }
  230. .select2-container--bootstrap .select2-dropdown--above {
  231. -webkit-box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.175);
  232. box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.175);
  233. margin-top: 1px;
  234. }
  235. .select2-container--bootstrap .select2-results > .select2-results__options {
  236. max-height: 200px;
  237. overflow-y: auto;
  238. }
  239. .select2-container--bootstrap .select2-selection--single {
  240. height: 34px;
  241. line-height: 1.42857143;
  242. padding: 6px 24px 6px 12px;
  243. /**
  244. * Adjust the single Select2's dropdown arrow button appearance.
  245. */
  246. }
  247. .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
  248. position: absolute;
  249. bottom: 0;
  250. right: 12px;
  251. top: 0;
  252. width: 4px;
  253. }
  254. .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
  255. border-color: #999 transparent transparent transparent;
  256. border-style: solid;
  257. border-width: 4px 4px 0 4px;
  258. height: 0;
  259. left: 0;
  260. margin-left: -4px;
  261. margin-top: -2px;
  262. position: absolute;
  263. top: 50%;
  264. width: 0;
  265. }
  266. .select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
  267. color: #555555;
  268. padding: 0;
  269. }
  270. .select2-container--bootstrap .select2-selection--single .select2-selection__placeholder {
  271. color: #999;
  272. }
  273. .select2-container--bootstrap .select2-selection--multiple {
  274. min-height: 34px;
  275. padding: 0;
  276. height: auto;
  277. /**
  278. * Make Multi Select2's choices match Bootstrap 3's default button styles.
  279. */
  280. /**
  281. * Minus 2px borders.
  282. */
  283. /**
  284. * Clear the selection.
  285. */
  286. }
  287. .select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered {
  288. -webkit-box-sizing: border-box;
  289. -moz-box-sizing: border-box;
  290. box-sizing: border-box;
  291. display: block;
  292. line-height: 1.42857143;
  293. list-style: none;
  294. margin: 0;
  295. overflow: hidden;
  296. padding: 0;
  297. width: 100%;
  298. text-overflow: ellipsis;
  299. white-space: nowrap;
  300. }
  301. .select2-container--bootstrap .select2-selection--multiple .select2-selection__placeholder {
  302. color: #999;
  303. float: left;
  304. margin-top: 5px;
  305. }
  306. .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
  307. color: #555555;
  308. background: #fff;
  309. border: 1px solid #ccc;
  310. border-radius: 4px;
  311. cursor: default;
  312. float: left;
  313. margin: 5px 0 0 6px;
  314. padding: 0 6px;
  315. }
  316. .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
  317. background: transparent;
  318. padding: 0 12px;
  319. height: 32px;
  320. line-height: 1.42857143;
  321. margin-top: 0;
  322. min-width: 5em;
  323. }
  324. .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove {
  325. color: #999;
  326. cursor: pointer;
  327. display: inline-block;
  328. font-weight: bold;
  329. margin-right: 3px;
  330. }
  331. .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove:hover {
  332. color: #333;
  333. }
  334. .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
  335. margin-top: 6px;
  336. }
  337. .select2-container--bootstrap .select2-selection--single.input-sm,
  338. .input-group-sm .select2-container--bootstrap .select2-selection--single,
  339. .form-group-sm .select2-container--bootstrap .select2-selection--single {
  340. border-radius: 3px;
  341. font-size: 12px;
  342. height: 30px;
  343. line-height: 1.5;
  344. padding: 5px 22px 5px 10px;
  345. /* 2 */
  346. }
  347. .select2-container--bootstrap .select2-selection--single.input-sm .select2-selection__arrow b,
  348. .input-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b,
  349. .form-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
  350. margin-left: -5px;
  351. }
  352. .select2-container--bootstrap .select2-selection--multiple.input-sm,
  353. .input-group-sm .select2-container--bootstrap .select2-selection--multiple,
  354. .form-group-sm .select2-container--bootstrap .select2-selection--multiple {
  355. min-height: 30px;
  356. border-radius: 3px;
  357. }
  358. .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__choice,
  359. .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
  360. .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
  361. font-size: 12px;
  362. line-height: 1.5;
  363. margin: 4px 0 0 5px;
  364. padding: 0 5px;
  365. }
  366. .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field,
  367. .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field,
  368. .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
  369. padding: 0 10px;
  370. font-size: 12px;
  371. height: 28px;
  372. line-height: 1.5;
  373. }
  374. .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__clear,
  375. .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear,
  376. .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
  377. margin-top: 5px;
  378. }
  379. .select2-container--bootstrap .select2-selection--single.input-lg,
  380. .input-group-lg .select2-container--bootstrap .select2-selection--single,
  381. .form-group-lg .select2-container--bootstrap .select2-selection--single {
  382. border-radius: 6px;
  383. font-size: 18px;
  384. height: 46px;
  385. line-height: 1.3333333;
  386. padding: 10px 31px 10px 16px;
  387. /* 1 */
  388. }
  389. .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow,
  390. .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow,
  391. .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
  392. width: 5px;
  393. }
  394. .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow b,
  395. .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b,
  396. .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
  397. border-width: 5px 5px 0 5px;
  398. margin-left: -5px;
  399. margin-left: -10px;
  400. margin-top: -2.5px;
  401. }
  402. .select2-container--bootstrap .select2-selection--multiple.input-lg,
  403. .input-group-lg .select2-container--bootstrap .select2-selection--multiple,
  404. .form-group-lg .select2-container--bootstrap .select2-selection--multiple {
  405. min-height: 46px;
  406. border-radius: 6px;
  407. }
  408. .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__choice,
  409. .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
  410. .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
  411. font-size: 18px;
  412. line-height: 1.3333333;
  413. border-radius: 4px;
  414. margin: 9px 0 0 8px;
  415. padding: 0 10px;
  416. }
  417. .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field,
  418. .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field,
  419. .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
  420. padding: 0 16px;
  421. font-size: 18px;
  422. height: 44px;
  423. line-height: 1.3333333;
  424. }
  425. .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__clear,
  426. .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear,
  427. .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
  428. margin-top: 10px;
  429. }
  430. .select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single {
  431. /**
  432. * Make the dropdown arrow point up while the dropdown is visible.
  433. */
  434. }
  435. .select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b {
  436. border-color: transparent transparent #999 transparent;
  437. border-width: 0 5px 5px 5px;
  438. }
  439. .input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single {
  440. /**
  441. * Make the dropdown arrow point up while the dropdown is visible.
  442. */
  443. }
  444. .input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b {
  445. border-color: transparent transparent #999 transparent;
  446. border-width: 0 5px 5px 5px;
  447. }
  448. .select2-container--bootstrap[dir="rtl"] {
  449. /**
  450. * Single Select2
  451. *
  452. * 1. Makes sure that .select2-selection__placeholder is positioned
  453. * correctly.
  454. */
  455. /**
  456. * Multiple Select2
  457. */
  458. }
  459. .select2-container--bootstrap[dir="rtl"] .select2-selection--single {
  460. padding-left: 24px;
  461. padding-right: 12px;
  462. }
  463. .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  464. padding-right: 0;
  465. padding-left: 0;
  466. text-align: right;
  467. /* 1 */
  468. }
  469. .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__clear {
  470. float: left;
  471. }
  472. .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  473. left: 12px;
  474. right: auto;
  475. }
  476. .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__arrow b {
  477. margin-left: 0;
  478. }
  479. .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice,
  480. .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,
  481. .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-search--inline {
  482. float: right;
  483. }
  484. .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  485. margin-left: 0;
  486. margin-right: 6px;
  487. }
  488. .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  489. margin-left: 2px;
  490. margin-right: auto;
  491. }
  492. /*------------------------------------* #ADDITIONAL GOODIES
  493. \*------------------------------------*/
  494. /**
  495. * Address Bootstrap's validation states
  496. *
  497. * If a Select2 widget parent has one of Bootstrap's validation state modifier
  498. * classes, adjust Select2's border colors and focus states accordingly.
  499. * You may apply said classes to the Select2 dropdown (body > .select2-container)
  500. * via JavaScript match Bootstraps' to make its styles match.
  501. *
  502. * @see http://getbootstrap.com/css/#forms-control-validation
  503. */
  504. .has-warning .select2-dropdown,
  505. .has-warning .select2-selection {
  506. border-color: #8a6d3b;
  507. }
  508. .has-warning .select2-container--focus .select2-selection,
  509. .has-warning .select2-container--open .select2-selection {
  510. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
  511. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
  512. border-color: #66512c;
  513. }
  514. .has-warning.select2-drop-active {
  515. border-color: #66512c;
  516. }
  517. .has-warning.select2-drop-active.select2-drop.select2-drop-above {
  518. border-top-color: #66512c;
  519. }
  520. .has-error .select2-dropdown,
  521. .has-error .select2-selection {
  522. border-color: #a94442;
  523. }
  524. .has-error .select2-container--focus .select2-selection,
  525. .has-error .select2-container--open .select2-selection {
  526. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
  527. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
  528. border-color: #843534;
  529. }
  530. .has-error.select2-drop-active {
  531. border-color: #843534;
  532. }
  533. .has-error.select2-drop-active.select2-drop.select2-drop-above {
  534. border-top-color: #843534;
  535. }
  536. .has-success .select2-dropdown,
  537. .has-success .select2-selection {
  538. border-color: #3c763d;
  539. }
  540. .has-success .select2-container--focus .select2-selection,
  541. .has-success .select2-container--open .select2-selection {
  542. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
  543. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
  544. border-color: #2b542c;
  545. }
  546. .has-success.select2-drop-active {
  547. border-color: #2b542c;
  548. }
  549. .has-success.select2-drop-active.select2-drop.select2-drop-above {
  550. border-top-color: #2b542c;
  551. }
  552. /**
  553. * Select2 widgets in Bootstrap Input Groups
  554. *
  555. * @see http://getbootstrap.com/components/#input-groups
  556. * @see https://github.com/twbs/bootstrap/blob/master/less/input-groups.less
  557. */
  558. /**
  559. * Reset rounded corners
  560. */
  561. .input-group > .select2-hidden-accessible:first-child + .select2-container--bootstrap > .selection > .select2-selection,
  562. .input-group > .select2-hidden-accessible:first-child + .select2-container--bootstrap > .selection > .select2-selection.form-control {
  563. border-bottom-right-radius: 0;
  564. border-top-right-radius: 0;
  565. }
  566. .input-group > .select2-hidden-accessible:not(:first-child) + .select2-container--bootstrap:not(:last-child) > .selection > .select2-selection,
  567. .input-group > .select2-hidden-accessible:not(:first-child) + .select2-container--bootstrap:not(:last-child) > .selection > .select2-selection.form-control {
  568. border-radius: 0;
  569. }
  570. .input-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container--bootstrap:last-child > .selection > .select2-selection,
  571. .input-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container--bootstrap:last-child > .selection > .select2-selection.form-control {
  572. border-bottom-left-radius: 0;
  573. border-top-left-radius: 0;
  574. }
  575. .input-group > .select2-container--bootstrap {
  576. display: table;
  577. table-layout: fixed;
  578. position: relative;
  579. z-index: 2;
  580. width: 100%;
  581. margin-bottom: 0;
  582. /**
  583. * Adjust z-index like Bootstrap does to show the focus-box-shadow
  584. * above appended buttons in .input-group and .form-group.
  585. */
  586. /**
  587. * Adjust alignment of Bootstrap buttons in Bootstrap Input Groups to address
  588. * Multi Select2's height which - depending on how many elements have been selected -
  589. * may grow taller than its initial size.
  590. *
  591. * @see http://getbootstrap.com/components/#input-groups
  592. */
  593. }
  594. .input-group > .select2-container--bootstrap > .selection > .select2-selection.form-control {
  595. float: none;
  596. }
  597. .input-group > .select2-container--bootstrap.select2-container--open, .input-group > .select2-container--bootstrap.select2-container--focus {
  598. z-index: 3;
  599. }
  600. .input-group > .select2-container--bootstrap,
  601. .input-group > .select2-container--bootstrap .input-group-btn,
  602. .input-group > .select2-container--bootstrap .input-group-btn .btn {
  603. vertical-align: top;
  604. }
  605. /**
  606. * Temporary fix for https://github.com/select2/select2-bootstrap-theme/issues/9
  607. *
  608. * Provides `!important` for certain properties of the class applied to the
  609. * original `<select>` element to hide it.
  610. *
  611. * @see https://github.com/select2/select2/pull/3301
  612. * @see https://github.com/fk/select2/commit/31830c7b32cb3d8e1b12d5b434dee40a6e753ada
  613. */
  614. .form-control.select2-hidden-accessible {
  615. position: absolute !important;
  616. width: 1px !important;
  617. }
  618. /**
  619. * Display override for inline forms
  620. */
  621. @media (min-width: 768px) {
  622. .form-inline .select2-container--bootstrap {
  623. display: inline-block;
  624. }
  625. }