bootstrap-slider.css 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. /*! =======================================================
  2. VERSION 9.8.1
  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) 2017 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: 100%;
  49. height: 20px;
  50. }
  51. .slider.slider-horizontal .slider-track {
  52. height: 2px;
  53. width: 100%;
  54. margin-top: -5px;
  55. top: 70%;
  56. left: 0;
  57. }
  58. .slider.slider-horizontal .slider-selection,
  59. .slider.slider-horizontal .slider-track-low,
  60. .slider.slider-horizontal .slider-track-high {
  61. height: 100%;
  62. top: 0;
  63. bottom: 0;
  64. }
  65. .slider.slider-horizontal .slider-tick,
  66. .slider.slider-horizontal .slider-handle {
  67. margin-left: -10px;
  68. }
  69. .slider.slider-horizontal .slider-tick.triangle,
  70. .slider.slider-horizontal .slider-handle.triangle {
  71. position: relative;
  72. top: 50%;
  73. transform: translateY(-50%);
  74. border-width: 0 10px 10px 10px;
  75. width: 0;
  76. height: 0;
  77. border-bottom-color: #0480be;
  78. margin-top: 0;
  79. }
  80. .slider.slider-horizontal .slider-tick-container {
  81. white-space: nowrap;
  82. position: absolute;
  83. top: 0;
  84. left: 0;
  85. width: 100%;
  86. }
  87. .slider.slider-horizontal .slider-tick-label-container {
  88. white-space: nowrap;
  89. margin-top: 20px;
  90. }
  91. .slider.slider-horizontal .slider-tick-label-container .slider-tick-label {
  92. padding-top: 4px;
  93. display: inline-block;
  94. text-align: center;
  95. }
  96. .slider.slider-horizontal.slider-rtl .slider-track {
  97. left: initial;
  98. right: 0;
  99. }
  100. .slider.slider-horizontal.slider-rtl .slider-tick,
  101. .slider.slider-horizontal.slider-rtl .slider-handle {
  102. margin-left: initial;
  103. margin-right: -10px;
  104. }
  105. .slider.slider-horizontal.slider-rtl .slider-tick-container {
  106. left: initial;
  107. right: 0;
  108. }
  109. .slider.slider-vertical {
  110. height: 210px;
  111. width: 20px;
  112. }
  113. .slider.slider-vertical .slider-track {
  114. width: 10px;
  115. height: 100%;
  116. left: 25%;
  117. top: 0;
  118. }
  119. .slider.slider-vertical .slider-selection {
  120. width: 100%;
  121. left: 0;
  122. top: 0;
  123. bottom: 0;
  124. }
  125. .slider.slider-vertical .slider-track-low,
  126. .slider.slider-vertical .slider-track-high {
  127. width: 100%;
  128. left: 0;
  129. right: 0;
  130. }
  131. .slider.slider-vertical .slider-tick,
  132. .slider.slider-vertical .slider-handle {
  133. margin-top: -10px;
  134. }
  135. .slider.slider-vertical .slider-tick.triangle,
  136. .slider.slider-vertical .slider-handle.triangle {
  137. border-width: 10px 0 10px 10px;
  138. width: 1px;
  139. height: 1px;
  140. border-left-color: #0480be;
  141. border-right-color: #0480be;
  142. margin-left: 0;
  143. margin-right: 0;
  144. }
  145. .slider.slider-vertical .slider-tick-label-container {
  146. white-space: nowrap;
  147. }
  148. .slider.slider-vertical .slider-tick-label-container .slider-tick-label {
  149. padding-left: 4px;
  150. }
  151. .slider.slider-vertical.slider-rtl .slider-track {
  152. left: initial;
  153. right: 25%;
  154. }
  155. .slider.slider-vertical.slider-rtl .slider-selection {
  156. left: initial;
  157. right: 0;
  158. }
  159. .slider.slider-vertical.slider-rtl .slider-tick.triangle,
  160. .slider.slider-vertical.slider-rtl .slider-handle.triangle {
  161. border-width: 10px 10px 10px 0;
  162. }
  163. .slider.slider-vertical.slider-rtl .slider-tick-label-container .slider-tick-label {
  164. padding-left: initial;
  165. padding-right: 4px;
  166. }
  167. .slider.slider-disabled .slider-handle {
  168. /* background-image: -webkit-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
  169. background-image: -o-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
  170. background-image: linear-gradient(to bottom, #dfdfdf 0%, #bebebe 100%); */
  171. background-repeat: repeat-x;
  172. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf', endColorstr='#ffbebebe', GradientType=0);
  173. }
  174. .slider.slider-disabled .slider-track {
  175. background-image: -webkit-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
  176. background-image: -o-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
  177. background-image: linear-gradient(to bottom, #e5e5e5 0%, #e9e9e9 100%);
  178. background-repeat: repeat-x;
  179. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5', endColorstr='#ffe9e9e9', GradientType=0);
  180. cursor: not-allowed;
  181. }
  182. .slider input {
  183. display: none;
  184. }
  185. .slider .tooltip.top {
  186. margin-top: -29px;
  187. }
  188. .slider .tooltip-inner {
  189. white-space: nowrap;
  190. max-width: none;
  191. font-size: 15px;
  192. }
  193. .slider.slider-disabled .tooltip-inner {
  194. color: #a9a9a9;
  195. }
  196. .slider .hide {
  197. display: none;
  198. }
  199. .slider-track {
  200. position: absolute;
  201. cursor: pointer;
  202. /* background-image: -webkit-linear-gradient(top, #808080 0%, #f9f9f9 100%);
  203. background-image: -o-linear-gradient(top, #808080 0%, #f9f9f9 100%);
  204. background-image: linear-gradient(to bottom, #808080 0%, #f9f9f9 100%);
  205. background-repeat: repeat-x; */
  206. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
  207. /* -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  208. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); */
  209. background-color: #aaa;
  210. border-radius: 4px;
  211. }
  212. .slider-selection {
  213. position: absolute;
  214. /* background-image: -webkit-linear-gradient(top, #149bdf 0%, #f5f5f5 100%);
  215. background-image: -o-linear-gradient(top, #149bdf 0%, #f5f5f5 100%);
  216. background-image: linear-gradient(to bottom, #149bdf 0%, #f5f5f5 100%);
  217. background-repeat: repeat-x; */
  218. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
  219. /* -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  220. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); */
  221. background-color: #149bdf;
  222. -webkit-box-sizing: border-box;
  223. -moz-box-sizing: border-box;
  224. box-sizing: border-box;
  225. border-radius: 4px;
  226. }
  227. .slider.slider-disabled .slider-track-low,
  228. .slider.slider-disabled .slider-selection,
  229. .slider.slider-disabled .slider-track-high {
  230. background-color:#a9a9a9;
  231. }
  232. .slider-selection.tick-slider-selection {
  233. background-image: -webkit-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  234. background-image: -o-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  235. background-image: linear-gradient(to bottom, #89cdef 0%, #81bfde 100%);
  236. background-repeat: repeat-x;
  237. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff89cdef', endColorstr='#ff81bfde', GradientType=0);
  238. }
  239. .slider-track-low,
  240. .slider-track-high {
  241. position: absolute;
  242. background: transparent;
  243. -webkit-box-sizing: border-box;
  244. -moz-box-sizing: border-box;
  245. box-sizing: border-box;
  246. border-radius: 4px;
  247. }
  248. .slider-handle {
  249. position: absolute;
  250. top: 1px;
  251. width: 19px;
  252. height: 19px;
  253. background: white;
  254. border-color: #149bdf;
  255. border-style: solid;
  256. border-width: 2px 2px 2px 2px;
  257. }
  258. .slider.slider-disabled .slider-handle{
  259. border-color: #a9a9a9;
  260. }
  261. .slider-handle:after {
  262. content: "";
  263. position: absolute;
  264. top: 3px;
  265. left: 3px;
  266. background: #149bdf;
  267. border-radius:100%;
  268. width: 9px;
  269. height: 9px;
  270. }
  271. .slider.slider-disabled .slider-handle:after {
  272. content: "";
  273. background: #a9a9a9;
  274. }
  275. .slider-handle.round {
  276. border-radius: 50%;
  277. }
  278. .slider-handle.triangle {
  279. background: transparent none;
  280. }
  281. .slider-handle.custom {
  282. background: transparent none;
  283. }
  284. .slider-handle.custom::before {
  285. line-height: 20px;
  286. font-size: 20px;
  287. content: '\2605';
  288. color: #726204;
  289. }
  290. .slider-tick {
  291. position: absolute;
  292. width: 20px;
  293. height: 20px;
  294. background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  295. background-image: -o-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  296. background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%);
  297. background-repeat: repeat-x;
  298. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
  299. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  300. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  301. -webkit-box-sizing: border-box;
  302. -moz-box-sizing: border-box;
  303. box-sizing: border-box;
  304. filter: none;
  305. opacity: 0.8;
  306. border: 0px solid transparent;
  307. }
  308. .slider-tick.round {
  309. border-radius: 50%;
  310. }
  311. .slider-tick.triangle {
  312. background: transparent none;
  313. }
  314. .slider-tick.custom {
  315. background: transparent none;
  316. }
  317. .slider-tick.custom::before {
  318. line-height: 20px;
  319. font-size: 20px;
  320. content: '\2605';
  321. color: #726204;
  322. }
  323. .slider-tick.in-selection {
  324. background-image: -webkit-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  325. background-image: -o-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  326. background-image: linear-gradient(to bottom, #89cdef 0%, #81bfde 100%);
  327. background-repeat: repeat-x;
  328. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff89cdef', endColorstr='#ff81bfde', GradientType=0);
  329. opacity: 1;
  330. }