]> git.mxchange.org Git - friendica.git/blob - frameworks/jRange/jquery.range.less
first files - move to Version 0.1
[friendica.git] / frameworks / jRange / jquery.range.less
1 #gradient {
2   .horizontal(@startColor: #555, @endColor: #333) {
3     background-color: @endColor;
4     background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+
5     background-image: -webkit-gradient(linear, 0 0, 100% 0, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
6     background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
7     background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
8     background-image: linear-gradient(to right, @startColor, @endColor); // Standard, IE10
9     background-repeat: repeat-x;
10     filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@startColor),argb(@endColor))); // IE9 and down
11   }
12   .vertical(@startColor: #555, @endColor: #333) {
13     background-color: mix(@startColor, @endColor, 60%);
14     background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
15     background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
16     background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
17     background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
18     background-image: linear-gradient(to bottom, @startColor, @endColor); // Standard, IE10
19     background-repeat: repeat-x;
20     filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down
21   }
22   .directional(@startColor: #555, @endColor: #333, @deg: 45deg) {
23     background-color: @endColor;
24     background-repeat: repeat-x;
25     background-image: -moz-linear-gradient(@deg, @startColor, @endColor); // FF 3.6+
26     background-image: -webkit-linear-gradient(@deg, @startColor, @endColor); // Safari 5.1+, Chrome 10+
27     background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10
28     background-image: linear-gradient(@deg, @startColor, @endColor); // Standard, IE10
29   }
30   .vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
31     background-color: mix(@midColor, @endColor, 80%);
32     background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
33     background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
34     background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
35     background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
36     background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
37     background-repeat: no-repeat;
38     filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down, gets no color-stop at all for proper fallback
39   }
40   .radial(@innerColor: #555, @outerColor: #333)  {
41     background-color: @outerColor;
42     background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(@innerColor), to(@outerColor));
43     background-image: -webkit-radial-gradient(circle, @innerColor, @outerColor);
44     background-image: -moz-radial-gradient(circle, @innerColor, @outerColor);
45     background-image: -o-radial-gradient(circle, @innerColor, @outerColor);
46     background-repeat: no-repeat;
47   }
48   .striped(@color: #555, @angle: 45deg) {
49     background-color: @color;
50     background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
51     background-image: -webkit-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
52     background-image: -moz-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
53     background-image: -o-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
54     background-image: linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
55   }
56 }
57
58 .slider-container {
59     width: 300px;
60     font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
61     .back-bar {
62         height: 10px;
63         position: relative;
64         .selected-bar {
65             position: absolute;
66             height: 100%;
67         }
68         .pointer {
69             position: absolute;
70             width: 10px;
71             height: 10px;
72             background-color: red;
73             cursor: col-resize;
74             opacity: 1;
75             z-index: 2;
76             &.last-active{
77                 z-index: 3;
78             }
79         }
80         .pointer-label {
81             position: absolute;
82             top: -17px;
83             font-size: 8px;
84             background: white;
85             white-space: nowrap;
86             line-height: 1;
87         }
88         .focused {
89             z-index: 10;
90         }
91     }
92     .clickable-dummy {
93         cursor: pointer;
94         position: absolute;
95         width: 100%;
96         height: 100%;
97         z-index: 1;
98     }
99     .scale {
100         top: 2px;
101         position: relative;
102         span {
103             position: absolute;
104             height: 5px;
105             border-left: 1px solid #999;
106             font-size: 0;
107         }
108         ins {
109             font-size: 9px;
110             text-decoration: none;
111             position: absolute;
112             left: 0;
113             top: 5px;
114             color: #999;
115             line-height: 1;
116         }
117     }
118     &.slider-readonly{
119         .clickable-dummy, .pointer {
120             cursor: auto;
121         }
122     }
123 }
124 .theme-green {
125     .back-bar {
126         height: 5px;
127         border-radius: 2px;
128         background-color: #eeeeee;
129         #gradient > .vertical(#eeeeee, #dddddd);
130         .selected-bar {
131             border-radius: 2px;
132             #gradient > .vertical(#bdfade, #76fabc);
133         }
134         .pointer {
135             width: 14px;
136             height: 14px;
137             top: -5px;
138             -webkit-box-sizing: border-box;
139             -moz-box-sizing: border-box;
140             box-sizing: border-box;
141             border-radius: 10px;
142             border: 1px solid #AAA;
143             #gradient > .vertical(#eeeeee, #dddddd);
144         }
145         .pointer-label {
146             color: #999;
147         }
148         .focused {
149             color: #333;
150         }
151     }
152     .scale {
153         span {
154             border-left: 1px solid #e5e5e5;
155         }
156         ins {
157             color: #999;
158         }
159     }
160 }
161
162 .theme-blue {
163     .back-bar {
164         height: 5px;
165         border-radius: 2px;
166         background-color: #eeeeee;
167         #gradient > .vertical(#eeeeee, #dddddd);
168         .selected-bar {
169             border-radius: 2px;
170             #gradient > .vertical(#b1d1f9, #64a8f9);
171         }
172         .pointer {
173             width: 14px;
174             height: 14px;
175             top: -5px;
176             -webkit-box-sizing: border-box;
177             -moz-box-sizing: border-box;
178             box-sizing: border-box;
179             border-radius: 10px;
180             border: 1px solid #AAA;
181             #gradient > .vertical(#eeeeee, #dddddd);
182         }
183         .pointer-label {
184             color: #999;
185         }
186         .focused {
187             color: #333;
188         }
189     }
190     .scale {
191         span {
192             border-left: 1px solid #e5e5e5;
193         }
194         ins {
195             color: #999;
196         }
197     }
198 }