You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

316 lines
8.0 KiB

  1. /**
  2. * selectize.bootstrap3.css (v@@version) - Bootstrap 3 Theme
  3. * Copyright (c) 20132015 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 {
  17. position: relative;
  18. }
  19. .selectize-dropdown,
  20. .selectize-input,
  21. .selectize-input input {
  22. color: #333333;
  23. font-family: inherit;
  24. font-size: inherit;
  25. line-height: 20px;
  26. -webkit-font-smoothing: inherit;
  27. }
  28. .selectize-input,
  29. .selectize-control.single .selectize-input.input-active {
  30. background: #ffffff;
  31. cursor: text;
  32. display: inline-block;
  33. }
  34. .selectize-input {
  35. border: 1px solid #cccccc;
  36. padding: 6px 12px;
  37. display: inline-block;
  38. width: 100%;
  39. overflow: hidden;
  40. position: relative;
  41. z-index: 1;
  42. -webkit-box-sizing: border-box;
  43. -moz-box-sizing: border-box;
  44. box-sizing: border-box;
  45. -webkit-box-shadow: none;
  46. box-shadow: none;
  47. -webkit-border-radius: 2px;
  48. -moz-border-radius: 2px;
  49. border-radius: 2px;
  50. }
  51. .selectize-control.multi .selectize-input.has-items {
  52. padding: 4px 12px 1px;
  53. }
  54. .selectize-input.full {
  55. background-color: #ffffff;
  56. }
  57. .selectize-input.disabled,
  58. .selectize-input.disabled * {
  59. cursor: default !important;
  60. }
  61. .selectize-input.focus {
  62. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  63. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  64. }
  65. .selectize-input.dropdown-active {
  66. -webkit-border-radius: 2px 2px 0 0;
  67. -moz-border-radius: 2px 2px 0 0;
  68. border-radius: 2px 2px 0 0;
  69. }
  70. .selectize-input > * {
  71. vertical-align: baseline;
  72. display: -moz-inline-stack;
  73. display: inline-block;
  74. zoom: 1;
  75. *display: inline;
  76. }
  77. .selectize-control.multi .selectize-input > div {
  78. cursor: pointer;
  79. margin: 0 3px 3px 0;
  80. padding: 2px 6px;
  81. background: #efefef;
  82. color: #333333;
  83. border: 0 solid rgba(0, 0, 0, 0);
  84. }
  85. .selectize-control.multi .selectize-input > div.active {
  86. background: #22bc66;
  87. color: #ffffff;
  88. border: 0 solid rgba(0, 0, 0, 0);
  89. }
  90. .selectize-control.multi .selectize-input.disabled > div,
  91. .selectize-control.multi .selectize-input.disabled > div.active {
  92. color: #808080;
  93. background: #ffffff;
  94. border: 0 solid rgba(77, 77, 77, 0);
  95. }
  96. .selectize-input > input {
  97. display: inline-block !important;
  98. padding: 0 !important;
  99. min-height: 0 !important;
  100. max-height: none !important;
  101. max-width: 100% !important;
  102. margin: 0 !important;
  103. text-indent: 0 !important;
  104. border: 0 none !important;
  105. background: none !important;
  106. line-height: inherit !important;
  107. -webkit-user-select: auto !important;
  108. -webkit-box-shadow: none !important;
  109. box-shadow: none !important;
  110. }
  111. .selectize-input > input::-ms-clear {
  112. display: none;
  113. }
  114. .selectize-input > input:focus {
  115. outline: none !important;
  116. }
  117. .selectize-input::after {
  118. content: ' ';
  119. display: block;
  120. clear: left;
  121. }
  122. .selectize-input.dropdown-active::before {
  123. content: ' ';
  124. display: block;
  125. position: absolute;
  126. background: #ffffff;
  127. height: 1px;
  128. bottom: 0;
  129. left: 0;
  130. right: 0;
  131. }
  132. .selectize-dropdown {
  133. position: absolute;
  134. z-index: 10;
  135. border: 1px solid #d0d0d0;
  136. background: #ffffff;
  137. margin: -1px 0 0 0;
  138. border-top: 0 none;
  139. -webkit-box-sizing: border-box;
  140. -moz-box-sizing: border-box;
  141. box-sizing: border-box;
  142. -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  143. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  144. -webkit-border-radius: 0 0 2px 2px;
  145. -moz-border-radius: 0 0 2px 2px;
  146. border-radius: 0 0 2px 2px;
  147. }
  148. .selectize-dropdown [data-selectable] {
  149. cursor: pointer;
  150. overflow: hidden;
  151. }
  152. .selectize-dropdown [data-selectable] .highlight {
  153. background: rgba(255, 237, 40, 0.4);
  154. -webkit-border-radius: 1px;
  155. -moz-border-radius: 1px;
  156. border-radius: 1px;
  157. }
  158. .selectize-dropdown .option,
  159. .selectize-dropdown .optgroup-header {
  160. padding: 3px 12px;
  161. }
  162. .selectize-dropdown .option,
  163. .selectize-dropdown [data-disabled],
  164. .selectize-dropdown [data-disabled] [data-selectable].option {
  165. cursor: inherit;
  166. opacity: 0.5;
  167. }
  168. .selectize-dropdown [data-selectable].option {
  169. opacity: 1;
  170. }
  171. .selectize-dropdown .optgroup:first-child .optgroup-header {
  172. border-top: 0 none;
  173. }
  174. .selectize-dropdown .optgroup-header {
  175. color: #777777;
  176. background: #ffffff;
  177. cursor: default;
  178. }
  179. .selectize-dropdown .active {
  180. background-color: #f5f5f5;
  181. color: #262626;
  182. }
  183. .selectize-dropdown .active.create {
  184. color: #262626;
  185. }
  186. .selectize-dropdown .create {
  187. color: rgba(51, 51, 51, 0.5);
  188. }
  189. .selectize-dropdown-content {
  190. overflow-y: auto;
  191. overflow-x: hidden;
  192. max-height: 200px;
  193. -webkit-overflow-scrolling: touch;
  194. }
  195. .selectize-control.single .selectize-input,
  196. .selectize-control.single .selectize-input input {
  197. cursor: pointer;
  198. }
  199. .selectize-control.single .selectize-input.input-active,
  200. .selectize-control.single .selectize-input.input-active input {
  201. cursor: text;
  202. }
  203. .selectize-control.single .selectize-input:after {
  204. content: ' ';
  205. display: block;
  206. position: absolute;
  207. top: 50%;
  208. right: 17px;
  209. margin-top: -3px;
  210. width: 0;
  211. height: 0;
  212. border-style: solid;
  213. border-width: 5px 5px 0 5px;
  214. border-color: #333333 transparent transparent transparent;
  215. }
  216. .selectize-control.single .selectize-input.dropdown-active:after {
  217. margin-top: -4px;
  218. border-width: 0 5px 5px 5px;
  219. border-color: transparent transparent #333333 transparent;
  220. }
  221. .selectize-control.rtl.single .selectize-input:after {
  222. left: 17px;
  223. right: auto;
  224. }
  225. .selectize-control.rtl .selectize-input > input {
  226. margin: 0 4px 0 -2px !important;
  227. }
  228. .selectize-control .selectize-input.disabled {
  229. opacity: 0.5;
  230. background-color: #ffffff;
  231. }
  232. .selectize-dropdown,
  233. .selectize-dropdown.form-control {
  234. height: auto;
  235. padding: 0;
  236. margin: 2px 0 0 0;
  237. z-index: 1000;
  238. background: #ffffff;
  239. border: 1px solid #cccccc;
  240. border: 1px solid rgba(0, 0, 0, 0.15);
  241. -webkit-border-radius: 2px;
  242. -moz-border-radius: 2px;
  243. border-radius: 2px;
  244. -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  245. box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  246. }
  247. .selectize-dropdown .optgroup-header {
  248. font-size: 12px;
  249. line-height: 1.42857143;
  250. }
  251. .selectize-dropdown .optgroup:first-child:before {
  252. display: none;
  253. }
  254. .selectize-dropdown .optgroup:before {
  255. content: ' ';
  256. display: block;
  257. height: 1px;
  258. margin: 9px 0;
  259. overflow: hidden;
  260. background-color: #e5e5e5;
  261. margin-left: -12px;
  262. margin-right: -12px;
  263. }
  264. .selectize-dropdown-content {
  265. padding: 5px 0;
  266. }
  267. .selectize-dropdown-header {
  268. padding: 6px 12px;
  269. }
  270. .selectize-input {
  271. min-height: 34px;
  272. }
  273. .selectize-input.dropdown-active {
  274. -webkit-border-radius: 2px;
  275. -moz-border-radius: 2px;
  276. border-radius: 2px;
  277. }
  278. .selectize-input.dropdown-active::before {
  279. display: none;
  280. }
  281. .selectize-input.focus {
  282. border-color: #66afe9;
  283. outline: 0;
  284. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 0 4px rgba(102, 175, 233, 0.2);
  285. box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 0 4px rgba(102, 175, 233, 0.2);
  286. }
  287. .has-error .selectize-input {
  288. border-color: #a94442;
  289. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  290. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  291. }
  292. .has-error .selectize-input:focus {
  293. border-color: #843534;
  294. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
  295. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
  296. }
  297. .selectize-control.multi .selectize-input.has-items {
  298. padding-left: 6px;
  299. padding-right: 6px;
  300. }
  301. .selectize-control.multi .selectize-input > div {
  302. -webkit-border-radius: 1px;
  303. -moz-border-radius: 1px;
  304. border-radius: 1px;
  305. }
  306. .form-control.selectize-control {
  307. padding: 0;
  308. height: auto;
  309. border: none;
  310. background: none;
  311. -webkit-box-shadow: none;
  312. box-shadow: none;
  313. -webkit-border-radius: 0;
  314. -moz-border-radius: 0;
  315. border-radius: 0;
  316. }