select.css 8.5 KB

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