You are here

select2.css in Open Social 8

/*!
 * This will only work with javascript
 */
.select2-container--social {
  display: block;
}

.select2-container--social .select2-selection {
  outline: 0;
}

.select2-container--social .select2-search--dropdown .select2-search__field {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #555555;
  font-size: 14px;
}

.select2-container--social .select2-search__field {
  outline: 0;
}

.select2-container--social .select2-search__field::-webkit-input-placeholder {
  color: #999;
}

.select2-container--social .select2-search__field:-moz-placeholder {
  color: #999;
}

.select2-container--social .select2-search__field::-moz-placeholder {
  color: #999;
  opacity: 1;
}

.select2-container--social .select2-search__field:-ms-input-placeholder {
  color: #999;
}

.select2-container--social .select2-results__option {
  padding: 6px 12px;
}

.select2-container--social .select2-results__option[role=group] {
  padding: 0;
}

.select2-container--social .select2-results__option[aria-disabled=true] {
  color: #777777;
  cursor: not-allowed;
}

.select2-container--social .select2-results__option[aria-selected=true] {
  background-color: #e6e6e6;
}

.select2-container--social .select2-results__option .select2-results__option {
  padding: 6px 12px;
}

.select2-container--social .select2-results__option .select2-results__option .select2-results__group {
  padding-left: 0;
}

.select2-container--social .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -12px;
  padding-left: 24px;
}

.select2-container--social .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -24px;
  padding-left: 36px;
}

.select2-container--social .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -36px;
  padding-left: 48px;
}

.select2-container--social .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -48px;
  padding-left: 60px;
}

.select2-container--social .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -60px;
  padding-left: 72px;
}

.select2-container--social .select2-results__group {
  color: #999999;
  display: block;
  padding: 6px 12px;
  line-height: 1.42857143;
  white-space: nowrap;
}

.select2-container--social.select2-container--focus .select2-selection, .select2-container--social.select2-container--open .select2-selection {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  -webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
}

.select2-container--social.select2-container--open .select2-selection .select2-selection__arrow b {
  border-color: transparent transparent #999 transparent;
  border-width: 0 4px 4px 4px;
}

.select2-container--social.select2-container--open.select2-container--below .select2-selection {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-color: transparent;
}

.select2-container--social.select2-container--open.select2-container--above .select2-selection {
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  border-top-color: transparent;
}

.select2-container--social .select2-selection__clear {
  color: #999;
  cursor: pointer;
  float: right;
  font-weight: bold;
  margin-right: 10px;
}

.select2-container--social .select2-selection__clear:hover {
  color: #333;
}

.select2-container--social.select2-container--disabled .select2-selection {
  border-color: #ccc;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.select2-container--social.select2-container--disabled .select2-selection,
.select2-container--social.select2-container--disabled .select2-search__field {
  cursor: not-allowed;
}

.select2-container--social.select2-container--disabled .select2-selection,
.select2-container--social.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
  background-color: #eeeeee;
}

.select2-container--social.select2-container--disabled .select2-selection__clear,
.select2-container--social.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove {
  display: none;
}

.select2-container--social .select2-dropdown {
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
          box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  overflow-x: hidden;
  margin-top: -1px;
}

.select2-container--social .select2-dropdown--above {
  -webkit-box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.175);
          box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.175);
  margin-top: 1px;
}

.select2-container--social .select2-results > .select2-results__options {
  max-height: 200px;
  overflow-y: auto;
}

.select2-container--social .select2-selection--single {
  height: 34px;
  line-height: 1.42857143;
  padding: 6px 24px 6px 12px;
  /**
     * Adjust the single Select2's dropdown arrow button appearance.
     */
}

.select2-container--social .select2-selection--single .select2-selection__arrow {
  position: absolute;
  bottom: 0;
  right: 12px;
  top: 0;
  width: 4px;
}

.select2-container--social .select2-selection--single .select2-selection__arrow b {
  border-color: #999 transparent transparent transparent;
  border-style: solid;
  border-width: 4px 4px 0 4px;
  height: 0;
  left: 0;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
}

.select2-container--social .select2-selection--single .select2-selection__rendered {
  color: #555555;
  padding: 0;
}

.select2-container--social .select2-selection--single .select2-selection__placeholder {
  color: #999;
}

