widget-select.css 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. .Select {
  2. position: relative;
  3. }
  4. .Select,
  5. .Select div,
  6. .Select input,
  7. .Select span {
  8. -webkit-box-sizing: border-box;
  9. -moz-box-sizing: border-box;
  10. box-sizing: border-box;
  11. }
  12. .Select.is-disabled > .Select-control {
  13. background-color: #f6f6f6;
  14. }
  15. .Select.is-disabled .Select-arrow-zone {
  16. cursor: default;
  17. pointer-events: none;
  18. }
  19. .Select-control {
  20. background-color: #fff;
  21. border-color: #d9d9d9 #ccc #b3b3b3;
  22. border-radius: 4px;
  23. border: 1px solid #ccc;
  24. color: #333;
  25. cursor: default;
  26. display: table;
  27. height: 34px;
  28. outline: none;
  29. overflow: hidden;
  30. position: relative;
  31. width: 100%;
  32. }
  33. .Select-control:hover {
  34. box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  35. }
  36. .is-searchable.is-open > .Select-control {
  37. cursor: text;
  38. }
  39. .is-open > .Select-control {
  40. border-bottom-right-radius: 0;
  41. border-bottom-left-radius: 0;
  42. background: #fff;
  43. border-color: #b3b3b3 #ccc #d9d9d9;
  44. }
  45. .is-open > .Select-control > .Select-arrow {
  46. border-color: transparent transparent #999;
  47. border-width: 0 5px 5px;
  48. }
  49. .is-searchable.is-focused:not(.is-open) > .Select-control {
  50. cursor: text;
  51. }
  52. .is-focused:not(.is-open) > .Select-control {
  53. border-color: #66afe9 #66afe9 #66afe9;
  54. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 5px -1px rgba(0, 126, 255, 0.5);
  55. }
  56. .Select-placeholder {
  57. bottom: 0;
  58. color: #aaa;
  59. left: 0;
  60. line-height: 32px;
  61. padding-left: 10px;
  62. padding-right: 10px;
  63. position: absolute;
  64. right: 0;
  65. top: 0;
  66. max-width: 100%;
  67. overflow: hidden;
  68. text-overflow: ellipsis;
  69. white-space: nowrap;
  70. }
  71. .has-value > .Select-control > .Select-placeholder {
  72. color: #333;
  73. }
  74. .Select-value {
  75. color: #aaa;
  76. left: 0;
  77. padding: 8px 52px 8px 10px;
  78. position: absolute;
  79. right: -15px;
  80. top: 0;
  81. max-width: 100%;
  82. overflow: hidden;
  83. text-overflow: ellipsis;
  84. white-space: nowrap;
  85. }
  86. .has-value > .Select-control > .Select-value {
  87. color: #333;
  88. }
  89. .Select-input {
  90. height: 32px;
  91. padding-left: 10px;
  92. padding-right: 10px;
  93. vertical-align: middle;
  94. }
  95. .Select-input > input {
  96. background: none transparent;
  97. border: 0 none;
  98. box-shadow: none;
  99. cursor: default;
  100. display: inline-block;
  101. font-family: inherit;
  102. font-size: inherit;
  103. height: 32px;
  104. margin: 0;
  105. outline: none;
  106. padding: 0;
  107. -webkit-appearance: none;
  108. }
  109. .is-focused .Select-input > input {
  110. cursor: text;
  111. }
  112. .Select-control:not(.is-searchable) > .Select-input {
  113. outline: none;
  114. }
  115. .Select-loading-zone {
  116. cursor: pointer;
  117. display: table-cell;
  118. position: relative;
  119. text-align: center;
  120. vertical-align: middle;
  121. width: 16px;
  122. }
  123. .Select-loading {
  124. -webkit-animation: Select-animation-spin 400ms infinite linear;
  125. -o-animation: Select-animation-spin 400ms infinite linear;
  126. animation: Select-animation-spin 400ms infinite linear;
  127. width: 16px;
  128. height: 16px;
  129. box-sizing: border-box;
  130. border-radius: 50%;
  131. border: 2px solid #ccc;
  132. border-right-color: #333;
  133. display: inline-block;
  134. position: relative;
  135. vertical-align: middle;
  136. }
  137. .Select-clear-zone {
  138. -webkit-animation: Select-animation-fadeIn 200ms;
  139. -o-animation: Select-animation-fadeIn 200ms;
  140. animation: Select-animation-fadeIn 200ms;
  141. color: #999;
  142. cursor: pointer;
  143. display: table-cell;
  144. position: relative;
  145. text-align: center;
  146. vertical-align: middle;
  147. width: 17px;
  148. }
  149. .Select-clear-zone:hover {
  150. color: #D0021B;
  151. }
  152. .Select-clear {
  153. display: inline-block;
  154. font-size: 18px;
  155. line-height: 1;
  156. }
  157. .Select--multi .Select-clear-zone {
  158. width: 17px;
  159. }
  160. .Select-arrow-zone {
  161. cursor: pointer;
  162. display: table-cell;
  163. position: relative;
  164. text-align: center;
  165. vertical-align: middle;
  166. width: 25px;
  167. padding-right: 5px;
  168. }
  169. .Select-arrow {
  170. border-color: #999 transparent transparent;
  171. border-style: solid;
  172. border-width: 5px 5px 2.5px;
  173. display: inline-block;
  174. height: 0;
  175. width: 0;
  176. }
  177. .is-open .Select-arrow,
  178. .Select-arrow-zone:hover > .Select-arrow {
  179. border-top-color: #666;
  180. }
  181. @-webkit-keyframes Select-animation-fadeIn {
  182. from {
  183. opacity: 0;
  184. }
  185. to {
  186. opacity: 1;
  187. }
  188. }
  189. @keyframes Select-animation-fadeIn {
  190. from {
  191. opacity: 0;
  192. }
  193. to {
  194. opacity: 1;
  195. }
  196. }
  197. .Select-menu-outer {
  198. border-bottom-right-radius: 4px;
  199. border-bottom-left-radius: 4px;
  200. background-color: #fff;
  201. border: 1px solid #ccc;
  202. border-top-color: #e6e6e6;
  203. box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  204. box-sizing: border-box;
  205. margin-top: -1px;
  206. max-height: 200px;
  207. position: absolute;
  208. top: 100%;
  209. width: 100%;
  210. z-index: 1000;
  211. -webkit-overflow-scrolling: touch;
  212. }
  213. .Select-menu {
  214. max-height: 198px;
  215. overflow-y: auto;
  216. }
  217. .Select-option {
  218. box-sizing: border-box;
  219. color: #666666;
  220. cursor: pointer;
  221. display: block;
  222. padding: 8px 10px;
  223. }
  224. .Select-option:last-child {
  225. border-bottom-right-radius: 4px;
  226. border-bottom-left-radius: 4px;
  227. }
  228. .Select-option.is-focused {
  229. background-color: rgba(0, 126, 255, 0.08);
  230. color: #333;
  231. }
  232. .Select-option.is-disabled {
  233. color: #cccccc;
  234. cursor: not-allowed;
  235. }
  236. .Select-noresults,
  237. .Select-search-prompt,
  238. .Select-searching {
  239. box-sizing: border-box;
  240. color: #999999;
  241. cursor: default;
  242. display: block;
  243. padding: 8px 10px;
  244. }
  245. .Select--multi .Select-input {
  246. vertical-align: middle;
  247. margin-left: 10px;
  248. padding: 0;
  249. }
  250. .Select--multi.has-value .Select-input {
  251. margin-left: 5px;
  252. }
  253. .Select-item {
  254. background-color: rgba(0, 126, 255, 0.08);
  255. border-radius: 2px;
  256. border: 1px solid rgba(0, 126, 255, 0.24);
  257. color: #66afe9;
  258. display: inline-block;
  259. font-size: 0.9em;
  260. margin-left: 5px;
  261. margin-top: 5px;
  262. vertical-align: top;
  263. }
  264. .Select-item-icon,
  265. .Select-item-label {
  266. display: inline-block;
  267. vertical-align: middle;
  268. }
  269. .Select-item-label {
  270. border-bottom-right-radius: 2px;
  271. border-top-right-radius: 2px;
  272. cursor: default;
  273. padding: 2px 5px;
  274. }
  275. .Select-item-label .Select-item-label__a {
  276. color: #66afe9;
  277. cursor: pointer;
  278. }
  279. .Select-item-icon {
  280. cursor: pointer;
  281. border-bottom-left-radius: 2px;
  282. border-top-left-radius: 2px;
  283. border-right: 1px solid rgba(0, 126, 255, 0.24);
  284. padding: 1px 5px 3px;
  285. }
  286. .Select-item-icon:hover,
  287. .Select-item-icon:focus {
  288. background-color: rgba(0, 113, 230, 0.08);
  289. color: #0071e6;
  290. }
  291. .Select-item-icon:active {
  292. background-color: rgba(0, 126, 255, 0.24);
  293. }
  294. .Select--multi.is-disabled .Select-item {
  295. background-color: #f2f2f2;
  296. border: 1px solid #d9d9d9;
  297. color: #888;
  298. }
  299. .Select--multi.is-disabled .Select-item-icon {
  300. cursor: not-allowed;
  301. border-right: 1px solid #d9d9d9;
  302. }
  303. .Select--multi.is-disabled .Select-item-icon:hover,
  304. .Select--multi.is-disabled .Select-item-icon:focus,
  305. .Select--multi.is-disabled .Select-item-icon:active {
  306. background-color: #f2f2f2;
  307. }
  308. @keyframes Select-animation-spin {
  309. to {
  310. transform: rotate(1turn);
  311. }
  312. }
  313. @-webkit-keyframes Select-animation-spin {
  314. to {
  315. -webkit-transform: rotate(1turn);
  316. }
  317. }