Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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