.select2-container--social .select2-selection--multiple {
  min-height: 34px;
  padding: 0;
  height: auto;
  /**
     * Make Multi Select2's choices match Bootstrap 3's default button styles.
     */
  /**
     * Minus 2px borders.
     */
  /**
     * Clear the selection.
     */
}

.select2-container--social .select2-selection--multiple .select2-selection__rendered {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: block;
  line-height: 1.42857143;
  list-style: none;
  margin: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-container--social .select2-selection--multiple .select2-selection__placeholder {
  color: #999;
  float: left;
  margin-top: 5px;
}

.select2-container--social .select2-selection--multiple .select2-selection__choice {
  color: #555555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: default;
  float: left;
  margin: 5px 0 0 6px;
  padding: 0 6px;
}

.select2-container--social .select2-selection--multiple .select2-search--inline .select2-search__field {
  background: transparent;
  padding: 0 12px;
  height: 32px;
  line-height: 1.42857143;
  margin-top: 0;
  min-width: 5em;
}

.select2-container--social .select2-selection--multiple .select2-selection__choice__remove {
  color: #999;
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  margin-right: 3px;
}

.select2-container--social .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #333;
}

.select2-container--social .select2-selection--multiple .select2-selection__clear {
  margin-top: 6px;
}

.select2-container--social .select2-selection--single.input-sm,
.input-group-sm .select2-container--social .select2-selection--single,
.form-group-sm .select2-container--social .select2-selection--single {
  border-radius: 3px;
  font-size: 12px;
  height: 30px;
  line-height: 1.5;
  padding: 5px 22px 5px 10px;
  /* 2 */
}

.select2-container--social .select2-selection--single.input-sm .select2-selection__arrow b,
.input-group-sm .select2-container--social .select2-selection--single .select2-selection__arrow b,
.form-group-sm .select2-container--social .select2-selection--single .select2-selection__arrow b {
  margin-left: -5px;
}

.select2-container--social .select2-selection--multiple.input-sm,
.input-group-sm .select2-container--social .select2-selection--multiple,
.form-group-sm .select2-container--social .select2-selection--multiple {
  min-height: 30px;
  border-radius: 3px;
}

.select2-container--social .select2-selection--multiple.input-sm .select2-selection__choice,
.input-group-sm .select2-container--social .select2-selection--multiple .select2-selection__choice,
.form-group-sm .select2-container--social .select2-selection--multiple .select2-selection__choice {
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0 5px;
  padding: 0 5px;
}

.select2-container--social .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field,
.input-group-sm .select2-container--social .select2-selection--multiple .select2-search--inline .select2-search__field,
.form-group-sm .select2-container--social .select2-selection--multiple .select2-search--inline .select2-search__field {
  padding: 0 10px;
  font-size: 12px;
  height: 28px;
  line-height: 1.5;
}

.select2-container--social .select2-selection--multiple.input-sm .select2-selection__clear,
.input-group-sm .select2-container--social .select2-selection--multiple .select2-selection__clear,
.form-group-sm .select2-container--social .select2-selection--multiple .select2-selection__clear {
  margin-top: 5px;
}

.select2-container--social .select2-selection--single.input-lg,
.input-group-lg .select2-container--social .select2-selection--single,
.form-group-lg .select2-container--social .select2-selection--single {
  border-radius: 6px;
  font-size: 18px;
  height: 46px;
  line-height: 1.3333333;
  padding: 10px 31px 10px 16px;
  /* 1 */
}

.select2-container--social .select2-selection--single.input-lg .select2-selection__arrow,
.input-group-lg .select2-container--social .select2-selection--single .select2-selection__arrow,
.form-group-lg .select2-container--social .select2-selection--single .select2-selection__arrow {
  width: 5px;
}

.select2-container--social .select2-selection--single.input-lg .select2-selection__arrow b,
.input-group-lg .select2-container--social .select2-selection--single .select2-selection__arrow b,
.form-group-lg .select2-container--social .select2-selection--single .select2-selection__arrow b {
  border-width: 5px 5px 0 5px;
  margin-left: -10px;
  margin-top: -2.5px;
}

.select2-container--social .select2-selection--multiple.input-lg,
.input-group-lg .select2-container--social .select2-selection--multiple,
.form-group-lg .select2-container--social .select2-selection--multiple {
  min-height: 46px;
  border-radius: 6px;
}

