selectize.default.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. /**
  2. * selectize.default.css (v0.8.5) - Default Theme
  3. * Copyright (c) 2013 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. background: #f2f2f2 !important;
  18. background: rgba(0, 0, 0, 0.06) !important;
  19. border: 0 none !important;
  20. visibility: visible !important;
  21. -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
  22. box-shadow: inset 0 0 12px 4px #ffffff;
  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. background: #f8f8f8;
  36. border-bottom: 1px solid #d0d0d0;
  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. top: 50%;
  44. right: 8px;
  45. margin-top: -12px;
  46. font-size: 20px !important;
  47. line-height: 20px;
  48. color: #303030;
  49. opacity: 0.4;
  50. }
  51. .selectize-dropdown-header-close:hover {
  52. color: #000000;
  53. }
  54. .selectize-dropdown.plugin-optgroup_columns .optgroup {
  55. float: left;
  56. border-top: 0 none;
  57. border-right: 1px solid #f2f2f2;
  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. position: absolute;
  77. top: 0;
  78. right: 0;
  79. bottom: 0;
  80. display: inline-block;
  81. width: 17px;
  82. padding: 2px 0 0 0;
  83. font-size: 12px;
  84. font-weight: bold;
  85. color: inherit;
  86. text-align: center;
  87. text-decoration: none;
  88. vertical-align: middle;
  89. border-left: 1px solid #0073bb;
  90. -webkit-border-radius: 0 2px 2px 0;
  91. -moz-border-radius: 0 2px 2px 0;
  92. border-radius: 0 2px 2px 0;
  93. -webkit-box-sizing: border-box;
  94. -moz-box-sizing: border-box;
  95. box-sizing: border-box;
  96. }
  97. .selectize-control.plugin-remove_button [data-value] .remove:hover {
  98. background: rgba(0, 0, 0, 0.05);
  99. }
  100. .selectize-control.plugin-remove_button [data-value].active .remove {
  101. border-left-color: #00578d;
  102. }
  103. .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
  104. background: none;
  105. }
  106. .selectize-control.plugin-remove_button .disabled [data-value] .remove {
  107. border-left-color: #aaaaaa;
  108. }
  109. .selectize-control {
  110. position: relative;
  111. }
  112. .selectize-dropdown,
  113. .selectize-input,
  114. .selectize-input input {
  115. font-family: inherit;
  116. font-size: 13px;
  117. -webkit-font-smoothing: inherit;
  118. line-height: 18px;
  119. color: #303030;
  120. }
  121. .selectize-input,
  122. .selectize-control.single .selectize-input.input-active {
  123. display: inline-block;
  124. cursor: text;
  125. background: #ffffff;
  126. }
  127. .selectize-input {
  128. position: relative;
  129. z-index: 1;
  130. display: inline-block;
  131. width: 100%;
  132. padding: 8px 8px;
  133. overflow: hidden;
  134. border: 1px solid #d0d0d0;
  135. -webkit-border-radius: 3px;
  136. -moz-border-radius: 3px;
  137. border-radius: 3px;
  138. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  139. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  140. -webkit-box-sizing: border-box;
  141. -moz-box-sizing: border-box;
  142. box-sizing: border-box;
  143. }
  144. .selectize-control.multi .selectize-input.has-items {
  145. padding: 5px 8px 2px;
  146. }
  147. .selectize-input.full {
  148. background-color: #ffffff;
  149. }
  150. .selectize-input.disabled,
  151. .selectize-input.disabled * {
  152. cursor: default !important;
  153. }
  154. .selectize-input.focus {
  155. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  156. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  157. }
  158. .selectize-input.dropdown-active {
  159. -webkit-border-radius: 3px 3px 0 0;
  160. -moz-border-radius: 3px 3px 0 0;
  161. border-radius: 3px 3px 0 0;
  162. }
  163. .selectize-input > * {
  164. display: -moz-inline-stack;
  165. display: inline-block;
  166. *display: inline;
  167. vertical-align: baseline;
  168. zoom: 1;
  169. }
  170. .selectize-control.multi .selectize-input > div {
  171. padding: 2px 6px;
  172. margin: 0 3px 3px 0;
  173. color: #ffffff;
  174. cursor: pointer;
  175. background: #1da7ee;
  176. border: 1px solid #0073bb;
  177. }
  178. .selectize-control.multi .selectize-input > div.active {
  179. color: #ffffff;
  180. background: #92c836;
  181. border: 1px solid #00578d;
  182. }
  183. .selectize-control.multi .selectize-input.disabled > div,
  184. .selectize-control.multi .selectize-input.disabled > div.active {
  185. color: #ffffff;
  186. background: #d2d2d2;
  187. border: 1px solid #aaaaaa;
  188. }
  189. .selectize-input > input {
  190. max-width: 100% !important;
  191. max-height: none !important;
  192. min-height: 0 !important;
  193. padding: 0 !important;
  194. margin: 0 1px !important;
  195. line-height: inherit !important;
  196. text-indent: 0 !important;
  197. background: none !important;
  198. border: 0 none !important;
  199. -webkit-box-shadow: none !important;
  200. box-shadow: none !important;
  201. -webkit-user-select: auto !important;
  202. }
  203. .selectize-input > input:focus {
  204. outline: none !important;
  205. }
  206. .selectize-input::after {
  207. display: block;
  208. clear: left;
  209. content: ' ';
  210. }
  211. .selectize-input.dropdown-active::before {
  212. position: absolute;
  213. right: 0;
  214. bottom: 0;
  215. left: 0;
  216. display: block;
  217. height: 1px;
  218. background: #f0f0f0;
  219. content: ' ';
  220. }
  221. .selectize-dropdown {
  222. position: absolute;
  223. z-index: 10;
  224. margin: -1px 0 0 0;
  225. background: #ffffff;
  226. border: 1px solid #d0d0d0;
  227. border-top: 0 none;
  228. -webkit-border-radius: 0 0 3px 3px;
  229. -moz-border-radius: 0 0 3px 3px;
  230. border-radius: 0 0 3px 3px;
  231. -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  232. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  233. -webkit-box-sizing: border-box;
  234. -moz-box-sizing: border-box;
  235. box-sizing: border-box;
  236. }
  237. .selectize-dropdown [data-selectable] {
  238. overflow: hidden;
  239. cursor: pointer;
  240. }
  241. .selectize-dropdown [data-selectable] .highlight {
  242. background: rgba(125, 168, 208, 0.2);
  243. -webkit-border-radius: 1px;
  244. -moz-border-radius: 1px;
  245. border-radius: 1px;
  246. }
  247. .selectize-dropdown [data-selectable],
  248. .selectize-dropdown .optgroup-header {
  249. padding: 5px 8px;
  250. }
  251. .selectize-dropdown .optgroup:first-child .optgroup-header {
  252. border-top: 0 none;
  253. }
  254. .selectize-dropdown .optgroup-header {
  255. color: #303030;
  256. cursor: default;
  257. background: #ffffff;
  258. }
  259. .selectize-dropdown .active {
  260. color: #495c68;
  261. background-color: #f5fafd;
  262. }
  263. .selectize-dropdown .active.create {
  264. color: #495c68;
  265. }
  266. .selectize-dropdown .create {
  267. color: rgba(48, 48, 48, 0.5);
  268. }
  269. .selectize-dropdown-content {
  270. max-height: 200px;
  271. overflow-x: hidden;
  272. overflow-y: auto;
  273. }
  274. .selectize-control.single .selectize-input,
  275. .selectize-control.single .selectize-input input {
  276. cursor: pointer;
  277. }
  278. .selectize-control.single .selectize-input.input-active,
  279. .selectize-control.single .selectize-input.input-active input {
  280. cursor: text;
  281. }
  282. .selectize-control.single .selectize-input:after {
  283. position: absolute;
  284. top: 50%;
  285. right: 15px;
  286. display: block;
  287. width: 0;
  288. height: 0;
  289. margin-top: -3px;
  290. border-color: #808080 transparent transparent transparent;
  291. border-style: solid;
  292. border-width: 5px 5px 0 5px;
  293. content: ' ';
  294. }
  295. .selectize-control.single .selectize-input.dropdown-active:after {
  296. margin-top: -4px;
  297. border-color: transparent transparent #808080 transparent;
  298. border-width: 0 5px 5px 5px;
  299. }
  300. .selectize-control.rtl.single .selectize-input:after {
  301. right: auto;
  302. left: 15px;
  303. }
  304. .selectize-control.rtl .selectize-input > input {
  305. margin: 0 4px 0 -2px !important;
  306. }
  307. .selectize-control .selectize-input.disabled {
  308. background-color: #fafafa;
  309. opacity: 0.5;
  310. }
  311. .selectize-control.multi .selectize-input.has-items {
  312. padding-right: 5px;
  313. padding-left: 5px;
  314. }
  315. .selectize-control.multi .selectize-input.disabled [data-value] {
  316. color: #999;
  317. text-shadow: none;
  318. background: none;
  319. -webkit-box-shadow: none;
  320. box-shadow: none;
  321. }
  322. .selectize-control.multi .selectize-input.disabled [data-value],
  323. .selectize-control.multi .selectize-input.disabled [data-value] .remove {
  324. border-color: #e6e6e6;
  325. }
  326. .selectize-control.multi .selectize-input.disabled [data-value] .remove {
  327. background: none;
  328. }
  329. .selectize-control.multi .selectize-input [data-value] {
  330. text-shadow: 0 1px 0 rgba(0, 51, 83, 0.3);
  331. background-color: #1b9dec;
  332. background-image: -moz-linear-gradient(top, #1da7ee, #178ee9);
  333. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#1da7ee), to(#178ee9));
  334. background-image: -webkit-linear-gradient(top, #1da7ee, #178ee9);
  335. background-image: -o-linear-gradient(top, #1da7ee, #178ee9);
  336. background-image: linear-gradient(to bottom, #1da7ee, #178ee9);
  337. background-repeat: repeat-x;
  338. -webkit-border-radius: 3px;
  339. -moz-border-radius: 3px;
  340. border-radius: 3px;
  341. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1da7ee', endColorstr='#ff178ee9', GradientType=0);
  342. -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.03);
  343. box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.03);
  344. }
  345. .selectize-control.multi .selectize-input [data-value].active {
  346. background-color: #0085d4;
  347. background-image: -moz-linear-gradient(top, #008fd8, #0075cf);
  348. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#008fd8), to(#0075cf));
  349. background-image: -webkit-linear-gradient(top, #008fd8, #0075cf);
  350. background-image: -o-linear-gradient(top, #008fd8, #0075cf);
  351. background-image: linear-gradient(to bottom, #008fd8, #0075cf);
  352. background-repeat: repeat-x;
  353. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff008fd8', endColorstr='#ff0075cf', GradientType=0);
  354. }
  355. .selectize-control.single .selectize-input {
  356. background-color: #f9f9f9;
  357. background-image: -moz-linear-gradient(top, #fefefe, #f2f2f2);
  358. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fefefe), to(#f2f2f2));
  359. background-image: -webkit-linear-gradient(top, #fefefe, #f2f2f2);
  360. background-image: -o-linear-gradient(top, #fefefe, #f2f2f2);
  361. background-image: linear-gradient(to bottom, #fefefe, #f2f2f2);
  362. background-repeat: repeat-x;
  363. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffefefe', endColorstr='#fff2f2f2', GradientType=0);
  364. -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  365. box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  366. }
  367. .selectize-control.single .selectize-input,
  368. .selectize-dropdown.single {
  369. border-color: #b8b8b8;
  370. }
  371. .selectize-dropdown .optgroup-header {
  372. padding-top: 7px;
  373. font-size: 0.85em;
  374. font-weight: bold;
  375. }
  376. .selectize-dropdown .optgroup {
  377. border-top: 1px solid #f0f0f0;
  378. }
  379. .selectize-dropdown .optgroup:first-child {
  380. border-top: 0 none;
  381. }