Skip to content

Commit 620e098

Browse files
WuglyakBolgoinkValentin Hervieu
and
Valentin Hervieu
authored
fix: add parentheses around division-like expr's (#679)
Co-authored-by: Valentin Hervieu <[email protected]>
1 parent 4ccd9a7 commit 620e098

File tree

6 files changed

+27
-27
lines changed

6 files changed

+27
-27
lines changed

dist/rzslider.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v7.0.0 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2019-03-06 */
4+
2021-09-06 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
;(function(root, factory) {

dist/rzslider.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.scss

+2-2
Large diffs are not rendered by default.

src/rzslider.less

+20-20
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
.rz-bar-wrapper {
6262
left: 0;
6363
box-sizing: border-box;
64-
margin-top: -@handleSize / 2;
65-
padding-top: @handleSize / 2;
64+
margin-top: (-@handleSize / 2);
65+
padding-top: (@handleSize / 2);
6666
width: 100%;
6767
height: @handleSize;
6868
z-index: 1;
@@ -79,7 +79,7 @@
7979
height: @barDimension;
8080
z-index: 1;
8181
background: @barNormalColor;
82-
.rounded(@barDimension / 2);
82+
.rounded((@barDimension / 2));
8383
}
8484

8585
.rz-bar-wrapper.rz-transparent .rz-bar {
@@ -95,34 +95,34 @@
9595
.rz-selection {
9696
z-index: 2;
9797
background: @barFillColor;
98-
.rounded(@barDimension / 2);
98+
.rounded((@barDimension / 2));
9999
transition: background-color linear @animationDuration;
100100
}
101101

102102
.rz-restricted {
103103
z-index: 3;
104104
background: @restrictedBarColor;
105-
.rounded(@barDimension / 2);
105+
.rounded((@barDimension / 2));
106106
}
107107

108108
.rz-pointer {
109109
cursor: pointer;
110110
width: @handleSize;
111111
height: @handleSize;
112-
top: -@handleSize / 2 + @barDimension / 2;
112+
top: (-@handleSize / 2 + @barDimension / 2);
113113
background-color: @handleBgColor;
114114
z-index: 3;
115-
.rounded(@handleSize / 2);
115+
.rounded((@handleSize / 2));
116116
transition: all linear @animationDuration;
117117

118118
&:after {
119119
content: '';
120120
width: @handlePointerSize;
121121
height: @handlePointerSize;
122122
position: absolute;
123-
top: @handleSize / 2 - @handlePointerSize / 2;
124-
left: @handleSize / 2 - @handlePointerSize / 2;
125-
.rounded(@handlePointerSize / 2);
123+
top: (@handleSize / 2 - @handlePointerSize / 2);
124+
left: (@handleSize / 2 - @handlePointerSize / 2);
125+
.rounded((@handlePointerSize / 2));
126126
background: @handleInnerColor;
127127
}
128128
&:hover:after {
@@ -138,7 +138,7 @@
138138

139139
.rz-bubble {
140140
cursor: default;
141-
bottom: @handleSize / 2;
141+
bottom: (@handleSize / 2);
142142
padding: @bubblePadding;
143143
color: @labelTextColor;
144144
transition: all linear @animationDuration;
@@ -154,7 +154,7 @@
154154
height: 0;
155155
position: absolute;
156156
left: 0;
157-
top: -(@ticksHeight - @barDimension) / 2;
157+
top: (-(@ticksHeight - @barDimension) / 2);
158158
margin: 0;
159159
z-index: 1;
160160
list-style: none;
@@ -163,7 +163,7 @@
163163
.rz-ticks-values-under {
164164
.rz-tick-value {
165165
top: auto;
166-
bottom: @ticksValuePosition - 2;
166+
bottom: (@ticksValuePosition - 2);
167167
}
168168
}
169169

@@ -177,7 +177,7 @@
177177
position: absolute;
178178
top: 0;
179179
left: 0;
180-
margin-left: @handleSize / 2 - @ticksWidth / 2; // for centering
180+
margin-left: (@handleSize / 2 - @ticksWidth / 2); // for centering
181181
transition: background-color linear @animationDuration;
182182
&.rz-selected {
183183
background: @selectedTicksColor;
@@ -215,8 +215,8 @@
215215
.rz-bar-wrapper {
216216
top: auto;
217217
left: 0;
218-
margin: 0 0 0 -@handleSize / 2;
219-
padding: 0 0 0 @handleSize / 2;
218+
margin: 0 0 0 (-@handleSize / 2);
219+
padding: 0 0 0 (@handleSize / 2);
220220
height: 100%;
221221
width: @handleSize;
222222
}
@@ -229,28 +229,28 @@
229229
}
230230

231231
.rz-pointer {
232-
left: -@handleSize / 2 + @barDimension / 2 !important;
232+
left: (-@handleSize / 2 + @barDimension / 2) !important;
233233
top: auto;
234234
bottom: 0;
235235
}
236236

237237
.rz-bubble {
238-
left: @handleSize / 2 !important;
238+
left: (@handleSize / 2) !important;
239239
margin-left: 3px;
240240
bottom: 0;
241241
}
242242

243243
.rz-ticks {
244244
height: 100%;
245245
width: 0;
246-
left: -(@ticksHeight - @barDimension) / 2;
246+
left: (-(@ticksHeight - @barDimension) / 2);
247247
top: 0;
248248
z-index: 1;
249249
}
250250
.rz-tick {
251251
vertical-align: middle;
252252
margin-left: auto;
253-
margin-top: @handleSize / 2 - @ticksWidth / 2; // for centering
253+
margin-top: (@handleSize / 2 - @ticksWidth / 2); // for centering
254254
}
255255
.rz-tick-value {
256256
left: @ticksValuePositionOnVertical;

0 commit comments

Comments
 (0)