.select2-container--social .select2-selection--multiple.input-lg .select2-selection__choice,
.input-group-lg .select2-container--social .select2-selection--multiple .select2-selection__choice,
.form-group-lg .select2-container--social .select2-selection--multiple .select2-selection__choice {
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 4px;
  margin: 9px 0 0 8px;
  padding: 0 10px;
}

.select2-container--social .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field,
.input-group-lg .select2-container--social .select2-selection--multiple .select2-search--inline .select2-search__field,
.form-group-lg .select2-container--social .select2-selection--multiple .select2-search--inline .select2-search__field {
  padding: 0 16px;
  font-size: 18px;
  height: 44px;
  line-height: 1.3333333;
}

.select2-container--social .select2-selection--multiple.input-lg .select2-selection__clear,
.input-group-lg .select2-container--social .select2-selection--multiple .select2-selection__clear,
.form-group-lg .select2-container--social .select2-selection--multiple .select2-selection__clear {
  margin-top: 10px;
}

.select2-container--social .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #999 transparent;
  border-width: 0 5px 5px 5px;
}

.input-group-lg .select2-container--social .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #999 transparent;
  border-width: 0 5px 5px 5px;
}

.select2-container--social[dir="rtl"] .select2-selection--single {
  padding-left: 24px;
  padding-right: 12px;
}

.select2-container--social[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  padding-right: 0;
  padding-left: 0;
  text-align: right;
  /* 1 */
}

.select2-container--social[dir="rtl"] .select2-selection--single .select2-selection__clear {
  float: left;
}

.select2-container--social[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  left: 12px;
  right: auto;
}

.select2-container--social[dir="rtl"] .select2-selection--single .select2-selection__arrow b {
  margin-left: 0;
}

