select.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. /*!
  2. * ui-select
  3. * http://github.com/angular-ui/ui-select
  4. * Version: 0.11.2 - 2015-03-17T04:08:46.478Z
  5. * License: MIT
  6. */
  7. /* Style when highlighting a search. */
  8. .ui-select-highlight {
  9. font-weight: bold;
  10. }
  11. .ui-select-offscreen {
  12. clip: rect(0 0 0 0) !important;
  13. width: 1px !important;
  14. height: 1px !important;
  15. border: 0 !important;
  16. margin: 0 !important;
  17. padding: 0 !important;
  18. overflow: hidden !important;
  19. position: absolute !important;
  20. outline: 0 !important;
  21. left: 0px !important;
  22. top: 0px !important;
  23. }
  24. /* Select2 theme */
  25. /* Mark invalid Select2 */
  26. .ng-dirty.ng-invalid > a.select2-choice {
  27. border-color: #D44950;
  28. }
  29. .select2-result-single {
  30. padding-left: 0;
  31. }
  32. .select2-locked > .select2-search-choice-close{
  33. display:none;
  34. }
  35. .select-locked > .ui-select-match-close{
  36. display:none;
  37. }
  38. body > .select2-container.open {
  39. z-index: 9999; /* The z-index Select2 applies to the select2-drop */
  40. }
  41. /* Selectize theme */
  42. /* Helper class to show styles when focus */
  43. .selectize-input.selectize-focus{
  44. border-color: #007FBB !important;
  45. }
  46. /* Fix input width for Selectize theme */
  47. .selectize-control > .selectize-input > input {
  48. width: 100%;
  49. }
  50. /* Fix dropdown width for Selectize theme */
  51. .selectize-control > .selectize-dropdown {
  52. width: 100%;
  53. }
  54. /* Mark invalid Selectize */
  55. .ng-dirty.ng-invalid > div.selectize-input {
  56. border-color: #D44950;
  57. }
  58. /* Bootstrap theme */
  59. /* Helper class to show styles when focus */
  60. .btn-default-focus {
  61. color: #333;
  62. background-color: #EBEBEB;
  63. border-color: #ADADAD;
  64. text-decoration: none;
  65. outline: 5px auto -webkit-focus-ring-color;
  66. outline-offset: -2px;
  67. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  68. }
  69. .ui-select-bootstrap .ui-select-toggle {
  70. position: relative;
  71. }
  72. .ui-select-bootstrap .ui-select-toggle > .caret {
  73. position: absolute;
  74. height: 10px;
  75. top: 50%;
  76. right: 10px;
  77. margin-top: -2px;
  78. }
  79. /* Fix Bootstrap dropdown position when inside a input-group */
  80. .input-group > .ui-select-bootstrap.dropdown {
  81. /* Instead of relative */
  82. position: static;
  83. }
  84. .input-group > .ui-select-bootstrap > input.ui-select-search.form-control {
  85. border-radius: 4px; /* FIXME hardcoded value :-/ */
  86. border-top-right-radius: 0;
  87. border-bottom-right-radius: 0;
  88. }
  89. .ui-select-bootstrap > .ui-select-match > .btn{
  90. /* Instead of center because of .btn */
  91. text-align: left !important;
  92. }
  93. .ui-select-bootstrap > .ui-select-match > .caret {
  94. position: absolute;
  95. top: 45%;
  96. right: 15px;
  97. }
  98. /* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */
  99. .ui-select-bootstrap > .ui-select-choices {
  100. width: 100%;
  101. height: auto;
  102. max-height: 200px;
  103. overflow-x: hidden;
  104. margin-top: -1px;
  105. }
  106. body > .ui-select-bootstrap.open {
  107. z-index: 1000; /* Standard Bootstrap dropdown z-index */
  108. }
  109. .ui-select-multiple.ui-select-bootstrap {
  110. height: auto;
  111. padding: 3px 3px 0 3px;
  112. }
  113. .ui-select-multiple.ui-select-bootstrap input.ui-select-search {
  114. background-color: transparent !important; /* To prevent double background when disabled */
  115. border: none;
  116. outline: none;
  117. height: 1.666666em;
  118. margin-bottom: 3px;
  119. }
  120. .ui-select-multiple.ui-select-bootstrap .ui-select-match .close {
  121. font-size: 1.6em;
  122. line-height: 0.75;
  123. }
  124. .ui-select-multiple.ui-select-bootstrap .ui-select-match-item {
  125. outline: 0;
  126. margin: 0 3px 3px 0;
  127. }
  128. .ui-select-multiple .ui-select-match-item {
  129. position: relative;
  130. }
  131. .ui-select-multiple .ui-select-match-item.dropping-before:before {
  132. content: "";
  133. position: absolute;
  134. top: 0;
  135. right: 100%;
  136. height: 100%;
  137. margin-right: 2px;
  138. border-left: 1px solid #428bca;
  139. }
  140. .ui-select-multiple .ui-select-match-item.dropping-after:after {
  141. content: "";
  142. position: absolute;
  143. top: 0;
  144. left: 100%;
  145. height: 100%;
  146. margin-left: 2px;
  147. border-right: 1px solid #428bca;
  148. }
  149. .ui-select-bootstrap .ui-select-choices-row>a {
  150. display: block;
  151. padding: 3px 20px;
  152. clear: both;
  153. font-weight: 400;
  154. line-height: 1.42857143;
  155. color: #333;
  156. white-space: nowrap;
  157. }
  158. .ui-select-bootstrap .ui-select-choices-row>a:hover, .ui-select-bootstrap .ui-select-choices-row>a:focus {
  159. text-decoration: none;
  160. color: #262626;
  161. background-color: #f5f5f5;
  162. }
  163. .ui-select-bootstrap .ui-select-choices-row.active>a {
  164. color: #fff;
  165. text-decoration: none;
  166. outline: 0;
  167. background-color: #428bca;
  168. }
  169. .ui-select-bootstrap .ui-select-choices-row.disabled>a,
  170. .ui-select-bootstrap .ui-select-choices-row.active.disabled>a {
  171. color: #777;
  172. cursor: not-allowed;
  173. background-color: #fff;
  174. }
  175. /* fix hide/show angular animation */
  176. .ui-select-match.ng-hide-add,
  177. .ui-select-search.ng-hide-add {
  178. display: none !important;
  179. }
  180. /* Mark invalid Bootstrap */
  181. .ui-select-bootstrap.ng-dirty.ng-invalid > button.btn.ui-select-match {
  182. border-color: #D44950;
  183. }