You are here

select2.css in Country, State and City Fields 8

.select2-container {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  position: relative;
  vertical-align: middle;
}
.select2-container .select2-selection--single {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 28px;
  user-select: none;
  -webkit-user-select: none;
}
.select2-container .select2-selection--single .select2-selection__rendered {
  display: block;
  padding-left: 8px;
  padding-right: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select2-container .select2-selection--single .select2-selection__clear {
  background-color: transparent;
  border: none;
  font-size: 1em;
}
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  padding-right: 8px;
  padding-left: 20px;
}
.select2-container .select2-selection--multiple {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  min-height: 32px;
  user-select: none;
  -webkit-user-select: none;
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: inline;
  list-style: none;
  padding: 0;
}
.select2-container .select2-selection--multiple .select2-selection__clear {
  background-color: transparent;
  border: none;
  font-size: 1em;
}
.select2-container .select2-search--inline .select2-search__field {
  box-sizing: border-box;
  border: none;
  font-size: 100%;
  margin-top: 5px;
  margin-left: 5px;
  padding: 0;
  max-width: 100%;
  resize: none;
  height: 18px;
  vertical-align: bottom;
  font-family: sans-serif;
  overflow: hidden;
  word-break: keep-all;
}
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.select2-dropdown {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  position: absolute;
  left: -100000px;
  width: 100%;
  z-index: 1051;
}

.select2-results {
  display: block;
}

.select2-results__options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.select2-results__option {
  padding: 6px;
  user-select: none;
  -webkit-user-select: none;
}

.select2-results__option--selectable {
  cursor: pointer;
}

.select2-container--open .select2-dropdown {
  left: 0;
}

.select2-container--open .select2-dropdown--above {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select2-container--open .select2-dropdown--below {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.select2-search--dropdown {
  display: block;
  padding: 4px;
}
.select2-search--dropdown .select2-search__field {
  padding: 4px;
  width: 100%;
  box-sizing: border-box;
}
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.select2-search--dropdown.select2-search--hide {
  display: none;
}

.select2-close-mask {
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  min-width: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: #fff;
  filter: alpha(opacity=0);
}

.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #444;
  line-height: 28px;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  height: 26px;
  margin-right: 20px;
  padding-right: 0px;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #999;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 26px;
  position: absolute;
  top: 1px;
  right: 1px;
  width: 20px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #888 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
}

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

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

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #eee;
  cursor: default;
}
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
  display: none;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px;
}

.select2-container--default .select2-selection--multiple {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: text;
  padding-bottom: 5px;
  padding-right: 5px;
  position: relative;
}
.select2-container--default .select2-selection--multiple.select2-selection--clearable {
  padding-right: 25px;
}
.select2-container--default .select2-selection--multiple .select2-selection__clear {
  cursor: pointer;
  font-weight: bold;
  height: 20px;
  margin-right: 10px;
  margin-top: 5px;
  position: absolute;
  right: 0;
  padding: 1px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #e4e4e4;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
  display: inline-block;
  margin-left: 5px;
  margin-top: 5px;
  padding: 0;
  padding-left: 20px;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  cursor: default;
  padding-left: 2px;
  padding-right: 5px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  background-color: transparent;
  border: none;
  border-right: 1px solid #aaa;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  color: #999;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  padding: 0 4px;
  position: absolute;
  left: 0;
  top: 0;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
  background-color: #f1f1f1;
  color: #333;
  outline: none;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  margin-left: 5px;
  margin-right: auto;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
  padding-left: 5px;
  padding-right: 2px;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  border-left: 1px solid #aaa;
  border-right: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__clear {
  float: left;
  margin-left: 10px;
  margin-right: auto;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: solid black 1px;
  outline: 0;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: #eee;
  cursor: default;
}

.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
  display: none;
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #aaa;
}

.select2-container--default .select2-search--inline .select2-search__field {
  background: transparent;
  border: none;
  outline: 0;
  box-shadow: none;
  -webkit-appearance: textfield;
}

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

.select2-container--default .select2-results__option .select2-results__option {
  padding-left: 1em;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
  padding-left: 0;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -1em;
  padding-left: 2em;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -2em;
  padding-left: 3em;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -3em;
  padding-left: 4em;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -4em;
  padding-left: 5em;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  margin-left: -5em;
  padding-left: 6em;
}