.select2-container--social[dir="rtl"] .select2-selection--multiple .select2-selection__choice,
.select2-container--social[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,
.select2-container--social[dir="rtl"] .select2-selection--multiple .select2-search--inline {
  float: right;
}

.select2-container--social[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  margin-left: 0;
  margin-right: 6px;
}

.select2-container--social[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  margin-left: 2px;
  margin-right: auto;
}

/*------------------------------------*  #ADDITIONAL GOODIES
\*------------------------------------*/
/**
 * Address Bootstrap's validation states
 *
 * If a Select2 widget parent has one of Bootstrap's validation state modifier
 * classes, adjust Select2's border colors and focus states accordingly.
 * You may apply said classes to the Select2 dropdown (body > .select2-container)
 * via JavaScript match Bootstraps' to make its styles match.
 *
 * @see http://getbootstrap.com/css/#forms-control-validation
 */
.has-warning .select2-dropdown,
.has-warning .select2-selection {
  border-color: #8a6d3b;
}

.has-warning .select2-container--focus .select2-selection,
.has-warning .select2-container--open .select2-selection {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
  border-color: #66512c;
}

.has-warning.select2-drop-active {
  border-color: #66512c;
}

.has-warning.select2-drop-active.select2-drop.select2-drop-above {
  border-top-color: #66512c;
}

.has-error .select2-dropdown,
.has-error .select2-selection {
  border-color: #a94442;
}

.has-error .select2-container--focus .select2-selection,
.has-error .select2-container--open .select2-selection {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
  border-color: #843534;
}

.has-error.select2-drop-active {
  border-color: #843534;
}

.has-error.select2-drop-active.select2-drop.select2-drop-above {
  border-top-color: #843534;
}

.has-success .select2-dropdown,
.has-success .select2-selection {
  border-color: #3c763d;
}

.has-success .select2-container--focus .select2-selection,
.has-success .select2-container--open .select2-selection {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
  border-color: #2b542c;
}

.has-success.select2-drop-active {
  border-color: #2b542c;
}

.has-success.select2-drop-active.select2-drop.select2-drop-above {
  border-top-color: #2b542c;
}

/**
 * Select2 widgets in Bootstrap Input Groups
 *
 * @see http://getsocial.com/components/#input-groups
 * @see https://github.com/twbs/social/blob/master/less/input-groups.less
 */
/**
 * Reset rounded corners
 */
.input-group > .select2-hidden-accessible:first-child + .select2-container--social > .selection > .select2-selection,
.input-group > .select2-hidden-accessible:first-child + .select2-container--social > .selection > .select2-selection.form-control {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.input-group > .select2-hidden-accessible:not(:first-child) + .select2-container--social:not(:last-child) > .selection > .select2-selection,
.input-group > .select2-hidden-accessible:not(:first-child) + .select2-container--social:not(:last-child) > .selection > .select2-selection.form-control {
  border-radius: 0;
}

.input-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container--social:last-child > .selection > .select2-selection,
.input-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container--social:last-child > .selection > .select2-selection.form-control {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.input-group > .select2-container--social {
  display: table;
  table-layout: fixed;
  position: relative;
  z-index: 2;
  width: 100%;
  margin-bottom: 0;
  /**
   * Adjust z-index like Bootstrap does to show the focus-box-shadow
   * above appended buttons in .input-group and .form-group.
   */
  /**
   * Adjust alignment of Bootstrap buttons in Bootstrap Input Groups to address
   * Multi Select2's height which - depending on how many elements have been selected -
   * may grow taller than its initial size.
   *
   * @see http://getbootstrap.com/components/#input-groups
   */
}

.input-group > .select2-container--social > .selection > .select2-selection.form-control {
  float: none;
}

.input-group > .select2-container--social.select2-container--open, .input-group > .select2-container--social.select2-container--focus {
  z-index: 3;
}

.input-group > .select2-container--social,
.input-group > .select2-container--social .input-group-btn,
.input-group > .select2-container--social .input-group-btn .btn {
  vertical-align: top;
}

/**
 * Temporary fix for https://github.com/select2/select2-social-theme/issues/9
 *
 * Provides `!important` for certain properties of the class applied to the
 * original `<select>` element to hide it.
 *
 * @see https://github.com/select2/select2/pull/3301
 * @see https://github.com/fk/select2/commit/31830c7b32cb3d8e1b12d5b434dee40a6e753ada
 */
.form-control.select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
}

/**
 * Display override for inline forms
 */

@media (min-width: 768px) {
  .form-inline .select2-container--social {
    display: inline-block;
  }
}

@media (min-width: 900px) {
  .select2-container--social .select2-selection {
    font-size: 16px;
  }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .select2-container--social .select2-selection {
    font-size: 16px;
  }
}

File

themes/socialbase/assets/css/select2.css
View source
  1. /*!
  2. * This will only work with javascript
  3. */
  4. .select2-container--social {
  5. display: block;
  6. }
  7. .select2-container--social .select2-selection {
  8. outline: 0;
  9. }
  10. .select2-container--social .select2-search--dropdown .select2-search__field {
  11. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  12. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  13. background-color: #fff;
  14. border: 1px solid #ccc;
  15. border-radius: 4px;
  16. color: #555555;
  17. font-size: 14px;
  18. }
  19. .select2-container--social .select2-search__field {
  20. outline: 0;
  21. }
  22. .select2-container--social .select2-search__field::-webkit-input-placeholder {
  23. color: #999;
  24. }
  25. .select2-container--social .select2-search__field:-moz-placeholder {
  26. color: #999;
  27. }
  28. .select2-container--social .select2-search__field::-moz-placeholder {
  29. color: #999;
  30. opacity: 1;
  31. }
  32. .select2-container--social .select2-search__field:-ms-input-placeholder {
  33. color: #999;
  34. }
  35. .select2-container--social .select2-results__option {
  36. padding: 6px 12px;
  37. }
  38. .select2-container--social .select2-results__option[role=group] {
  39. padding: 0;
  40. }
  41. .select2-container--social .select2-results__option[aria-disabled=true] {
  42. color: #777777;
  43. cursor: not-allowed;
  44. }
  45. .select2-container--social .select2-results__option[aria-selected=true] {
  46. background-color: #e6e6e6;
  47. }
  48. .select2-container--social .select2-results__option .select2-results__option {
  49. padding: 6px 12px;
  50. }
  51. .select2-container--social .select2-results__option .select2-results__option .select2-results__group {
  52. padding-left: 0;
  53. }
  54. .select2-container--social .select2-results__option .select2-results__option .select2-results__option {
  55. margin-left: -12px;
  56. padding-left: 24px;
  57. }
  58. .select2-container--social .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  59. margin-left: -24px;
  60. padding-left: 36px;
  61. }
  62. .select2-container--social .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  63. margin-left: -36px;
  64. padding-left: 48px;
  65. }
  66. .select2-container--social .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  67. margin-left: -48px;
  68. padding-left: 60px;
  69. }
  70. .select2-container--social .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  71. margin-left: -60px;
  72. padding-left: 72px;
  73. }
  74. .select2-container--social .select2-results__group {
  75. color: #999999;
  76. display: block;
  77. padding: 6px 12px;
  78. line-height: 1.42857143;
  79. white-space: nowrap;
  80. }
  81. .select2-container--social.select2-container--focus .select2-selection, .select2-container--social.select2-container--open .select2-selection {
  82. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  83. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  84. -webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
  85. transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
  86. transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  87. transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
  88. }
  89. .select2-container--social.select2-container--open .select2-selection .select2-selection__arrow b {
  90. border-color: transparent transparent #999 transparent;
  91. border-width: 0 4px 4px 4px;
  92. }
  93. .select2-container--social.select2-container--open.select2-container--below .select2-selection {
  94. border-bottom-right-radius: 0;
  95. border-bottom-left-radius: 0;
  96. border-bottom-color: transparent;
  97. }
  98. .select2-container--social.select2-container--open.select2-container--above .select2-selection {
  99. border-top-right-radius: 0;
  100. border-top-left-radius: 0;
  101. border-top-color: transparent;
  102. }
  103. .select2-container--social .select2-selection__clear {
  104. color: #999;
  105. cursor: pointer;
  106. float: right;
  107. font-weight: bold;
  108. margin-right: 10px;
  109. }
  110. .select2-container--social .select2-selection__clear:hover {
  111. color: #333;
  112. }
  113. .select2-container--social.select2-container--disabled .select2-selection {
  114. border-color: #ccc;
  115. -webkit-box-shadow: none;
  116. box-shadow: none;
  117. }
  118. .select2-container--social.select2-container--disabled .select2-selection,
  119. .select2-container--social.select2-container--disabled .select2-search__field {
  120. cursor: not-allowed;
  121. }
  122. .select2-container--social.select2-container--disabled .select2-selection,
  123. .select2-container--social.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
  124. background-color: #eeeeee;
  125. }
  126. .select2-container--social.select2-container--disabled .select2-selection__clear,
  127. .select2-container--social.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove {
  128. display: none;
  129. }
  130. .select2-container--social .select2-dropdown {
  131. -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  132. box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  133. overflow-x: hidden;
  134. margin-top: -1px;
  135. }
  136. .select2-container--social .select2-dropdown--above {
  137. -webkit-box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.175);
  138. box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.175);
  139. margin-top: 1px;
  140. }
  141. .select2-container--social .select2-results > .select2-results__options {
  142. max-height: 200px;
  143. overflow-y: auto;
  144. }
  145. .select2-container--social .select2-selection--single {
  146. height: 34px;
  147. line-height: 1.42857143;
  148. padding: 6px 24px 6px 12px;
  149. /**
  150. * Adjust the single Select2's dropdown arrow button appearance.
  151. */
  152. }
  153. .select2-container--social .select2-selection--single .select2-selection__arrow {
  154. position: absolute;
  155. bottom: 0;
  156. right: 12px;
  157. top: 0;
  158. width: 4px;
  159. }
  160. .select2-container--social .select2-selection--single .select2-selection__arrow b {
  161. border-color: #999 transparent transparent transparent;
  162. border-style: solid;
  163. border-width: 4px 4px 0 4px;
  164. height: 0;
  165. left: 0;
  166. margin-left: -4px;
  167. margin-top: -2px;
  168. position: absolute;
  169. top: 50%;
  170. width: 0;
  171. }
  172. .select2-container--social .select2-selection--single .select2-selection__rendered {
  173. color: #555555;
  174. padding: 0;
  175. }
  176. .select2-container--social .select2-selection--single .select2-selection__placeholder {
  177. color: #999;
  178. }
  179. .select2-container--social .select2-selection--multiple {
  180. min-height: 34px;
  181. padding: 0;
  182. height: auto;
  183. /**
  184. * Make Multi Select2's choices match Bootstrap 3's default button styles.
  185. */
  186. /**
  187. * Minus 2px borders.
  188. */
  189. /**
  190. * Clear the selection.
  191. */
  192. }
  193. .select2-container--social .select2-selection--multiple .select2-selection__rendered {
  194. -webkit-box-sizing: border-box;
  195. box-sizing: border-box;
  196. display: block;
  197. line-height: 1.42857143;
  198. list-style: none;
  199. margin: 0;
  200. overflow: hidden;
  201. padding: 0;
  202. width: 100%;
  203. text-overflow: ellipsis;
  204. white-space: nowrap;
  205. }
  206. .select2-container--social .select2-selection--multiple .select2-selection__placeholder {
  207. color: #999;
  208. float: left;
  209. margin-top: 5px;
  210. }
  211. .select2-container--social .select2-selection--multiple .select2-selection__choice {
  212. color: #555555;
  213. background: #fff;
  214. border: 1px solid #ccc;
  215. border-radius: 4px;
  216. cursor: default;
  217. float: left;
  218. margin: 5px 0 0 6px;
  219. padding: 0 6px;
  220. }
  221. .select2-container--social .select2-selection--multiple .select2-search--inline .select2-search__field {
  222. background: transparent;
  223. padding: 0 12px;
  224. height: 32px;
  225. line-height: 1.42857143;
  226. margin-top: 0;
  227. min-width: 5em;
  228. }
  229. .select2-container--social .select2-selection--multiple .select2-selection__choice__remove {
  230. color: #999;
  231. cursor: pointer;
  232. display: inline-block;
  233. font-weight: bold;
  234. margin-right: 3px;
  235. }
  236. .select2-container--social .select2-selection--multiple .select2-selection__choice__remove:hover {
  237. color: #333;
  238. }
  239. .select2-container--social .select2-selection--multiple .select2-selection__clear {
  240. margin-top: 6px;
  241. }
  242. .select2-container--social .select2-selection--single.input-sm,
  243. .input-group-sm .select2-container--social .select2-selection--single,
  244. .form-group-sm .select2-container--social .select2-selection--single {
  245. border-radius: 3px;
  246. font-size: 12px;
  247. height: 30px;
  248. line-height: 1.5;
  249. padding: 5px 22px 5px 10px;
  250. /* 2 */
  251. }
  252. .select2-container--social .select2-selection--single.input-sm .select2-selection__arrow b,
  253. .input-group-sm .select2-container--social .select2-selection--single .select2-selection__arrow b,
  254. .form-group-sm .select2-container--social .select2-selection--single .select2-selection__arrow b {
  255. margin-left: -5px;
  256. }
  257. .select2-container--social .select2-selection--multiple.input-sm,
  258. .input-group-sm .select2-container--social .select2-selection--multiple,
  259. .form-group-sm .select2-container--social .select2-selection--multiple {
  260. min-height: 30px;
  261. border-radius: 3px;
  262. }
  263. .select2-container--social .select2-selection--multiple.input-sm .select2-selection__choice,
  264. .input-group-sm .select2-container--social .select2-selection--multiple .select2-selection__choice,
  265. .form-group-sm .select2-container--social .select2-selection--multiple .select2-selection__choice {
  266. font-size: 12px;
  267. line-height: 1.5;
  268. margin: 4px 0 0 5px;
  269. padding: 0 5px;
  270. }
  271. .select2-container--social .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field,
  272. .input-group-sm .select2-container--social .select2-selection--multiple .select2-search--inline .select2-search__field,
  273. .form-group-sm .select2-container--social .select2-selection--multiple .select2-search--inline .select2-search__field {
  274. padding: 0 10px;
  275. font-size: 12px;
  276. height: 28px;
  277. line-height: 1.5;
  278. }
  279. .select2-container--social .select2-selection--multiple.input-sm .select2-selection__clear,
  280. .input-group-sm .select2-container--social .select2-selection--multiple .select2-selection__clear,
  281. .form-group-sm .select2-container--social .select2-selection--multiple .select2-selection__clear {
  282. margin-top: 5px;
  283. }
  284. .select2-container--social .select2-selection--single.input-lg,
  285. .input-group-lg .select2-container--social .select2-selection--single,
  286. .form-group-lg .select2-container--social .select2-selection--single {
  287. border-radius: 6px;
  288. font-size: 18px;
  289. height: 46px;
  290. line-height: 1.3333333;
  291. padding: 10px 31px 10px 16px;
  292. /* 1 */
  293. }
  294. .select2-container--social .select2-selection--single.input-lg .select2-selection__arrow,
  295. .input-group-lg .select2-container--social .select2-selection--single .select2-selection__arrow,
  296. .form-group-lg .select2-container--social .select2-selection--single .select2-selection__arrow {
  297. width: 5px;
  298. }
  299. .select2-container--social .select2-selection--single.input-lg .select2-selection__arrow b,
  300. .input-group-lg .select2-container--social .select2-selection--single .select2-selection__arrow b,
  301. .form-group-lg .select2-container--social .select2-selection--single .select2-selection__arrow b {
  302. border-width: 5px 5px 0 5px;
  303. margin-left: -10px;
  304. margin-top: -2.5px;
  305. }
  306. .select2-container--social .select2-selection--multiple.input-lg,
  307. .input-group-lg .select2-container--social .select2-selection--multiple,
  308. .form-group-lg .select2-container--social .select2-selection--multiple {
  309. min-height: 46px;
  310. border-radius: 6px;
  311. }
  312. .select2-container--social .select2-selection--multiple.input-lg .select2-selection__choice,
  313. .input-group-lg .select2-container--social .select2-selection--multiple .select2-selection__choice,
  314. .form-group-lg .select2-container--social .select2-selection--multiple .select2-selection__choice {
  315. font-size: 18px;
  316. line-height: 1.3333333;
  317. border-radius: 4px;
  318. margin: 9px 0 0 8px;
  319. padding: 0 10px;
  320. }
  321. .select2-container--social .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field,
  322. .input-group-lg .select2-container--social .select2-selection--multiple .select2-search--inline .select2-search__field,
  323. .form-group-lg .select2-container--social .select2-selection--multiple .select2-search--inline .select2-search__field {
  324. padding: 0 16px;
  325. font-size: 18px;
  326. height: 44px;
  327. line-height: 1.3333333;
  328. }
  329. .select2-container--social .select2-selection--multiple.input-lg .select2-selection__clear,
  330. .input-group-lg .select2-container--social .select2-selection--multiple .select2-selection__clear,
  331. .form-group-lg .select2-container--social .select2-selection--multiple .select2-selection__clear {
  332. margin-top: 10px;
  333. }
  334. .select2-container--social .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b {
  335. border-color: transparent transparent #999 transparent;
  336. border-width: 0 5px 5px 5px;
  337. }
  338. .input-group-lg .select2-container--social .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b {
  339. border-color: transparent transparent #999 transparent;
  340. border-width: 0 5px 5px 5px;
  341. }
  342. .select2-container--social[dir="rtl"] .select2-selection--single {
  343. padding-left: 24px;
  344. padding-right: 12px;
  345. }
  346. .select2-container--social[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  347. padding-right: 0;
  348. padding-left: 0;
  349. text-align: right;
  350. /* 1 */
  351. }
  352. .select2-container--social[dir="rtl"] .select2-selection--single .select2-selection__clear {
  353. float: left;
  354. }
  355. .select2-container--social[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  356. left: 12px;
  357. right: auto;
  358. }
  359. .select2-container--social[dir="rtl"] .select2-selection--single .select2-selection__arrow b {
  360. margin-left: 0;
  361. }
  362. .select2-container--social[dir="rtl"] .select2-selection--multiple .select2-selection__choice,
  363. .select2-container--social[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,
  364. .select2-container--social[dir="rtl"] .select2-selection--multiple .select2-search--inline {
  365. float: right;
  366. }
  367. .select2-container--social[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  368. margin-left: 0;
  369. margin-right: 6px;
  370. }
  371. .select2-container--social[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  372. margin-left: 2px;
  373. margin-right: auto;
  374. }
  375. /*------------------------------------* #ADDITIONAL GOODIES
  376. \*------------------------------------*/
  377. /**
  378. * Address Bootstrap's validation states
  379. *
  380. * If a Select2 widget parent has one of Bootstrap's validation state modifier
  381. * classes, adjust Select2's border colors and focus states accordingly.
  382. * You may apply said classes to the Select2 dropdown (body > .select2-container)
  383. * via JavaScript match Bootstraps' to make its styles match.
  384. *
  385. * @see http://getbootstrap.com/css/#forms-control-validation
  386. */
  387. .has-warning .select2-dropdown,
  388. .has-warning .select2-selection {
  389. border-color: #8a6d3b;
  390. }
  391. .has-warning .select2-container--focus .select2-selection,
  392. .has-warning .select2-container--open .select2-selection {
  393. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
  394. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
  395. border-color: #66512c;
  396. }
  397. .has-warning.select2-drop-active {
  398. border-color: #66512c;
  399. }
  400. .has-warning.select2-drop-active.select2-drop.select2-drop-above {
  401. border-top-color: #66512c;
  402. }
  403. .has-error .select2-dropdown,
  404. .has-error .select2-selection {
  405. border-color: #a94442;
  406. }
  407. .has-error .select2-container--focus .select2-selection,
  408. .has-error .select2-container--open .select2-selection {
  409. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
  410. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
  411. border-color: #843534;
  412. }
  413. .has-error.select2-drop-active {
  414. border-color: #843534;
  415. }
  416. .has-error.select2-drop-active.select2-drop.select2-drop-above {
  417. border-top-color: #843534;
  418. }
  419. .has-success .select2-dropdown,
  420. .has-success .select2-selection {
  421. border-color: #3c763d;
  422. }
  423. .has-success .select2-container--focus .select2-selection,
  424. .has-success .select2-container--open .select2-selection {
  425. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
  426. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
  427. border-color: #2b542c;
  428. }
  429. .has-success.select2-drop-active {
  430. border-color: #2b542c;
  431. }
  432. .has-success.select2-drop-active.select2-drop.select2-drop-above {
  433. border-top-color: #2b542c;
  434. }
  435. /**
  436. * Select2 widgets in Bootstrap Input Groups
  437. *
  438. * @see http://getsocial.com/components/#input-groups
  439. * @see https://github.com/twbs/social/blob/master/less/input-groups.less
  440. */
  441. /**
  442. * Reset rounded corners
  443. */
  444. .input-group > .select2-hidden-accessible:first-child + .select2-container--social > .selection > .select2-selection,
  445. .input-group > .select2-hidden-accessible:first-child + .select2-container--social > .selection > .select2-selection.form-control {
  446. border-bottom-right-radius: 0;
  447. border-top-right-radius: 0;
  448. }
  449. .input-group > .select2-hidden-accessible:not(:first-child) + .select2-container--social:not(:last-child) > .selection > .select2-selection,
  450. .input-group > .select2-hidden-accessible:not(:first-child) + .select2-container--social:not(:last-child) > .selection > .select2-selection.form-control {
  451. border-radius: 0;
  452. }
  453. .input-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container--social:last-child > .selection > .select2-selection,
  454. .input-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container--social:last-child > .selection > .select2-selection.form-control {
  455. border-bottom-left-radius: 0;
  456. border-top-left-radius: 0;
  457. }
  458. .input-group > .select2-container--social {
  459. display: table;
  460. table-layout: fixed;
  461. position: relative;
  462. z-index: 2;
  463. width: 100%;
  464. margin-bottom: 0;
  465. /**
  466. * Adjust z-index like Bootstrap does to show the focus-box-shadow
  467. * above appended buttons in .input-group and .form-group.
  468. */
  469. /**
  470. * Adjust alignment of Bootstrap buttons in Bootstrap Input Groups to address
  471. * Multi Select2's height which - depending on how many elements have been selected -
  472. * may grow taller than its initial size.
  473. *
  474. * @see http://getbootstrap.com/components/#input-groups
  475. */
  476. }
  477. .input-group > .select2-container--social > .selection > .select2-selection.form-control {
  478. float: none;
  479. }
  480. .input-group > .select2-container--social.select2-container--open, .input-group > .select2-container--social.select2-container--focus {
  481. z-index: 3;
  482. }
  483. .input-group > .select2-container--social,
  484. .input-group > .select2-container--social .input-group-btn,
  485. .input-group > .select2-container--social .input-group-btn .btn {
  486. vertical-align: top;
  487. }
  488. /**
  489. * Temporary fix for https://github.com/select2/select2-social-theme/issues/9
  490. *
  491. * Provides `!important` for certain properties of the class applied to the
  492. * original `