bootstrap-slider.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*!
  2. * Slider for Bootstrap
  3. *
  4. * Copyright 2012 Stefan Petre
  5. * Licensed under the Apache License v2.0
  6. * http://www.apache.org/licenses/LICENSE-2.0
  7. *
  8. */
  9. .slider {
  10. display: inline-block;
  11. vertical-align: middle;
  12. position: relative;
  13. }
  14. .slider.slider-horizontal {
  15. margin-top: 9px;
  16. width: 100%;
  17. height: 20px;
  18. }
  19. .slider.slider-horizontal .slider-track {
  20. height: 10px;
  21. width: 100%;
  22. margin-top: -5px;
  23. top: 50%;
  24. left: 0;
  25. }
  26. .slider.slider-horizontal .slider-selection {
  27. height: 100%;
  28. top: 0;
  29. bottom: 0;
  30. }
  31. .slider.slider-horizontal .slider-handle {
  32. margin-left: -10px;
  33. margin-top: -5px;
  34. }
  35. .slider.slider-horizontal .slider-handle.triangle {
  36. border-width: 0 10px 10px 10px;
  37. width: 0;
  38. height: 0;
  39. border-bottom-color: #0480be;
  40. margin-top: 0;
  41. }
  42. .slider.slider-vertical {
  43. height: 210px;
  44. width: 20px;
  45. }
  46. .slider.slider-vertical .slider-track {
  47. width: 10px;
  48. height: 100%;
  49. margin-left: -5px;
  50. left: 50%;
  51. top: 0;
  52. }
  53. .slider.slider-vertical .slider-selection {
  54. width: 100%;
  55. left: 0;
  56. top: 0;
  57. bottom: 0;
  58. }
  59. .slider.slider-vertical .slider-handle {
  60. margin-left: -5px;
  61. margin-top: -10px;
  62. }
  63. .slider.slider-vertical .slider-handle.triangle {
  64. border-width: 10px 0 10px 10px;
  65. width: 1px;
  66. height: 1px;
  67. border-left-color: #0480be;
  68. margin-left: 0;
  69. }
  70. .slider input {
  71. display: none;
  72. }
  73. .slider .tooltip-inner {
  74. white-space: nowrap;
  75. }
  76. .slider-track {
  77. position: absolute;
  78. cursor: pointer;
  79. background-color: #f7f7f7;
  80. background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9);
  81. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9));
  82. background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9);
  83. background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9);
  84. background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
  85. background-repeat: repeat-x;
  86. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
  87. -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  88. -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  89. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  90. -webkit-border-radius: 4px;
  91. -moz-border-radius: 4px;
  92. border-radius: 4px;
  93. }
  94. .slider-selection {
  95. position: absolute;
  96. background-color: #f7f7f7;
  97. background-image: -moz-linear-gradient(top, #f9f9f9, #f5f5f5);
  98. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f9f9f9), to(#f5f5f5));
  99. background-image: -webkit-linear-gradient(top, #f9f9f9, #f5f5f5);
  100. background-image: -o-linear-gradient(top, #f9f9f9, #f5f5f5);
  101. background-image: linear-gradient(to bottom, #f9f9f9, #f5f5f5);
  102. background-repeat: repeat-x;
  103. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
  104. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  105. -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  106. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  107. -webkit-box-sizing: border-box;
  108. -moz-box-sizing: border-box;
  109. box-sizing: border-box;
  110. -webkit-border-radius: 4px;
  111. -moz-border-radius: 4px;
  112. border-radius: 4px;
  113. }
  114. .slider-handle {
  115. position: absolute;
  116. width: 20px;
  117. height: 20px;
  118. background-color: #0e90d2;
  119. background-image: -moz-linear-gradient(top, #149bdf, #0480be);
  120. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));
  121. background-image: -webkit-linear-gradient(top, #149bdf, #0480be);
  122. background-image: -o-linear-gradient(top, #149bdf, #0480be);
  123. background-image: linear-gradient(to bottom, #149bdf, #0480be);
  124. background-repeat: repeat-x;
  125. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);
  126. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  127. -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  128. box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  129. opacity: 0.8;
  130. border: 0px solid transparent;
  131. }
  132. .slider-handle.round {
  133. -webkit-border-radius: 20px;
  134. -moz-border-radius: 20px;
  135. border-radius: 20px;
  136. }
  137. .slider-handle.triangle {
  138. background: transparent none;
  139. }