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.

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