select.css 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. /*!
  2. * ui-select
  3. * http://github.com/angular-ui/ui-select
  4. * Version: 0.19.7 - 2017-04-15T14:28:36.790Z
  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. .ui-select-choices-row:hover,
  25. .ui-select-choices-row--highlighted {
  26. background-color: #f5f5f5;
  27. }
  28. /* Select2 theme */
  29. /* Mark invalid Select2 */
  30. .ng-dirty.ng-invalid > a.select2-choice {
  31. border-color: #D44950;
  32. }
  33. .select2-result-single {
  34. padding-left: 0;
  35. }
  36. .select2-locked > .select2-search-choice-close {
  37. display: none;
  38. }
  39. .select-locked > .ui-select-match-close {
  40. display: none;
  41. }
  42. body > .select2-container.open {
  43. z-index: 9999; /* The z-index Select2 applies to the select2-drop */
  44. }
  45. /* Handle up direction Select2 */
  46. .ui-select-container[theme="select2"].direction-up .ui-select-match,
  47. .ui-select-container.select2.direction-up .ui-select-match {
  48. border-radius: 4px; /* FIXME hardcoded value :-/ */
  49. border-top-left-radius: 0;
  50. border-top-right-radius: 0;
  51. }
  52. .ui-select-container[theme="select2"].direction-up .ui-select-dropdown,
  53. .ui-select-container.select2.direction-up .ui-select-dropdown {
  54. border-radius: 4px; /* FIXME hardcoded value :-/ */
  55. border-bottom-left-radius: 0;
  56. border-bottom-right-radius: 0;
  57. border-top-width: 1px; /* FIXME hardcoded value :-/ */
  58. border-top-style: solid;
  59. box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
  60. margin-top: -4px; /* FIXME hardcoded value :-/ */
  61. }
  62. .ui-select-container[theme="select2"].direction-up .ui-select-dropdown .select2-search,
  63. .ui-select-container.select2.direction-up .ui-select-dropdown .select2-search {
  64. margin-top: 4px; /* FIXME hardcoded value :-/ */
  65. }
  66. .ui-select-container[theme="select2"].direction-up.select2-dropdown-open .ui-select-match,
  67. .ui-select-container.select2.direction-up.select2-dropdown-open .ui-select-match {
  68. border-bottom-color: #5897fb;
  69. }
  70. .ui-select-container[theme="select2"] .ui-select-dropdown .ui-select-search-hidden,
  71. .ui-select-container[theme="select2"] .ui-select-dropdown .ui-select-search-hidden input {
  72. opacity: 0;
  73. height: 0;
  74. min-height: 0;
  75. padding: 0;
  76. margin: 0;
  77. border: 0;
  78. }
  79. /* Selectize theme */
  80. /* Helper class to show styles when focus */
  81. .selectize-input.selectize-focus {
  82. border-color: #007FBB !important;
  83. }
  84. /* Fix input width for Selectize theme */
  85. .selectize-control.single > .selectize-input > input {
  86. width: 100%;
  87. }
  88. /* Fix line break when there's at least one item selected with the Selectize theme */
  89. .selectize-control.multi > .selectize-input > input {
  90. margin: 0 !important;
  91. }
  92. /* Fix dropdown width for Selectize theme */
  93. .selectize-control > .selectize-dropdown {
  94. width: 100%;
  95. }
  96. /* Mark invalid Selectize */
  97. .ng-dirty.ng-invalid > div.selectize-input {
  98. border-color: #D44950;
  99. }
  100. /* Handle up direction Selectize */
  101. .ui-select-container[theme="selectize"].direction-up .ui-select-dropdown {
  102. box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
  103. margin-top: -2px; /* FIXME hardcoded value :-/ */
  104. }
  105. .ui-select-container[theme="selectize"] input.ui-select-search-hidden {
  106. opacity: 0;
  107. height: 0;
  108. min-height: 0;
  109. padding: 0;
  110. margin: 0;
  111. border: 0;
  112. width: 0;
  113. }
  114. /* Bootstrap theme */
  115. /* Helper class to show styles when focus */
  116. .btn-default-focus {
  117. color: #333;
  118. background-color: #EBEBEB;
  119. border-color: #ADADAD;
  120. text-decoration: none;
  121. outline: 5px auto -webkit-focus-ring-color;
  122. outline-offset: -2px;
  123. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  124. }
  125. .ui-select-bootstrap .ui-select-toggle {
  126. position: relative;
  127. }
  128. .ui-select-bootstrap .ui-select-toggle > .caret {
  129. position: absolute;
  130. height: 10px;
  131. top: 50%;
  132. right: 10px;
  133. margin-top: -2px;
  134. }
  135. /* Fix Bootstrap dropdown position when inside a input-group */
  136. .input-group > .ui-select-bootstrap.dropdown {
  137. /* Instead of relative */
  138. position: static;
  139. }
  140. .input-group > .ui-select-bootstrap > input.ui-select-search.form-control {
  141. border-radius: 4px; /* FIXME hardcoded value :-/ */
  142. border-top-right-radius: 0;
  143. border-bottom-right-radius: 0;
  144. }
  145. .input-group > .ui-select-bootstrap > input.ui-select-search.form-control.direction-up {
  146. border-radius: 4px !important; /* FIXME hardcoded value :-/ */
  147. border-top-right-radius: 0 !important;
  148. border-bottom-right-radius: 0 !important;
  149. }
  150. .ui-select-bootstrap .ui-select-search-hidden {
  151. opacity: 0;
  152. height: 0;
  153. min-height: 0;
  154. padding: 0;
  155. margin: 0;
  156. border: 0;
  157. }
  158. .ui-select-bootstrap > .ui-select-match > .btn {
  159. /* Instead of center because of .btn */
  160. text-align: left !important;
  161. }
  162. .ui-select-bootstrap > .ui-select-match > .caret {
  163. position: absolute;
  164. top: 45%;
  165. right: 15px;
  166. }
  167. /* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */
  168. .ui-select-bootstrap > .ui-select-choices, .ui-select-bootstrap > .ui-select-no-choice {
  169. width: 100%;
  170. height: auto;
  171. max-height: 200px;
  172. overflow-x: hidden;
  173. margin-top: -1px;
  174. }
  175. body > .ui-select-bootstrap.open {
  176. z-index: 1000; /* Standard Bootstrap dropdown z-index */
  177. }
  178. .ui-select-multiple.ui-select-bootstrap {
  179. height: auto;
  180. padding: 3px 3px 0 3px;
  181. }
  182. .ui-select-multiple.ui-select-bootstrap input.ui-select-search {
  183. background-color: transparent !important; /* To prevent double background when disabled */
  184. border: none;
  185. outline: none;
  186. height: 1.666666em;
  187. margin-bottom: 3px;
  188. }
  189. .ui-select-multiple.ui-select-bootstrap .ui-select-match .close {
  190. font-size: 1.6em;
  191. line-height: 0.75;
  192. }
  193. .ui-select-multiple.ui-select-bootstrap .ui-select-match-item {
  194. outline: 0;
  195. margin: 0 3px 3px 0;
  196. }
  197. .ui-select-multiple .ui-select-match-item {
  198. position: relative;
  199. }
  200. .ui-select-multiple .ui-select-match-item.dropping .ui-select-match-close {
  201. pointer-events: none;
  202. }
  203. .ui-select-multiple:hover .ui-select-match-item.dropping-before:before {
  204. content: "";
  205. position: absolute;
  206. top: 0;
  207. right: 100%;
  208. height: 100%;
  209. margin-right: 2px;
  210. border-left: 1px solid #428bca;
  211. }
  212. .ui-select-multiple:hover .ui-select-match-item.dropping-after:after {
  213. content: "";
  214. position: absolute;
  215. top: 0;
  216. left: 100%;
  217. height: 100%;
  218. margin-left: 2px;
  219. border-right: 1px solid #428bca;
  220. }
  221. .ui-select-bootstrap .ui-select-choices-row > span {
  222. cursor: pointer;
  223. display: block;
  224. padding: 3px 20px;
  225. clear: both;
  226. font-weight: 400;
  227. line-height: 1.42857143;
  228. color: #333;
  229. white-space: nowrap;
  230. }
  231. .ui-select-bootstrap .ui-select-choices-row > span:hover, .ui-select-bootstrap .ui-select-choices-row > span:focus {
  232. text-decoration: none;
  233. color: #262626;
  234. background-color: #f5f5f5;
  235. }
  236. .ui-select-bootstrap .ui-select-choices-row.active > span {
  237. color: #fff;
  238. text-decoration: none;
  239. outline: 0;
  240. background-color: #428bca;
  241. }
  242. .ui-select-bootstrap .ui-select-choices-row.disabled > span,
  243. .ui-select-bootstrap .ui-select-choices-row.active.disabled > span {
  244. color: #777;
  245. cursor: not-allowed;
  246. background-color: #fff;
  247. }
  248. /* fix hide/show angular animation */
  249. .ui-select-match.ng-hide-add,
  250. .ui-select-search.ng-hide-add {
  251. display: none !important;
  252. }
  253. /* Mark invalid Bootstrap */
  254. .ui-select-bootstrap.ng-dirty.ng-invalid > button.btn.ui-select-match {
  255. border-color: #D44950;
  256. }
  257. /* Handle up direction Bootstrap */
  258. .ui-select-container[theme="bootstrap"].direction-up .ui-select-dropdown {
  259. box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
  260. }
  261. .ui-select-bootstrap .ui-select-match-text {
  262. width: 100%;
  263. padding-right: 1em;
  264. }
  265. .ui-select-bootstrap .ui-select-match-text span {
  266. display: inline-block;
  267. width: 100%;
  268. overflow: hidden;
  269. }
  270. .ui-select-bootstrap .ui-select-toggle > a.btn {
  271. position: absolute;
  272. height: 10px;
  273. right: 10px;
  274. margin-top: -2px;
  275. }
  276. /* Spinner */
  277. .ui-select-refreshing.glyphicon {
  278. position: absolute;
  279. right: 0;
  280. padding: 8px 27px;
  281. }
  282. @-webkit-keyframes ui-select-spin {
  283. 0% {
  284. -webkit-transform: rotate(0deg);
  285. transform: rotate(0deg);
  286. }
  287. 100% {
  288. -webkit-transform: rotate(359deg);
  289. transform: rotate(359deg);
  290. }
  291. }
  292. @keyframes ui-select-spin {
  293. 0% {
  294. -webkit-transform: rotate(0deg);
  295. transform: rotate(0deg);
  296. }
  297. 100% {
  298. -webkit-transform: rotate(359deg);
  299. transform: rotate(359deg);
  300. }
  301. }
  302. .ui-select-spin {
  303. -webkit-animation: ui-select-spin 2s infinite linear;
  304. animation: ui-select-spin 2s infinite linear;
  305. }
  306. .ui-select-refreshing.ng-animate {
  307. -webkit-animation: none 0s;
  308. }