bootstrap-slider.css 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. /*! =======================================================
  2. VERSION 7.1.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. * 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. margin-top: 20px;
  68. }
  69. .slider.slider-horizontal .slider-tick-label-container .slider-tick-label {
  70. padding-top: 4px;
  71. display: inline-block;
  72. text-align: center;
  73. }
  74. .slider.slider-vertical {
  75. height: 210px;
  76. width: 20px;
  77. }
  78. .slider.slider-vertical .slider-track {
  79. width: 10px;
  80. height: 100%;
  81. margin-left: -5px;
  82. left: 50%;
  83. top: 0;
  84. }
  85. .slider.slider-vertical .slider-selection {
  86. width: 100%;
  87. left: 0;
  88. top: 0;
  89. bottom: 0;
  90. }
  91. .slider.slider-vertical .slider-track-low,
  92. .slider.slider-vertical .slider-track-high {
  93. width: 100%;
  94. left: 0;
  95. right: 0;
  96. }
  97. .slider.slider-vertical .slider-tick,
  98. .slider.slider-vertical .slider-handle {
  99. margin-left: -5px;
  100. margin-top: -10px;
  101. }
  102. .slider.slider-vertical .slider-tick.triangle,
  103. .slider.slider-vertical .slider-handle.triangle {
  104. border-width: 10px 0 10px 10px;
  105. width: 1px;
  106. height: 1px;
  107. border-left-color: #0480be;
  108. margin-left: 0;
  109. }
  110. .slider.slider-vertical .slider-tick-label-container {
  111. white-space: nowrap;
  112. }
  113. .slider.slider-vertical .slider-tick-label-container .slider-tick-label {
  114. padding-left: 4px;
  115. }
  116. .slider.slider-disabled .slider-handle {
  117. background-image: -webkit-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
  118. background-image: -o-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
  119. background-image: linear-gradient(to bottom, #dfdfdf 0%, #bebebe 100%);
  120. background-repeat: repeat-x;
  121. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf', endColorstr='#ffbebebe', GradientType=0);
  122. }
  123. .slider.slider-disabled .slider-track {
  124. background-image: -webkit-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
  125. background-image: -o-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
  126. background-image: linear-gradient(to bottom, #e5e5e5 0%, #e9e9e9 100%);
  127. background-repeat: repeat-x;
  128. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5', endColorstr='#ffe9e9e9', GradientType=0);
  129. cursor: not-allowed;
  130. }
  131. .slider input {
  132. display: none;
  133. }
  134. .slider .tooltip.top {
  135. margin-top: -36px;
  136. }
  137. .slider .tooltip-inner {
  138. white-space: nowrap;
  139. max-width: none;
  140. }
  141. .slider .hide {
  142. display: none;
  143. }
  144. .slider-track {
  145. position: absolute;
  146. cursor: pointer;
  147. background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%);
  148. background-image: -o-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%);
  149. background-image: linear-gradient(to bottom, #f5f5f5 0%, #f9f9f9 100%);
  150. background-repeat: repeat-x;
  151. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
  152. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  153. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  154. border-radius: 4px;
  155. }
  156. .slider-selection {
  157. position: absolute;
  158. background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  159. background-image: -o-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  160. background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%);
  161. background-repeat: repeat-x;
  162. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
  163. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  164. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  165. -webkit-box-sizing: border-box;
  166. -moz-box-sizing: border-box;
  167. box-sizing: border-box;
  168. border-radius: 4px;
  169. }
  170. .slider-selection.tick-slider-selection {
  171. background-image: -webkit-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  172. background-image: -o-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  173. background-image: linear-gradient(to bottom, #89cdef 0%, #81bfde 100%);
  174. background-repeat: repeat-x;
  175. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff89cdef', endColorstr='#ff81bfde', GradientType=0);
  176. }
  177. .slider-track-low,
  178. .slider-track-high {
  179. position: absolute;
  180. background: transparent;
  181. -webkit-box-sizing: border-box;
  182. -moz-box-sizing: border-box;
  183. box-sizing: border-box;
  184. border-radius: 4px;
  185. }
  186. .slider-handle {
  187. position: absolute;
  188. width: 20px;
  189. height: 20px;
  190. background-color: #337ab7;
  191. background-image: -webkit-linear-gradient(top, #149bdf 0%, #0480be 100%);
  192. background-image: -o-linear-gradient(top, #149bdf 0%, #0480be 100%);
  193. background-image: linear-gradient(to bottom, #149bdf 0%, #0480be 100%);
  194. background-repeat: repeat-x;
  195. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);
  196. filter: none;
  197. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  198. box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  199. border: 0px solid transparent;
  200. }
  201. .slider-handle.round {
  202. border-radius: 50%;
  203. }
  204. .slider-handle.triangle {
  205. background: transparent none;
  206. }
  207. .slider-handle.custom {
  208. background: transparent none;
  209. }
  210. .slider-handle.custom::before {
  211. line-height: 20px;
  212. font-size: 20px;
  213. content: '\2605';
  214. color: #726204;
  215. }
  216. .slider-tick {
  217. position: absolute;
  218. width: 20px;
  219. height: 20px;
  220. background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  221. background-image: -o-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  222. background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%);
  223. background-repeat: repeat-x;
  224. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
  225. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  226. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  227. -webkit-box-sizing: border-box;
  228. -moz-box-sizing: border-box;
  229. box-sizing: border-box;
  230. filter: none;
  231. opacity: 0.8;
  232. border: 0px solid transparent;
  233. }
  234. .slider-tick.round {
  235. border-radius: 50%;
  236. }
  237. .slider-tick.triangle {
  238. background: transparent none;
  239. }
  240. .slider-tick.custom {
  241. background: transparent none;
  242. }
  243. .slider-tick.custom::before {
  244. line-height: 20px;
  245. font-size: 20px;
  246. content: '\2605';
  247. color: #726204;
  248. }
  249. .slider-tick.in-selection {
  250. background-image: -webkit-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  251. background-image: -o-linear-gradient(top, #89cdef 0%, #81bfde 100%);
  252. background-image: linear-gradient(to bottom, #89cdef 0%, #81bfde 100%);
  253. background-repeat: repeat-x;
  254. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff89cdef', endColorstr='#ff81bfde', GradientType=0);
  255. opacity: 1;
  256. }