bootstrap-slider.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /*! =======================================================
  2. VERSION 4.4.0
  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: 100%;
  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. height: 100%;
  47. top: 0;
  48. bottom: 0;
  49. }
  50. .slider.slider-horizontal .slider-handle {
  51. margin-left: -10px;
  52. margin-top: -5px;
  53. }
  54. .slider.slider-horizontal .slider-handle.triangle {
  55. border-width: 0 10px 10px 10px;
  56. width: 0;
  57. height: 0;
  58. border-bottom-color: #0480be;
  59. margin-top: 0;
  60. }
  61. .slider.slider-vertical {
  62. height: 210px;
  63. width: 20px;
  64. }
  65. .slider.slider-vertical .slider-track {
  66. width: 10px;
  67. height: 100%;
  68. margin-left: -5px;
  69. left: 50%;
  70. top: 0;
  71. }
  72. .slider.slider-vertical .slider-selection {
  73. width: 100%;
  74. left: 0;
  75. top: 0;
  76. bottom: 0;
  77. }
  78. .slider.slider-vertical .slider-handle {
  79. margin-left: -5px;
  80. margin-top: -10px;
  81. }
  82. .slider.slider-vertical .slider-handle.triangle {
  83. border-width: 10px 0 10px 10px;
  84. width: 1px;
  85. height: 1px;
  86. border-left-color: #0480be;
  87. margin-left: 0;
  88. }
  89. .slider.slider-disabled .slider-handle {
  90. background-image: -webkit-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
  91. background-image: -o-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
  92. background-image: linear-gradient(to bottom, #dfdfdf 0%, #bebebe 100%);
  93. background-repeat: repeat-x;
  94. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf', endColorstr='#ffbebebe', GradientType=0);
  95. }
  96. .slider.slider-disabled .slider-track {
  97. background-image: -webkit-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
  98. background-image: -o-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
  99. background-image: linear-gradient(to bottom, #e5e5e5 0%, #e9e9e9 100%);
  100. background-repeat: repeat-x;
  101. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5', endColorstr='#ffe9e9e9', GradientType=0);
  102. cursor: not-allowed;
  103. }
  104. .slider input {
  105. display: none;
  106. }
  107. .slider .tooltip.top {
  108. margin-top: -36px;
  109. }
  110. .slider .tooltip-inner {
  111. white-space: nowrap;
  112. }
  113. .slider .hide {
  114. display: none;
  115. }
  116. .slider-track {
  117. position: absolute;
  118. cursor: pointer;
  119. background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%);
  120. background-image: -o-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%);
  121. background-image: linear-gradient(to bottom, #f5f5f5 0%, #f9f9f9 100%);
  122. background-repeat: repeat-x;
  123. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
  124. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  125. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  126. border-radius: 4px;
  127. }
  128. .slider-selection {
  129. position: absolute;
  130. background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  131. background-image: -o-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  132. background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%);
  133. background-repeat: repeat-x;
  134. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
  135. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  136. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  137. -webkit-box-sizing: border-box;
  138. -moz-box-sizing: border-box;
  139. box-sizing: border-box;
  140. border-radius: 4px;
  141. }
  142. .slider-handle {
  143. position: absolute;
  144. width: 20px;
  145. height: 20px;
  146. background-color: #337ab7;
  147. background-image: -webkit-linear-gradient(top, #149bdf 0%, #0480be 100%);
  148. background-image: -o-linear-gradient(top, #149bdf 0%, #0480be 100%);
  149. background-image: linear-gradient(to bottom, #149bdf 0%, #0480be 100%);
  150. background-repeat: repeat-x;
  151. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);
  152. filter: none;
  153. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  154. box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  155. border: 0px solid transparent;
  156. }
  157. .slider-handle.round {
  158. border-radius: 50%;
  159. }
  160. .slider-handle.triangle {
  161. background: transparent none;
  162. }
  163. .slider-handle.custom {
  164. background: transparent none;
  165. }
  166. .slider-handle.custom::before {
  167. line-height: 20px;
  168. font-size: 20px;
  169. content: '\2605';
  170. color: #726204;
  171. }