bootstrap-slider.css 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. /*! =======================================================
  2. VERSION 4.7.4
  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. * Licensed under the Apache License, Version 2.0 (the "License");
  18. * you may not use this file except in compliance with the License.
  19. * You may obtain a copy of the License at
  20. *
  21. * http://www.apache.org/licenses/LICENSE-2.0
  22. *
  23. * Unless required by applicable law or agreed to in writing, software
  24. * distributed under the License is distributed on an "AS IS" BASIS,
  25. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  26. * See the License for the specific language governing permissions and
  27. * limitations under the License.
  28. * ========================================================= */
  29. .slider {
  30. display: inline-block;
  31. vertical-align: middle;
  32. position: relative;
  33. }
  34. .slider.slider-horizontal {
  35. width: 210px;
  36. height: 20px;
  37. }
  38. .slider.slider-horizontal .slider-track {
  39. height: 10px;
  40. width: 100%;
  41. margin-top: -5px;
  42. top: 50%;
  43. left: 0;
  44. }
  45. .slider.slider-horizontal .slider-selection,
  46. .slider.slider-horizontal .slider-track-low,
  47. .slider.slider-horizontal .slider-track-high {
  48. height: 100%;
  49. top: 0;
  50. bottom: 0;
  51. }
  52. .slider.slider-horizontal .slider-tick,
  53. .slider.slider-horizontal .slider-handle {
  54. margin-left: -10px;
  55. margin-top: -5px;
  56. }
  57. .slider.slider-horizontal .slider-tick.triangle,
  58. .slider.slider-horizontal .slider-handle.triangle {
  59. border-width: 0 10px 10px 10px;
  60. width: 0;
  61. height: 0;
  62. border-bottom-color: #0480be;
  63. margin-top: 0;
  64. }
  65. .slider.slider-horizontal .slider-tick-label-container {
  66. white-space: nowrap;
  67. }
  68. .slider.slider-horizontal .slider-tick-label-container .slider-tick-label {
  69. margin-top: 24px;
  70. display: inline-block;
  71. text-align: center;
  72. }
  73. .slider.slider-vertical {
  74. height: 210px;
  75. width: 20px;
  76. }
  77. .slider.slider-vertical .slider-track {
  78. width: 10px;
  79. height: 100%;
  80. margin-left: -5px;
  81. left: 50%;
  82. top: 0;
  83. }
  84. .slider.slider-vertical .slider-selection {
  85. width: 100%;
  86. left: 0;
  87. top: 0;
  88. bottom: 0;
  89. }
  90. .slider.slider-vertical .slider-track-low,
  91. .slider.slider-vertical .slider-track-high {
  92. width: 100%;
  93. left: 0;
  94. right: 0;
  95. }
  96. .slider.slider-vertical .slider-tick,
  97. .slider.slider-vertical .slider-handle {
  98. margin-left: -5px;
  99. margin-top: -10px;
  100. }
  101. .slider.slider-vertical .slider-tick.triangle,
  102. .slider.slider-vertical .slider-handle.triangle {
  103. border-width: 10px 0 10px 10px;
  104. width: 1px;
  105. height: 1px;
  106. border-left-color: #0480be;
  107. margin-left: 0;
  108. }
  109. .slider.slider-disabled .slider-handle {
  110. background-image: -webkit-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
  111. background-image: -o-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
  112. background-image: linear-gradient(to bottom, #dfdfdf 0%, #bebebe 100%);
  113. background-repeat: repeat-x;
  114. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf', endColorstr='#ffbebebe', GradientType=0);
  115. }
  116. .slider.slider-disabled .slider-track {
  117. background-image: -webkit-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
  118. background-image: -o-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
  119. background-image: linear-gradient(to bottom, #e5e5e5 0%, #e9e9e9 100%);
  120. background-repeat: repeat-x;
  121. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5', endColorstr='#ffe9e9e9', GradientType=0);
  122. cursor: not-allowed;
  123. }
  124. .slider input {
  125. display: none;
  126. }
  127. .slider .tooltip.top {
  128. margin-top: -36px;
  129. }
  130. .slider .tooltip-inner {
  131. white-space: nowrap;
  132. }
  133. .slider .hide {
  134. display: none;
  135. }
  136. .slider-track {
  137. position: absolute;
  138. cursor: pointer;
  139. background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%);
  140. background-image: -o-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%);
  141. background-image: linear-gradient(to bottom, #f5f5f5 0%, #f9f9f9 100%);
  142. background-repeat: repeat-x;
  143. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
  144. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  145. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  146. border-radius: 4px;
  147. }
  148. .slider-selection {
  149. position: absolute;
  150. background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  151. background-image: -o-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  152. background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%);
  153. background-repeat: repeat-x;
  154. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
  155. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  156. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  157. -webkit-box-sizing: border-box;
  158. -moz-box-sizing: border-box;
  159. box-sizing: border-box;
  160. border-radius: 4px;
  161. }
  162. .slider-selection.tick-slider-selection {
  163. background-image: -webkit-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  164. background-image: -o-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  165. background-image: linear-gradient(to bottom, #89cdef 0%, #81bfde 100%);
  166. background-repeat: repeat-x;
  167. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff89cdef', endColorstr='#ff81bfde', GradientType=0);
  168. }
  169. .slider-track-low,
  170. .slider-track-high {
  171. position: absolute;
  172. background: transparent;
  173. -webkit-box-sizing: border-box;
  174. -moz-box-sizing: border-box;
  175. box-sizing: border-box;
  176. border-radius: 4px;
  177. }
  178. .slider-handle {
  179. position: absolute;
  180. width: 20px;
  181. height: 20px;
  182. background-color: #337ab7;
  183. background-image: -webkit-linear-gradient(top, #149bdf 0%, #0480be 100%);
  184. background-image: -o-linear-gradient(top, #149bdf 0%, #0480be 100%);
  185. background-image: linear-gradient(to bottom, #149bdf 0%, #0480be 100%);
  186. background-repeat: repeat-x;
  187. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);
  188. filter: none;
  189. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  190. box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  191. border: 0px solid transparent;
  192. }
  193. .slider-handle.round {
  194. border-radius: 50%;
  195. }
  196. .slider-handle.triangle {
  197. background: transparent none;
  198. }
  199. .slider-handle.custom {
  200. background: transparent none;
  201. }
  202. .slider-handle.custom::before {
  203. line-height: 20px;
  204. font-size: 20px;
  205. content: '\2605';
  206. color: #726204;
  207. }
  208. .slider-tick {
  209. position: absolute;
  210. width: 20px;
  211. height: 20px;
  212. background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  213. background-image: -o-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  214. background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%);
  215. background-repeat: repeat-x;
  216. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
  217. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  218. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  219. -webkit-box-sizing: border-box;
  220. -moz-box-sizing: border-box;
  221. box-sizing: border-box;
  222. filter: none;
  223. opacity: 0.8;
  224. border: 0px solid transparent;
  225. }
  226. .slider-tick.round {
  227. border-radius: 50%;
  228. }
  229. .slider-tick.triangle {
  230. background: transparent none;
  231. }
  232. .slider-tick.custom {
  233. background: transparent none;
  234. }
  235. .slider-tick.custom::before {
  236. line-height: 20px;
  237. font-size: 20px;
  238. content: '\2605';
  239. color: #726204;
  240. }
  241. .slider-tick.in-selection {
  242. background-image: -webkit-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  243. background-image: -o-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  244. background-image: linear-gradient(to bottom, #89cdef 0%, #81bfde 100%);
  245. background-repeat: repeat-x;
  246. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff89cdef', endColorstr='#ff81bfde', GradientType=0);
  247. opacity: 1;
  248. }