.select2-container--default .select2-results__option--group {
  padding: 0;
}

.select2-container--default .select2-results__option--disabled {
  color: #999;
}

.select2-container--default .select2-results__option--selected {
  background-color: #ddd;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #5897fb;
  color: white;
}

.select2-container--default .select2-results__group {
  cursor: default;
  display: block;
  padding: 6px;
}

.select2-container--classic .select2-selection--single {
  background-color: #f7f7f7;
  border: 1px solid #aaa;
  border-radius: 4px;
  outline: 0;
  background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
  background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
  background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
}
.select2-container--classic .select2-selection--single:focus {
  border: 1px solid #5897fb;
}
.select2-container--classic .select2-selection--single .select2-selection__rendered {
  color: #444;
  line-height: 28px;
}
.select2-container--classic .select2-selection--single .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  height: 26px;
  margin-right: 20px;
}
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
  color: #999;
}
.select2-container--classic .select2-selection--single .select2-selection__arrow {
  background-color: #ddd;
  border: none;
  border-left: 1px solid #aaa;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  height: 26px;
  position: absolute;
  top: 1px;
  right: 1px;
  width: 20px;
  background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0);
}
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
  border-color: #888 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
}

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

.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  border: none;
  border-right: 1px solid #aaa;
  border-radius: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  left: 1px;
  right: auto;
}

.select2-container--classic.select2-container--open .select2-selection--single {
  border: 1px solid #5897fb;
}
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
  background: transparent;
  border: none;
}
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px;
}

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
  background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
  background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
}

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
  background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
  background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0);
}

.select2-container--classic .select2-selection--multiple {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: text;
  outline: 0;
  padding-bottom: 5px;
  padding-right: 5px;
}
.select2-container--classic .select2-selection--multiple:focus {
  border: 1px solid #5897fb;
}
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
  display: none;
}
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
  background-color: #e4e4e4;
  border: 1px solid #aaa;
  border-radius: 4px;
  display: inline-block;
  margin-left: 5px;
  margin-top: 5px;
  padding: 0;
}
.select2-container--classic .select2-selection--multiple .select2-selection__choice__display {
  cursor: default;
  padding-left: 2px;
  padding-right: 5px;
}
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
  background-color: transparent;
  border: none;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  color: #888;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  padding: 0 4px;
}
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #555;
  outline: none;
}

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  margin-left: 5px;
  margin-right: auto;
}

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
  padding-left: 5px;
  padding-right: 2px;
}

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.select2-container--classic.select2-container--open .select2-selection--multiple {
  border: 1px solid #5897fb;
}

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select2-container--classic .select2-search--dropdown .select2-search__field {
  border: 1px solid #aaa;
  outline: 0;
}

.select2-container--classic .select2-search--inline .select2-search__field {
  outline: 0;
  box-shadow: none;
}

.select2-container--classic .select2-dropdown {
  background-color: white;
  border: 1px solid transparent;
}

.select2-container--classic .select2-dropdown--above {
  border-bottom: none;
}

.select2-container--classic .select2-dropdown--below {
  border-top: none;
}

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

.select2-container--classic .select2-results__option--group {
  padding: 0;
}

.select2-container--classic .select2-results__option--disabled {
  color: grey;
}

.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #3875d7;
  color: white;
}

.select2-container--classic .select2-results__group {
  cursor: default;
  display: block;
  padding: 6px;
}

.select2-container--classic.select2-container--open .select2-dropdown {
  border-color: #5897fb;
}

File

