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.

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