select.css 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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: inset 0 1px 1px rgba(0, 0, 0, 0.075),
  133. 0 0 8px rgba(102, 175, 233, 0.6);
  134. }
  135. .ui-select-bootstrap .ui-select-toggle {
  136. position: relative;
  137. }
  138. .ui-select-bootstrap .ui-select-toggle > .caret {
  139. position: absolute;
  140. height: 10px;
  141. top: 50%;
  142. right: 10px;
  143. margin-top: -2px;
  144. }
  145. /* Fix Bootstrap dropdown position when inside a input-group */
  146. .input-group > .ui-select-bootstrap.dropdown {
  147. /* Instead of relative */
  148. position: static;
  149. }
  150. .input-group > .ui-select-bootstrap > input.ui-select-search.form-control {
  151. border-radius: 4px; /* FIXME hardcoded value :-/ */
  152. border-top-right-radius: 0;
  153. border-bottom-right-radius: 0;
  154. }
  155. .input-group
  156. > .ui-select-bootstrap
  157. > input.ui-select-search.form-control.direction-up {
  158. border-radius: 4px !important; /* FIXME hardcoded value :-/ */
  159. border-top-right-radius: 0 !important;
  160. border-bottom-right-radius: 0 !important;
  161. }
  162. .ui-select-bootstrap .ui-select-search-hidden {
  163. opacity: 0;
  164. height: 0;
  165. min-height: 0;
  166. padding: 0;
  167. margin: 0;
  168. border: 0;
  169. }
  170. .ui-select-bootstrap > .ui-select-match > .btn {
  171. /* Instead of center because of .btn */
  172. text-align: left !important;
  173. }
  174. .ui-select-bootstrap > .ui-select-match > .caret {
  175. position: absolute;
  176. top: 45%;
  177. right: 15px;
  178. }
  179. /* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */
  180. .ui-select-bootstrap > .ui-select-choices,
  181. .ui-select-bootstrap > .ui-select-no-choice {
  182. width: 100%;
  183. height: auto;
  184. max-height: 200px;
  185. overflow-x: hidden;
  186. margin-top: -1px;
  187. }
  188. body > .ui-select-bootstrap.open {
  189. z-index: 1000; /* Standard Bootstrap dropdown z-index */
  190. }
  191. .ui-select-multiple.ui-select-bootstrap {
  192. height: auto;
  193. padding: 3px 3px 0 3px;
  194. }
  195. .ui-select-multiple.ui-select-bootstrap input.ui-select-search {
  196. background-color: transparent !important; /* To prevent double background when disabled */
  197. border: none;
  198. outline: none;
  199. height: 1.666666em;
  200. margin-bottom: 3px;
  201. }
  202. .ui-select-multiple.ui-select-bootstrap .ui-select-match .close {
  203. font-size: 1.6em;
  204. line-height: 0.75;
  205. }
  206. .ui-select-multiple.ui-select-bootstrap .ui-select-match-item {
  207. outline: 0;
  208. margin: 0 3px 3px 0;
  209. }
  210. .ui-select-multiple .ui-select-match-item {
  211. position: relative;
  212. }
  213. .ui-select-multiple .ui-select-match-item.dropping .ui-select-match-close {
  214. pointer-events: none;
  215. }
  216. .ui-select-multiple:hover .ui-select-match-item.dropping-before:before {
  217. content: '';
  218. position: absolute;
  219. top: 0;
  220. right: 100%;
  221. height: 100%;
  222. margin-right: 2px;
  223. border-left: 1px solid #428bca;
  224. }
  225. .ui-select-multiple:hover .ui-select-match-item.dropping-after:after {
  226. content: '';
  227. position: absolute;
  228. top: 0;
  229. left: 100%;
  230. height: 100%;
  231. margin-left: 2px;
  232. border-right: 1px solid #428bca;
  233. }
  234. .ui-select-bootstrap .ui-select-choices-row > span {
  235. cursor: pointer;
  236. display: block;
  237. padding: 3px 20px;
  238. clear: both;
  239. font-weight: 400;
  240. line-height: 1.42857143;
  241. color: #333;
  242. white-space: nowrap;
  243. }
  244. .ui-select-title {
  245. padding: 3px 20px;
  246. font-size: 14px;
  247. }
  248. .ui-select-bootstrap .ui-select-choices-row > span:hover,
  249. .ui-select-bootstrap .ui-select-choices-row > span:focus {
  250. text-decoration: none;
  251. color: #262626;
  252. background-color: #f5f5f5;
  253. }
  254. .ui-select-bootstrap .ui-select-choices-row.active > span {
  255. color: #fff;
  256. text-decoration: none;
  257. outline: 0;
  258. background-color: #428bca;
  259. }
  260. .ui-select-bootstrap .ui-select-choices-row.disabled > span,
  261. .ui-select-bootstrap .ui-select-choices-row.active.disabled > span {
  262. color: #777;
  263. cursor: not-allowed;
  264. background-color: #fff;
  265. }
  266. /* fix hide/show angular animation */
  267. .ui-select-match.ng-hide-add,
  268. .ui-select-search.ng-hide-add {
  269. display: none !important;
  270. }
  271. /* Mark invalid Bootstrap */
  272. .ui-select-bootstrap.ng-dirty.ng-invalid > button.btn.ui-select-match {
  273. border-color: #d44950;
  274. }
  275. /* Handle up direction Bootstrap */
  276. .ui-select-container[theme='bootstrap'].direction-up .ui-select-dropdown {
  277. box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
  278. }
  279. .ui-select-bootstrap .ui-select-match-text {
  280. width: 100%;
  281. padding-right: 1em;
  282. }
  283. .ui-select-bootstrap .ui-select-match-text span {
  284. display: inline-block;
  285. width: 100%;
  286. overflow: hidden;
  287. }
  288. .ui-select-bootstrap .ui-select-toggle > a.btn {
  289. position: absolute;
  290. height: 10px;
  291. right: 10px;
  292. margin-top: -2px;
  293. }
  294. /* Spinner */
  295. .ui-select-refreshing.glyphicon {
  296. position: absolute;
  297. right: 0;
  298. padding: 8px 27px;
  299. }
  300. @-webkit-keyframes ui-select-spin {
  301. 0% {
  302. -webkit-transform: rotate(0deg);
  303. transform: rotate(0deg);
  304. }
  305. 100% {
  306. -webkit-transform: rotate(359deg);
  307. transform: rotate(359deg);
  308. }
  309. }
  310. @keyframes ui-select-spin {
  311. 0% {
  312. -webkit-transform: rotate(0deg);
  313. transform: rotate(0deg);
  314. }
  315. 100% {
  316. -webkit-transform: rotate(359deg);
  317. transform: rotate(359deg);
  318. }
  319. }
  320. .ui-select-spin {
  321. -webkit-animation: ui-select-spin 2s infinite linear;
  322. animation: ui-select-spin 2s infinite linear;
  323. }
  324. .ui-select-refreshing.ng-animate {
  325. -webkit-animation: none 0s;
  326. }