css/select2.css
View source
  1. .select2-container {
  2. box-sizing: border-box;
  3. display: inline-block;
  4. margin: 0;
  5. position: relative;
  6. vertical-align: middle;
  7. }
  8. .select2-container .select2-selection--single {
  9. box-sizing: border-box;
  10. cursor: pointer;
  11. display: block;
  12. height: 28px;
  13. user-select: none;
  14. -webkit-user-select: none;
  15. }
  16. .select2-container .select2-selection--single .select2-selection__rendered {
  17. display: block;
  18. padding-left: 8px;
  19. padding-right: 20px;
  20. overflow: hidden;
  21. text-overflow: ellipsis;
  22. white-space: nowrap;
  23. }
  24. .select2-container .select2-selection--single .select2-selection__clear {
  25. background-color: transparent;
  26. border: none;
  27. font-size: 1em;
  28. }
  29. .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  30. padding-right: 8px;
  31. padding-left: 20px;
  32. }
  33. .select2-container .select2-selection--multiple {
  34. box-sizing: border-box;
  35. cursor: pointer;
  36. display: block;
  37. min-height: 32px;
  38. user-select: none;
  39. -webkit-user-select: none;
  40. }
  41. .select2-container .select2-selection--multiple .select2-selection__rendered {
  42. display: inline;
  43. list-style: none;
  44. padding: 0;
  45. }
  46. .select2-container .select2-selection--multiple .select2-selection__clear {
  47. background-color: transparent;
  48. border: none;
  49. font-size: 1em;
  50. }
  51. .select2-container .select2-search--inline .select2-search__field {
  52. box-sizing: border-box;
  53. border: none;
  54. font-size: 100%;
  55. margin-top: 5px;
  56. margin-left: 5px;
  57. padding: 0;
  58. max-width: 100%;
  59. resize: none;
  60. height: 18px;
  61. vertical-align: bottom;
  62. font-family: sans-serif;
  63. overflow: hidden;
  64. word-break: keep-all;
  65. }
  66. .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
  67. -webkit-appearance: none;
  68. }
  69. .select2-dropdown {
  70. background-color: white;
  71. border: 1px solid #aaa;
  72. border-radius: 4px;
  73. box-sizing: border-box;
  74. display: block;
  75. position: absolute;
  76. left: -100000px;
  77. width: 100%;
  78. z-index: 1051;
  79. }
  80. .select2-results {
  81. display: block;
  82. }
  83. .select2-results__options {
  84. list-style: none;
  85. margin: 0;
  86. padding: 0;
  87. }
  88. .select2-results__option {
  89. padding: 6px;
  90. user-select: none;
  91. -webkit-user-select: none;
  92. }
  93. .select2-results__option--selectable {
  94. cursor: pointer;
  95. }
  96. .select2-container--open .select2-dropdown {
  97. left: 0;
  98. }
  99. .select2-container--open .select2-dropdown--above {
  100. border-bottom: none;
  101. border-bottom-left-radius: 0;
  102. border-bottom-right-radius: 0;
  103. }
  104. .select2-container--open .select2-dropdown--below {
  105. border-top: none;
  106. border-top-left-radius: 0;
  107. border-top-right-radius: 0;
  108. }
  109. .select2-search--dropdown {
  110. display: block;
  111. padding: 4px;
  112. }
  113. .select2-search--dropdown .select2-search__field {
  114. padding: 4px;
  115. width: 100%;
  116. box-sizing: border-box;
  117. }
  118. .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  119. -webkit-appearance: none;
  120. }
  121. .select2-search--dropdown.select2-search--hide {
  122. display: none;
  123. }
  124. .select2-close-mask {
  125. border: 0;
  126. margin: 0;
  127. padding: 0;
  128. display: block;
  129. position: fixed;
  130. left: 0;
  131. top: 0;
  132. min-height: 100%;
  133. min-width: 100%;
  134. height: auto;
  135. width: auto;
  136. opacity: 0;
  137. z-index: 99;
  138. background-color: #fff;
  139. filter: alpha(opacity=0);
  140. }
  141. .select2-hidden-accessible {
  142. border: 0 !important;
  143. clip: rect(0 0 0 0) !important;
  144. -webkit-clip-path: inset(50%) !important;
  145. clip-path: inset(50%) !important;
  146. height: 1px !important;
  147. overflow: hidden !important;
  148. padding: 0 !important;
  149. position: absolute !important;
  150. width: 1px !important;
  151. white-space: nowrap !important;
  152. }
  153. .select2-container--default .select2-selection--single {
  154. background-color: #fff;
  155. border: 1px solid #aaa;
  156. border-radius: 4px;
  157. }
  158. .select2-container--default .select2-selection--single .select2-selection__rendered {
  159. color: #444;
  160. line-height: 28px;
  161. }
  162. .select2-container--default .select2-selection--single .select2-selection__clear {
  163. cursor: pointer;
  164. float: right;
  165. font-weight: bold;
  166. height: 26px;
  167. margin-right: 20px;
  168. padding-right: 0px;
  169. }
  170. .select2-container--default .select2-selection--single .select2-selection__placeholder {
  171. color: #999;
  172. }
  173. .select2-container--default .select2-selection--single .select2-selection__arrow {
  174. height: 26px;
  175. position: absolute;
  176. top: 1px;
  177. right: 1px;
  178. width: 20px;
  179. }
  180. .select2-container--default .select2-selection--single .select2-selection__arrow b {
  181. border-color: #888 transparent transparent transparent;
  182. border-style: solid;
  183. border-width: 5px 4px 0 4px;
  184. height: 0;
  185. left: 50%;
  186. margin-left: -4px;
  187. margin-top: -2px;
  188. position: absolute;
  189. top: 50%;
  190. width: 0;
  191. }
  192. .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  193. float: left;
  194. }
  195. .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  196. left: 1px;
  197. right: auto;
  198. }
  199. .select2-container--default.select2-container--disabled .select2-selection--single {
  200. background-color: #eee;
  201. cursor: default;
  202. }
  203. .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
  204. display: none;
  205. }
  206. .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  207. border-color: transparent transparent #888 transparent;
  208. border-width: 0 4px 5px 4px;
  209. }
  210. .select2-container--default .select2-selection--multiple {
  211. background-color: white;
  212. border: 1px solid #aaa;
  213. border-radius: 4px;
  214. cursor: text;
  215. padding-bottom: 5px;
  216. padding-right: 5px;
  217. position: relative;
  218. }
  219. .select2-container--default .select2-selection--multiple.select2-selection--clearable {
  220. padding-right: 25px;
  221. }
  222. .select2-container--default .select2-selection--multiple .select2-selection__clear {
  223. cursor: pointer;
  224. font-weight: bold;
  225. height: 20px;
  226. margin-right: 10px;
  227. margin-top: 5px;
  228. position: absolute;
  229. right: 0;
  230. padding: 1px;
  231. }
  232. .select2-container--default .select2-selection--multiple .select2-selection__choice {
  233. background-color: #e4e4e4;
  234. border: 1px solid #aaa;
  235. border-radius: 4px;
  236. box-sizing: border-box;
  237. display: inline-block;
  238. margin-left: 5px;
  239. margin-top: 5px;
  240. padding: 0;
  241. padding-left: 20px;
  242. position: relative;
  243. max-width: 100%;
  244. overflow: hidden;
  245. text-overflow: ellipsis;
  246. vertical-align: bottom;
  247. white-space: nowrap;
  248. }
  249. .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  250. cursor: default;
  251. padding-left: 2px;
  252. padding-right: 5px;
  253. }
  254. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  255. background-color: transparent;
  256. border: none;
  257. border-right: 1px solid #aaa;
  258. border-top-left-radius: 4px;
  259. border-bottom-left-radius: 4px;
  260. color: #999;
  261. cursor: pointer;
  262. font-size: 1em;
  263. font-weight: bold;
  264. padding: 0 4px;
  265. position: absolute;
  266. left: 0;
  267. top: 0;
  268. }
  269. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
  270. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
  271. background-color: #f1f1f1;
  272. color: #333;
  273. outline: none;
  274. }
  275. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  276. margin-left: 5px;
  277. margin-right: auto;
  278. }
  279. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
  280. padding-left: 5px;
  281. padding-right: 2px;
  282. }
  283. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  284. border-left: 1px solid #aaa;
  285. border-right: none;
  286. border-top-left-radius: 0;
  287. border-bottom-left-radius: 0;
  288. border-top-right-radius: 4px;
  289. border-bottom-right-radius: 4px;
  290. }
  291. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__clear {
  292. float: left;
  293. margin-left: 10px;
  294. margin-right: auto;
  295. }
  296. .select2-container--default.select2-container--focus .select2-selection--multiple {
  297. border: solid black 1px;
  298. outline: 0;
  299. }
  300. .select2-container--default.select2-container--disabled .select2-selection--multiple {
  301. background-color: #eee;
  302. cursor: default;
  303. }
  304. .select2-container--default.select2-container--disabled .select2-selection__choice__remove {
  305. display: none;
  306. }
  307. .select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
  308. .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  309. border-top-left-radius: 0;
  310. border-top-right-radius: 0;
  311. }
  312. .select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
  313. .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  314. border-bottom-left-radius: 0;
  315. border-bottom-right-radius: 0;
  316. }
  317. .select2-container--default .select2-search--dropdown .select2-search__field {
  318. border: 1px solid #aaa;
  319. }
  320. .select2-container--default .select2-search--inline .select2-search__field {
  321. background: transparent;
  322. border: none;
  323. outline: 0;
  324. box-shadow: none;
  325. -webkit-appearance: textfield;
  326. }
  327. .select2-container--default .select2-results > .select2-results__options {
  328. max-height: 200px;
  329. overflow-y: auto;
  330. }
  331. .select2-container--default .select2-results__option .select2-results__option {
  332. padding-left: 1em;
  333. }
  334. .select2-container--default .select2-results__option .select2-results__option .select2-results__group {
  335. padding-left: 0;
  336. }
  337. .select2-container--default .select2-results__option .select2-results__option .select2-results__option {
  338. margin-left: -1em;
  339. padding-left: 2em;
  340. }
  341. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  342. margin-left: -2em;
  343. padding-left: 3em;
  344. }
  345. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  346. margin-left: -3em;
  347. padding-left: 4em;
  348. }
  349. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  350. margin-left: -4em;
  351. padding-left: 5em;
  352. }
  353. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  354. margin-left: -5em;
  355. padding-left: 6em;
  356. }
  357. .select2-container--default .select2-results__option--group {
  358. padding: 0;
  359. }
  360. .select2-container--default .select2-results__option--disabled {
  361. color: #999;
  362. }
  363. .select2-container--default .select2-results__option--selected {
  364. background-color: #ddd;
  365. }
  366. .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  367. background-color: #5897fb;
  368. color: white;
  369. }
  370. .select2-container--default .select2-results__group {
  371. cursor: default;
  372. display: block;
  373. padding: 6px;
  374. }
  375. .select2-container--classic .select2-selection--single {
  376. background-color: #f7f7f7;
  377. border: 1px solid #aaa;
  378. border-radius: 4px;
  379. outline: 0;
  380. background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
  381. background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
  382. background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
  383. background-repeat: repeat-x;
  384. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
  385. }
  386. .select2-container--classic .select2-selection--single:focus {
  387. border: 1px solid #5897fb;
  388. }
  389. .select2-container--classic .select2-selection--single .select2-selection__rendered {
  390. color: #444;
  391. line-height: 28px;
  392. }
  393. .select2-container--classic .select2-selection--single .select2-selection__clear {
  394. cursor: pointer;
  395. float: right;
  396. font-weight: bold;
  397. height: 26px;
  398. margin-right: 20px;
  399. }
  400. .select2-container--classic .select2-selection--single .select2-selection__placeholder {
  401. color: #999;
  402. }
  403. .select2-container--classic .select2-selection--single .select2-selection__arrow {
  404. background-color: #ddd;
  405. border: none;
  406. border-left: 1px solid #aaa;
  407. border-top-right-radius: 4px;
  408. border-bottom-right-radius: 4px;
  409. height: 26px;
  410. position: absolute;
  411. top: 1px;
  412. right: 1px;
  413. width: 20px;
  414. background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  415. background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  416. background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
  417. background-repeat: repeat-x;
  418. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0);
  419. }
  420. .select2-container--classic .select2-selection--single .select2-selection__arrow b {
  421. border-color: #888 transparent transparent transparent;
  422. border-style: solid;
  423. border-width: 5px 4px 0 4px;
  424. height: 0;
  425. left: 50%;
  426. margin-left: -4px;
  427. margin-top: -2px;
  428. position: absolute;
  429. top: 50%;
  430. width: 0;
  431. }
  432. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
  433. float: left;
  434. }
  435. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  436. border: none;
  437. border-right: 1px solid #aaa;
  438. border-radius: 0;
  439. border-top-left-radius: 4px;
  440. border-bottom-left-radius: 4px;
  441. left: 1px;
  442. right: auto;
  443. }
  444. .select2-container--classic.select2-container--open .select2-selection--single {
  445. border: 1px solid #5897fb;
  446. }
  447. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
  448. background: transparent;
  449. border: none;
  450. }
  451. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
  452. border-color: transparent transparent #888 transparent;
  453. border-width: 0 4px 5px 4px;
  454. }
  455. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
  456. border-top: none;
  457. border-top-left-radius: 0;
  458. border-top-right-radius: 0;
  459. background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
  460. background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
  461. background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
  462. background-repeat: repeat-x;
  463. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
  464. }
  465. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
  466. border-bottom: none;
  467. border-bottom-left-radius: 0;
  468. border-bottom-right-radius: 0;
  469. background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
  470. background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
  471. background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
  472. background-repeat: repeat-x;
  473. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0);
  474. }
  475. .select2-container--classic .select2-selection--multiple {
  476. background-color: white;
  477. border: 1px solid #aaa;
  478. border-radius: 4px;
  479. cursor: text;
  480. outline: 0;
  481. padding-bottom: 5px;
  482. padding-right: 5px;
  483. }
  484. .select2-container--classic .select2-selection--multiple:focus {
  485. border: 1px solid #5897fb;
  486. }
  487. .select2-container--classic .select2-selection--multiple .select2-selection__clear {
  488. display: none;
  489. }
  490. .select2-container--classic .select2-selection--multiple .select2-selection__choice {
  491. background-color: #e4e4e4;
  492. border: 1px solid #aaa;
  493. border-radius: 4px;
  494. display: inline-block;
  495. margin-left: 5px;
  496. margin-top: 5px;
  497. padding: 0;
  498. }
  499. .select2-container--classic .select2-selection--multiple .select2-selection__choice__display {
  500. cursor: default;
  501. padding-left: 2px;
  502. padding-right: 5px;
  503. }
  504. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
  505. background-color: transparent;
  506. border: none;
  507. border-top-left-radius: 4px;
  508. border-bottom-left-radius: 4px;
  509. color: #888;
  510. cursor: pointer;
  511. font-size: 1em;
  512. font-weight: bold;
  513. padding: 0 4px;
  514. }
  515. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
  516. color: #555;
  517. outline: none;
  518. }
  519. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  520. margin-left: 5px;
  521. margin-right: auto;
  522. }
  523. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
  524. padding-left: 5px;
  525. padding-right: 2px;
  526. }
  527. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  528. border-top-left-radius: 0;
  529. border-bottom-left-radius: 0;
  530. border-top-right-radius: 4px;
  531. border-bottom-right-radius: 4px;
  532. }
  533. .select2-container--classic.select2-container--open .select2-selection--multiple {
  534. border: 1px solid #5897fb;
  535. }
  536. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
  537. border-top: none;
  538. border-top-left-radius: 0;
  539. border-top-right-radius: 0;
  540. }
  541. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
  542. border-bottom: none;
  543. border-bottom-left-radius: 0;
  544. border-bottom-right-radius: 0;
  545. }
  546. .select2-container--classic .select2-search--dropdown .select2-search__field {
  547. border: 1px solid #aaa;
  548. outline: 0;
  549. }
  550. .select2-container--classic .select2-search--inline .select2-search__field {
  551. outline: 0;
  552. box-shadow: none;
  553. }
  554. .select2-container--classic .select2-dropdown {
  555. background-color: white;
  556. border: 1px solid transparent;
  557. }
  558. .select2-container--classic .select2-dropdown--above {
  559. border-bottom: none;
  560. }
  561. .select2-container--classic .select2-dropdown--below {
  562. border-top: none;
  563. }
  564. .select2-container--classic .select2-results > .select2-results__options {
  565. max-height: 200px;
  566. overflow-y: auto;
  567. }
  568. .select2-container--classic .select2-results__option--group {
  569. padding: 0;
  570. }
  571. .select2-container--classic .select2-results__option--disabled {
  572. color: grey;
  573. }
  574. .select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable {
  575. background-color: #3875d7;
  576. color: white;
  577. }
  578. .select2-container--classic .select2-results__group {
  579. cursor: default;
  580. display: block;
  581. padding: 6px;
  582. }
  583. .select2-container--classic.select2-container--open .select2-dropdown {
  584. border-color: #5897fb;
  585. }