Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

418 Zeilen
12KB

  1. /*! =======================================================
  2. VERSION 11.0.2
  3. ========================================================= */
  4. /*! =========================================================
  5. * bootstrap-slider.js
  6. *
  7. * Maintainers:
  8. * Kyle Kemp
  9. * - Twitter: @seiyria
  10. * - Github: seiyria
  11. * Rohit Kalkur
  12. * - Twitter: @Rovolutionary
  13. * - Github: rovolution
  14. *
  15. * =========================================================
  16. *
  17. * bootstrap-slider is released under the MIT License
  18. * Copyright (c) 2019 Kyle Kemp, Rohit Kalkur, and contributors
  19. *
  20. * Permission is hereby granted, free of charge, to any person
  21. * obtaining a copy of this software and associated documentation
  22. * files (the "Software"), to deal in the Software without
  23. * restriction, including without limitation the rights to use,
  24. * copy, modify, merge, publish, distribute, sublicense, and/or sell
  25. * copies of the Software, and to permit persons to whom the
  26. * Software is furnished to do so, subject to the following
  27. * conditions:
  28. *
  29. * The above copyright notice and this permission notice shall be
  30. * included in all copies or substantial portions of the Software.
  31. *
  32. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  33. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  34. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  35. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  36. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  37. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  38. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  39. * OTHER DEALINGS IN THE SOFTWARE.
  40. *
  41. * ========================================================= */
  42. .slider {
  43. display: inline-block;
  44. vertical-align: middle;
  45. position: relative;
  46. }
  47. .slider.slider-horizontal {
  48. width: 210px;
  49. height: 20px;
  50. }
  51. .slider.slider-horizontal .slider-track {
  52. height: 10px;
  53. width: 100%;
  54. margin-top: -5px;
  55. top: 50%;
  56. left: 0;
  57. }
  58. .slider.slider-horizontal .slider-selection, .slider.slider-horizontal .slider-track-low, .slider.slider-horizontal .slider-track-high {
  59. height: 100%;
  60. top: 0;
  61. bottom: 0;
  62. }
  63. .slider.slider-horizontal .slider-tick,
  64. .slider.slider-horizontal .slider-handle {
  65. margin-left: -10px;
  66. }
  67. .slider.slider-horizontal .slider-tick.triangle,
  68. .slider.slider-horizontal .slider-handle.triangle {
  69. position: relative;
  70. top: 50%;
  71. transform: translateY(-50%);
  72. border-width: 0 10px 10px 10px;
  73. width: 0;
  74. height: 0;
  75. border-bottom-color: #036fa5;
  76. margin-top: 0;
  77. }
  78. .slider.slider-horizontal .slider-tick-container {
  79. white-space: nowrap;
  80. position: absolute;
  81. top: 0;
  82. left: 0;
  83. width: 100%;
  84. }
  85. .slider.slider-horizontal .slider-tick-label-container {
  86. white-space: nowrap;
  87. margin-top: 20px;
  88. }
  89. .slider.slider-horizontal .slider-tick-label-container .slider-tick-label {
  90. display: inline-block;
  91. text-align: center;
  92. }
  93. .slider.slider-horizontal.slider-rtl .slider-track {
  94. left: initial;
  95. right: 0;
  96. }
  97. .slider.slider-horizontal.slider-rtl .slider-tick,
  98. .slider.slider-horizontal.slider-rtl .slider-handle {
  99. margin-left: initial;
  100. margin-right: -10px;
  101. }
  102. .slider.slider-horizontal.slider-rtl .slider-tick-container {
  103. left: initial;
  104. right: 0;
  105. }
  106. .slider.slider-vertical {
  107. height: 210px;
  108. width: 20px;
  109. }
  110. .slider.slider-vertical .slider-track {
  111. width: 10px;
  112. height: 100%;
  113. left: 25%;
  114. top: 0;
  115. }
  116. .slider.slider-vertical .slider-selection {
  117. width: 100%;
  118. left: 0;
  119. top: 0;
  120. bottom: 0;
  121. }
  122. .slider.slider-vertical .slider-track-low, .slider.slider-vertical .slider-track-high {
  123. width: 100%;
  124. left: 0;
  125. right: 0;
  126. }
  127. .slider.slider-vertical .slider-tick,
  128. .slider.slider-vertical .slider-handle {
  129. margin-top: -10px;
  130. }
  131. .slider.slider-vertical .slider-tick.triangle,
  132. .slider.slider-vertical .slider-handle.triangle {
  133. border-width: 10px 0 10px 10px;
  134. width: 1px;
  135. height: 1px;
  136. border-left-color: #036fa5;
  137. margin-left: 0;
  138. }
  139. .slider.slider-vertical .slider-tick-label-container {
  140. white-space: nowrap;
  141. }
  142. .slider.slider-vertical .slider-tick-label-container .slider-tick-label {
  143. padding-left: 4px;
  144. }
  145. .slider.slider-vertical.slider-rtl .slider-track {
  146. left: initial;
  147. right: 25%;
  148. }
  149. .slider.slider-vertical.slider-rtl .slider-selection {
  150. left: initial;
  151. right: 0;
  152. }
  153. .slider.slider-vertical.slider-rtl .slider-tick.triangle,
  154. .slider.slider-vertical.slider-rtl .slider-handle.triangle {
  155. border-width: 10px 10px 10px 0;
  156. }
  157. .slider.slider-vertical.slider-rtl .slider-tick-label-container .slider-tick-label {
  158. padding-left: initial;
  159. padding-right: 4px;
  160. }
  161. .slider.slider-disabled .slider-handle {
  162. background-color: #cfcfcf;
  163. background-image: -moz-linear-gradient(top, #DFDFDF, #BEBEBE);
  164. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#DFDFDF), to(#BEBEBE));
  165. background-image: -webkit-linear-gradient(top, #DFDFDF, #BEBEBE);
  166. background-image: -o-linear-gradient(top, #DFDFDF, #BEBEBE);
  167. background-image: linear-gradient(to bottom, #DFDFDF, #BEBEBE);
  168. background-repeat: repeat-x;
  169. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DFDFDF', endColorstr='#BEBEBE',GradientType=0);
  170. }
  171. .slider.slider-disabled .slider-track {
  172. background-color: #e7e7e7;
  173. background-image: -moz-linear-gradient(top, #E5E5E5, #E9E9E9);
  174. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#E5E5E5), to(#E9E9E9));
  175. background-image: -webkit-linear-gradient(top, #E5E5E5, #E9E9E9);
  176. background-image: -o-linear-gradient(top, #E5E5E5, #E9E9E9);
  177. background-image: linear-gradient(to bottom, #E5E5E5, #E9E9E9);
  178. background-repeat: repeat-x;
  179. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#E5E5E5', endColorstr='#E9E9E9',GradientType=0);
  180. cursor: not-allowed;
  181. }
  182. .slider input {
  183. display: none;
  184. }
  185. .slider .tooltip-inner {
  186. white-space: nowrap;
  187. max-width: none;
  188. }
  189. .slider .bs-tooltip-top .tooltip-inner,
  190. .slider .bs-tooltip-bottom .tooltip-inner {
  191. position: relative;
  192. left: -50%;
  193. }
  194. .slider.bs-tooltip-left .tooltip-inner, .slider.bs-tooltip-right .tooltip-inner {
  195. position: relative;
  196. top: -100%;
  197. }
  198. .slider .tooltip {
  199. pointer-events: none;
  200. }
  201. .slider .tooltip.bs-tooltip-top .arrow, .slider .tooltip.bs-tooltip-bottom .arrow {
  202. left: -.4rem;
  203. }
  204. .slider .tooltip.bs-tooltip-top {
  205. margin-top: -44px;
  206. }
  207. .slider .tooltip.bs-tooltip-bottom {
  208. margin-top: 2px;
  209. }
  210. .slider .tooltip.bs-tooltip-left, .slider .tooltip.bs-tooltip-right {
  211. margin-top: -14px;
  212. }
  213. .slider .tooltip.bs-tooltip-left .arrow, .slider .tooltip.bs-tooltip-right .arrow {
  214. top: 8px;
  215. }
  216. .slider .hide {
  217. display: none;
  218. }
  219. .slider-track {
  220. background-color: #f7f7f7;
  221. background-image: -moz-linear-gradient(top, #F5F5F5, #F9F9F9);
  222. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#F5F5F5), to(#F9F9F9));
  223. background-image: -webkit-linear-gradient(top, #F5F5F5, #F9F9F9);
  224. background-image: -o-linear-gradient(top, #F5F5F5, #F9F9F9);
  225. background-image: linear-gradient(to bottom, #F5F5F5, #F9F9F9);
  226. background-repeat: repeat-x;
  227. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F5F5F5', endColorstr='#F9F9F9',GradientType=0);
  228. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  229. -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  230. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  231. -webkit-border-radius: 4px;
  232. -moz-border-radius: 4px;
  233. border-radius: 4px;
  234. position: absolute;
  235. cursor: pointer;
  236. }
  237. .slider-selection {
  238. background-color: #f7f7f7;
  239. background-image: -moz-linear-gradient(top, #F9F9F9, #F5F5F5);
  240. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#F9F9F9), to(#F5F5F5));
  241. background-image: -webkit-linear-gradient(top, #F9F9F9, #F5F5F5);
  242. background-image: -o-linear-gradient(top, #F9F9F9, #F5F5F5);
  243. background-image: linear-gradient(to bottom, #F9F9F9, #F5F5F5);
  244. background-repeat: repeat-x;
  245. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F9F9F9', endColorstr='#F5F5F5',GradientType=0);
  246. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  247. -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  248. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  249. -webkit-box-sizing: border-box;
  250. -moz-box-sizing: border-box;
  251. box-sizing: border-box;
  252. -webkit-border-radius: 4px;
  253. -moz-border-radius: 4px;
  254. border-radius: 4px;
  255. position: absolute;
  256. }
  257. .slider-selection.tick-slider-selection {
  258. background-color: #46c1fe;
  259. background-image: -moz-linear-gradient(top, #52c5ff, #3abcfd);
  260. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#52c5ff), to(#3abcfd));
  261. background-image: -webkit-linear-gradient(top, #52c5ff, #3abcfd);
  262. background-image: -o-linear-gradient(top, #52c5ff, #3abcfd);
  263. background-image: linear-gradient(to bottom, #52c5ff, #3abcfd);
  264. background-repeat: repeat-x;
  265. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#52c5ff', endColorstr='#3abcfd',GradientType=0);
  266. }
  267. .slider-track-low, .slider-track-high {
  268. -webkit-box-sizing: border-box;
  269. -moz-box-sizing: border-box;
  270. box-sizing: border-box;
  271. -webkit-border-radius: 4px;
  272. -moz-border-radius: 4px;
  273. border-radius: 4px;
  274. position: absolute;
  275. background: transparent;
  276. }
  277. .slider-handle {
  278. background-color: #0478b2;
  279. background-image: -moz-linear-gradient(top, #0480BE, #036fa5);
  280. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0480BE), to(#036fa5));
  281. background-image: -webkit-linear-gradient(top, #0480BE, #036fa5);
  282. background-image: -o-linear-gradient(top, #0480BE, #036fa5);
  283. background-image: linear-gradient(to bottom, #0480BE, #036fa5);
  284. background-repeat: repeat-x;
  285. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0480BE', endColorstr='#036fa5',GradientType=0);
  286. -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  287. -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  288. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  289. position: absolute;
  290. top: 0;
  291. width: 20px;
  292. height: 20px;
  293. background-color: #0480BE;
  294. border: 0px solid transparent;
  295. }
  296. .slider-handle:hover {
  297. cursor: pointer;
  298. }
  299. .slider-handle.round {
  300. -webkit-border-radius: 20px;
  301. -moz-border-radius: 20px;
  302. border-radius: 20px;
  303. }
  304. .slider-handle.triangle {
  305. background: transparent none;
  306. }
  307. .slider-handle.custom {
  308. background: transparent none;
  309. }
  310. .slider-handle.custom::before {
  311. line-height: 20px;
  312. font-size: 20px;
  313. content: '\2605';
  314. color: #726204;
  315. }
  316. .slider-tick {
  317. background-color: #f7f7f7;
  318. background-image: -moz-linear-gradient(top, #F5F5F5, #F9F9F9);
  319. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#F5F5F5), to(#F9F9F9));
  320. background-image: -webkit-linear-gradient(top, #F5F5F5, #F9F9F9);
  321. background-image: -o-linear-gradient(top, #F5F5F5, #F9F9F9);
  322. background-image: linear-gradient(to bottom, #F5F5F5, #F9F9F9);
  323. background-repeat: repeat-x;
  324. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F5F5F5', endColorstr='#F9F9F9',GradientType=0);
  325. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  326. -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  327. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  328. -webkit-box-sizing: border-box;
  329. -moz-box-sizing: border-box;
  330. box-sizing: border-box;
  331. position: absolute;
  332. cursor: pointer;
  333. width: 20px;
  334. height: 20px;
  335. filter: none;
  336. opacity: 0.8;
  337. border: 0px solid transparent;
  338. }
  339. .slider-tick.round {
  340. border-radius: 50%;
  341. }
  342. .slider-tick.triangle {
  343. background: transparent none;
  344. }
  345. .slider-tick.custom {
  346. background: transparent none;
  347. }
  348. .slider-tick.custom::before {
  349. line-height: 20px;
  350. font-size: 20px;
  351. content: '\2605';
  352. color: #726204;
  353. }
  354. .slider-tick.in-selection {
  355. background-color: #46c1fe;
  356. background-image: -moz-linear-gradient(top, #52c5ff, #3abcfd);
  357. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#52c5ff), to(#3abcfd));
  358. background-image: -webkit-linear-gradient(top, #52c5ff, #3abcfd);
  359. background-image: -o-linear-gradient(top, #52c5ff, #3abcfd);
  360. background-image: linear-gradient(to bottom, #52c5ff, #3abcfd);
  361. background-repeat: repeat-x;
  362. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#52c5ff', endColorstr='#3abcfd',GradientType=0);
  363. opacity: 1;
  364. }
  365. /*# sourceMappingURL=bootstrap-slider.css.map */