bootstrap-slider.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*! =========================================================
  2. * bootstrap-slider.js
  3. *
  4. * Maintainers:
  5. * Kyle Kemp
  6. * - Twitter: @seiyria
  7. * - Github: seiyria
  8. * Rohit Kalkur
  9. * - Twitter: @Rovolutionary
  10. * - Github: rovolution
  11. *
  12. * =========================================================
  13. *
  14. * Licensed under the Apache License, Version 2.0 (the "License");
  15. * you may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at
  17. *
  18. * http://www.apache.org/licenses/LICENSE-2.0
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. * ========================================================= */
  26. .slider {
  27. display: inline-block;
  28. vertical-align: middle;
  29. position: relative;
  30. }
  31. .slider.slider-horizontal {
  32. width: 210px;
  33. height: 20px;
  34. }
  35. .slider.slider-horizontal .slider-track {
  36. height: 10px;
  37. width: 100%;
  38. margin-top: -5px;
  39. top: 50%;
  40. left: 0;
  41. }
  42. .slider.slider-horizontal .slider-selection {
  43. height: 100%;
  44. top: 0;
  45. bottom: 0;
  46. }
  47. .slider.slider-horizontal .slider-handle {
  48. margin-left: -10px;
  49. margin-top: -5px;
  50. }
  51. .slider.slider-horizontal .slider-handle.triangle {
  52. border-width: 0 10px 10px 10px;
  53. width: 0;
  54. height: 0;
  55. border-bottom-color: #0480be;
  56. margin-top: 0;
  57. }
  58. .slider.slider-vertical {
  59. height: 210px;
  60. width: 20px;
  61. }
  62. .slider.slider-vertical .slider-track {
  63. width: 10px;
  64. height: 100%;
  65. margin-left: -5px;
  66. left: 50%;
  67. top: 0;
  68. }
  69. .slider.slider-vertical .slider-selection {
  70. width: 100%;
  71. left: 0;
  72. top: 0;
  73. bottom: 0;
  74. }
  75. .slider.slider-vertical .slider-handle {
  76. margin-left: -5px;
  77. margin-top: -10px;
  78. }
  79. .slider.slider-vertical .slider-handle.triangle {
  80. border-width: 10px 0 10px 10px;
  81. width: 1px;
  82. height: 1px;
  83. border-left-color: #0480be;
  84. margin-left: 0;
  85. }
  86. .slider.slider-disabled .slider-handle {
  87. background-image: -webkit-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
  88. background-image: linear-gradient(to bottom, #dfdfdf 0%, #bebebe 100%);
  89. background-repeat: repeat-x;
  90. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf', endColorstr='#ffbebebe', GradientType=0);
  91. }
  92. .slider.slider-disabled .slider-track {
  93. background-image: -webkit-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
  94. background-image: linear-gradient(to bottom, #e5e5e5 0%, #e9e9e9 100%);
  95. background-repeat: repeat-x;
  96. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5', endColorstr='#ffe9e9e9', GradientType=0);
  97. cursor: not-allowed;
  98. }
  99. .slider input {
  100. display: none;
  101. }
  102. .slider .tooltip.top {
  103. margin-top: -36px;
  104. }
  105. .slider .tooltip-inner {
  106. white-space: nowrap;
  107. }
  108. .slider .hide {
  109. display: none;
  110. }
  111. .slider-track {
  112. position: absolute;
  113. cursor: pointer;
  114. background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%);
  115. background-image: linear-gradient(to bottom, #f5f5f5 0%, #f9f9f9 100%);
  116. background-repeat: repeat-x;
  117. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
  118. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  119. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  120. border-radius: 4px;
  121. }
  122. .slider-selection {
  123. position: absolute;
  124. background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
  125. background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%);
  126. background-repeat: repeat-x;
  127. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
  128. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  129. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  130. -webkit-box-sizing: border-box;
  131. -moz-box-sizing: border-box;
  132. box-sizing: border-box;
  133. border-radius: 4px;
  134. }
  135. .slider-handle {
  136. position: absolute;
  137. width: 20px;
  138. height: 20px;
  139. background-color: #3a94a5;
  140. background-image: -webkit-linear-gradient(top, #149bdf 0%, #0480be 100%);
  141. background-image: linear-gradient(to bottom, #149bdf 0%, #0480be 100%);
  142. background-repeat: repeat-x;
  143. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);
  144. filter: none;
  145. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  146. box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  147. opacity: 0.8;
  148. border: 0px solid transparent;
  149. }
  150. .slider-handle.round {
  151. border-radius: 50%;
  152. }
  153. .slider-handle.triangle {
  154. background: transparent none;
  155. }
  156. .slider-handle.custom {
  157. background: transparent none;
  158. }
  159. .slider-handle.custom::before {
  160. line-height: 20px;
  161. font-size: 20px;
  162. content: '\2605';
  163. color: #726204;
  164. }