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.

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