select.css 8.5 KB

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