selectize.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. /**
  2. * selectize.css (v0.12.6)
  3. * Copyright (c) 2013–2015 Brian Reavis & contributors
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
  6. * file except in compliance with the License. You may obtain a copy of the License at:
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software distributed under
  10. * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
  11. * ANY KIND, either express or implied. See the License for the specific language
  12. * governing permissions and limitations under the License.
  13. *
  14. * @author Brian Reavis <brian@thirdroute.com>
  15. */
  16. .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
  17. visibility: visible !important;
  18. background: #f2f2f2 !important;
  19. background: rgba(0, 0, 0, 0.06) !important;
  20. border: 0 none !important;
  21. -webkit-box-shadow: inset 0 0 12px 4px #fff;
  22. box-shadow: inset 0 0 12px 4px #fff;
  23. }
  24. .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
  25. content: '!';
  26. visibility: hidden;
  27. }
  28. .selectize-control.plugin-drag_drop .ui-sortable-helper {
  29. -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  30. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  31. }
  32. .selectize-dropdown-header {
  33. position: relative;
  34. padding: 5px 8px;
  35. border-bottom: 1px solid #d0d0d0;
  36. background: #f8f8f8;
  37. -webkit-border-radius: 3px 3px 0 0;
  38. -moz-border-radius: 3px 3px 0 0;
  39. border-radius: 3px 3px 0 0;
  40. }
  41. .selectize-dropdown-header-close {
  42. position: absolute;
  43. right: 8px;
  44. top: 50%;
  45. color: #303030;
  46. opacity: 0.4;
  47. margin-top: -12px;
  48. line-height: 20px;
  49. font-size: 20px !important;
  50. }
  51. .selectize-dropdown-header-close:hover {
  52. color: #000000;
  53. }
  54. .selectize-dropdown.plugin-optgroup_columns .optgroup {
  55. border-right: 1px solid #f2f2f2;
  56. border-top: 0 none;
  57. float: left;
  58. -webkit-box-sizing: border-box;
  59. -moz-box-sizing: border-box;
  60. box-sizing: border-box;
  61. }
  62. .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
  63. border-right: 0 none;
  64. }
  65. .selectize-dropdown.plugin-optgroup_columns .optgroup:before {
  66. display: none;
  67. }
  68. .selectize-dropdown.plugin-optgroup_columns .optgroup-header {
  69. border-top: 0 none;
  70. }
  71. .selectize-control.plugin-remove_button [data-value] {
  72. position: relative;
  73. padding-right: 24px !important;
  74. }
  75. .selectize-control.plugin-remove_button [data-value] .remove {
  76. z-index: 1;
  77. /* fixes ie bug (see #392) */
  78. position: absolute;
  79. top: 0;
  80. right: 0;
  81. bottom: 0;
  82. width: 17px;
  83. text-align: center;
  84. font-weight: bold;
  85. font-size: 12px;
  86. color: inherit;
  87. text-decoration: none;
  88. vertical-align: middle;
  89. display: inline-block;
  90. padding: 2px 0 0 0;
  91. border-left: 1px solid #d0d0d0;
  92. -webkit-border-radius: 0 3px 3px 0;
  93. -moz-border-radius: 0 3px 3px 0;
  94. border-radius: 0 3px 3px 0;
  95. -webkit-box-sizing: border-box;
  96. -moz-box-sizing: border-box;
  97. box-sizing: border-box;
  98. }
  99. .selectize-control.plugin-remove_button [data-value] .remove:hover {
  100. background: rgba(0, 0, 0, 0.05);
  101. }
  102. .selectize-control.plugin-remove_button [data-value].active .remove {
  103. border-left-color: #cacaca;
  104. }
  105. .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
  106. background: none;
  107. }
  108. .selectize-control.plugin-remove_button .disabled [data-value] .remove {
  109. border-left-color: #ffffff;
  110. }
  111. .selectize-control.plugin-remove_button .remove-single {
  112. position: absolute;
  113. right: 0;
  114. top: 0;
  115. font-size: 23px;
  116. }
  117. .selectize-control {
  118. position: relative;
  119. }
  120. .selectize-dropdown,
  121. .selectize-input,
  122. .selectize-input input {
  123. color: #303030;
  124. font-family: inherit;
  125. font-size: 13px;
  126. line-height: 18px;
  127. -webkit-font-smoothing: inherit;
  128. }
  129. .selectize-input,
  130. .selectize-control.single .selectize-input.input-active {
  131. background: #fff;
  132. cursor: text;
  133. display: inline-block;
  134. }
  135. .selectize-input {
  136. border: 1px solid #d0d0d0;
  137. padding: 8px 8px;
  138. display: inline-block;
  139. width: 100%;
  140. overflow: hidden;
  141. overflow-y: auto;
  142. position: relative;
  143. z-index: 1;
  144. -webkit-box-sizing: border-box;
  145. -moz-box-sizing: border-box;
  146. box-sizing: border-box;
  147. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  148. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  149. -webkit-border-radius: 3px;
  150. -moz-border-radius: 3px;
  151. border-radius: 3px;
  152. text-align: left;
  153. }
  154. .selectize-control.multi .selectize-input.has-items {
  155. padding: 6px 8px 3px;
  156. }
  157. .selectize-input.full {
  158. background-color: #fff;
  159. }
  160. .selectize-input.disabled,
  161. .selectize-input.disabled * {
  162. cursor: default !important;
  163. }
  164. .selectize-input.focus {
  165. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  166. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  167. }
  168. .selectize-input.dropdown-active {
  169. -webkit-border-radius: 3px 3px 0 0;
  170. -moz-border-radius: 3px 3px 0 0;
  171. border-radius: 3px 3px 0 0;
  172. }
  173. .selectize-input > * {
  174. vertical-align: baseline;
  175. display: -moz-inline-stack;
  176. display: inline-block;
  177. zoom: 1;
  178. *display: inline;
  179. }
  180. .selectize-control.multi .selectize-input > div {
  181. cursor: pointer;
  182. margin: 0 3px 3px 0;
  183. padding: 2px 6px;
  184. background: #f2f2f2;
  185. color: #303030;
  186. border: 0 solid #d0d0d0;
  187. }
  188. .selectize-control.multi .selectize-input > div.active {
  189. background: #e8e8e8;
  190. color: #303030;
  191. border: 0 solid #cacaca;
  192. }
  193. .selectize-control.multi .selectize-input.disabled > div,
  194. .selectize-control.multi .selectize-input.disabled > div.active {
  195. color: #7d7d7d;
  196. background: #ffffff;
  197. border: 0 solid #ffffff;
  198. }
  199. .selectize-input > input {
  200. text-align: left;
  201. display: inline-block !important;
  202. padding: 0 !important;
  203. min-height: 0 !important;
  204. max-height: none !important;
  205. max-width: 100% !important;
  206. margin: 0 2px 0 0 !important;
  207. text-indent: 0 !important;
  208. border: 0 none !important;
  209. background: none !important;
  210. line-height: inherit !important;
  211. -webkit-user-select: auto !important;
  212. -webkit-box-shadow: none !important;
  213. box-shadow: none !important;
  214. }
  215. .selectize-input > input::-ms-clear {
  216. display: none;
  217. }
  218. .selectize-input > input:focus {
  219. outline: none !important;
  220. }
  221. .selectize-input::after {
  222. content: ' ';
  223. display: block;
  224. clear: left;
  225. }
  226. .selectize-input.dropdown-active::before {
  227. content: ' ';
  228. display: block;
  229. position: absolute;
  230. background: #f0f0f0;
  231. height: 1px;
  232. bottom: 0;
  233. left: 0;
  234. right: 0;
  235. }
  236. .selectize-dropdown {
  237. position: absolute;
  238. z-index: 900;
  239. border: 1px solid #d0d0d0;
  240. background: #fff;
  241. margin: -1px 0 0 0;
  242. border-top: 0 none;
  243. -webkit-box-sizing: border-box;
  244. -moz-box-sizing: border-box;
  245. box-sizing: border-box;
  246. -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  247. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  248. -webkit-border-radius: 0 0 3px 3px;
  249. -moz-border-radius: 0 0 3px 3px;
  250. border-radius: 0 0 3px 3px;
  251. }
  252. .selectize-dropdown [data-selectable] {
  253. cursor: pointer;
  254. overflow: hidden;
  255. }
  256. .selectize-dropdown [data-selectable] .highlight {
  257. background: rgba(125, 168, 208, 0.2);
  258. -webkit-border-radius: 3px;
  259. -moz-border-radius: 3px;
  260. border-radius: 3px;
  261. }
  262. .selectize-dropdown .option,
  263. .selectize-dropdown .optgroup-header {
  264. padding: 5px 8px;
  265. }
  266. .selectize-dropdown .option,
  267. .selectize-dropdown [data-disabled],
  268. .selectize-dropdown [data-disabled] [data-selectable].option {
  269. cursor: inherit;
  270. opacity: 0.5;
  271. }
  272. .selectize-dropdown [data-selectable].option {
  273. opacity: 1;
  274. }
  275. .selectize-dropdown .optgroup:first-child .optgroup-header {
  276. border-top: 0 none;
  277. }
  278. .selectize-dropdown .optgroup-header {
  279. color: #303030;
  280. background: #fff;
  281. cursor: default;
  282. }
  283. .selectize-dropdown .active {
  284. background-color: #f5fafd;
  285. color: #495c68;
  286. }
  287. .selectize-dropdown .active.create {
  288. color: #495c68;
  289. }
  290. .selectize-dropdown .create {
  291. color: rgba(48, 48, 48, 0.5);
  292. }
  293. .selectize-dropdown-content {
  294. overflow-y: auto;
  295. overflow-x: hidden;
  296. max-height: 200px;
  297. -webkit-overflow-scrolling: touch;
  298. }
  299. .selectize-control.single .selectize-input,
  300. .selectize-control.single .selectize-input input {
  301. cursor: pointer;
  302. }
  303. .selectize-control.single .selectize-input.input-active,
  304. .selectize-control.single .selectize-input.input-active input {
  305. cursor: text;
  306. }
  307. .selectize-control.single .selectize-input:after {
  308. content: ' ';
  309. display: block;
  310. position: absolute;
  311. top: 50%;
  312. right: 15px;
  313. margin-top: -3px;
  314. width: 0;
  315. height: 0;
  316. border-style: solid;
  317. border-width: 5px 5px 0 5px;
  318. border-color: #808080 transparent transparent transparent;
  319. }
  320. .selectize-control.single .selectize-input.dropdown-active:after {
  321. margin-top: -4px;
  322. border-width: 0 5px 5px 5px;
  323. border-color: transparent transparent #808080 transparent;
  324. }
  325. .selectize-control.rtl.single .selectize-input:after {
  326. left: 15px;
  327. right: auto;
  328. }
  329. .selectize-control.rtl .selectize-input > input {
  330. margin: 0 4px 0 -2px !important;
  331. }
  332. .selectize-control .selectize-input.disabled {
  333. opacity: 0.5;
  334. background-color: #fafafa;
  335. }