bootstrap-slider.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*
  2. Licensed to Cloudera, Inc. under one
  3. or more contributor license agreements. See the NOTICE file
  4. distributed with this work for additional information
  5. regarding copyright ownership. Cloudera, Inc. licenses this file
  6. to you under the Apache License, Version 2.0 (the
  7. "License"); you may not use this file except in compliance
  8. with the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. */
  16. .slider {
  17. vertical-align: middle;
  18. position: relative;
  19. margin-top: 35px;
  20. margin-bottom: 35px;
  21. margin-left: 10px;
  22. }
  23. .slider.slider-horizontal {
  24. height: 20px;
  25. }
  26. .slider.slider-horizontal .slider-track {
  27. height: 10px;
  28. width: 100%;
  29. margin-top: -5px;
  30. top: 50%;
  31. left: 0;
  32. }
  33. .slider.slider-horizontal .slider-selection {
  34. height: 100%;
  35. top: 0;
  36. bottom: 0;
  37. }
  38. .slider.slider-horizontal .slider-handle {
  39. margin-left: -10px;
  40. margin-top: -5px;
  41. }
  42. .slider.slider-horizontal .slider-handle.triangle {
  43. border-width: 0 10px 10px 10px;
  44. width: 0;
  45. height: 0;
  46. border-bottom-color: #338BB8;
  47. margin-top: 0;
  48. outline: none;
  49. }
  50. .slider.slider-horizontal .slider-handle.triangle:hover {
  51. border-bottom-color: #225e7c;
  52. }
  53. .slider.slider-disabled .slider-handle {
  54. background-image: -webkit-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
  55. background-image: linear-gradient(to bottom, #dfdfdf 0%, #bebebe 100%);
  56. background-repeat: repeat-x;
  57. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf', endColorstr='#ffbebebe', GradientType=0);
  58. }
  59. .slider.slider-disabled .slider-track {
  60. background-image: -webkit-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
  61. background-image: linear-gradient(to bottom, #e5e5e5 0%, #e9e9e9 100%);
  62. background-repeat: repeat-x;
  63. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5', endColorstr='#ffe9e9e9', GradientType=0);
  64. cursor: not-allowed;
  65. }
  66. .slider input {
  67. font-size: 10px;
  68. width: 40px;
  69. border: 1px solid #CCC !important;
  70. min-height: 20px !important;
  71. height: 20px;
  72. padding: 0 4px !important;
  73. margin: 0 !important;
  74. }
  75. .slider .tooltip-inner {
  76. white-space: nowrap;
  77. }
  78. .slider .extreme {
  79. position: absolute;
  80. }
  81. .slider-track {
  82. position: absolute;
  83. cursor: pointer;
  84. background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%);
  85. background-image: linear-gradient(to bottom, #f5f5f5 0%, #f9f9f9 100%);
  86. background-repeat: repeat-x;
  87. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
  88. -webkit-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. }
  91. .slider-selection {
  92. position: absolute;
  93. background-image: -webkit-linear-gradient(top, #DDD 0%, #DDD 100%);
  94. background-image: linear-gradient(to bottom, #DDD 0%, #DDD 100%);
  95. background-repeat: repeat-x;
  96. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
  97. -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  98. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  99. -webkit-box-sizing: border-box;
  100. -moz-box-sizing: border-box;
  101. box-sizing: border-box;
  102. }
  103. .slider-handle {
  104. position: absolute;
  105. width: 20px;
  106. height: 20px;
  107. background-color: #3a94a5;
  108. background-image: -webkit-linear-gradient(top, #149bdf 0%, #338BB8 100%);
  109. background-image: linear-gradient(to bottom, #149bdf 0%, #338BB8 100%);
  110. background-repeat: repeat-x;
  111. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff338BB8', GradientType=0);
  112. filter: none;
  113. -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
  114. box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
  115. opacity: 0.8;
  116. border: 0px solid transparent;
  117. }
  118. .slider-handle.round {
  119. border-radius: 50%;
  120. }
  121. .slider-handle.triangle {
  122. background: transparent none;
  123. }
  124. .slider .tooltip.in {
  125. opacity: 1;
  126. filter: alpha(opacity=100);
  127. }
  128. .slider .tooltip {
  129. z-index: 10;
  130. }