Skip to content

Commit 77b80ba

Browse files
committed
Restructure less file
1 parent 5e669dd commit 77b80ba

File tree

2 files changed

+59
-59
lines changed

2 files changed

+59
-59
lines changed

dist/rzslider.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rzslider.less

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -27,73 +27,73 @@ rzslider {
2727
width: 100%;
2828
margin: 30px 0 15px 0;
2929
vertical-align: middle;
30-
}
3130

32-
rzslider span {
33-
white-space: nowrap;
34-
position: absolute;
35-
display: inline-block;
36-
}
31+
span {
32+
white-space: nowrap;
33+
position: absolute;
34+
display: inline-block;
3735

38-
rzslider span.base {
39-
width: 100%;
40-
height: 100%;
41-
padding: 0;
42-
}
36+
&.base {
37+
width: 100%;
38+
height: 100%;
39+
padding: 0;
40+
}
4341

44-
rzslider span.bar {
45-
width: 100%;
46-
height: 100%;
47-
z-index: 0;
48-
background: #fff;
49-
}
42+
&.bar {
43+
width: 100%;
44+
height: 100%;
45+
z-index: 0;
46+
background: #fff;
5047

51-
rzslider span.bar.selection {
52-
width: 0%;
53-
z-index: 1;
54-
background: #67b700;
55-
}
48+
&.selection {
49+
width: 0%;
50+
z-index: 1;
51+
background: #67b700;
52+
}
53+
}
5654

57-
rzslider span.pointer {
58-
cursor: pointer;
59-
width: 32px;
60-
height: 32px;
61-
top: -15px;
62-
background-color: @handleBgColor;
63-
z-index: 2;
64-
.rounded(16px);
65-
}
55+
&.pointer {
56+
cursor: pointer;
57+
width: 32px;
58+
height: 32px;
59+
top: -15px;
60+
background-color: @handleBgColor;
61+
z-index: 2;
62+
.rounded(16px);
6663

67-
rzslider span.pointer:after {
68-
content: '';
69-
width: 8px;
70-
height: 8px;
71-
position: absolute;
72-
top: 12px;
73-
left: 12px;
74-
.rounded(4px);
75-
background: @handleInnerColor;
76-
}
64+
&:after {
65+
content: '';
66+
width: 8px;
67+
height: 8px;
68+
position: absolute;
69+
top: 12px;
70+
left: 12px;
71+
.rounded(4px);
72+
background: @handleInnerColor;
73+
}
7774

78-
rzslider span.pointer:hover:after {
79-
background-color: @handleHoverColor;
80-
}
75+
&:hover:after {
76+
background-color: @handleHoverColor;
77+
}
8178

82-
rzslider span.pointer.active:after {
83-
background-color: @handleActiveColor;
84-
}
79+
&.active:after {
80+
background-color: @handleActiveColor;
81+
}
82+
}
8583

86-
rzslider span.bubble {
87-
cursor: default;
88-
top: -32px;
89-
padding: 1px 3px 1px 3px;
90-
color: @labelTextColor;
91-
}
84+
&.bubble {
85+
cursor: default;
86+
top: -32px;
87+
padding: 1px 3px 1px 3px;
88+
color: @labelTextColor;
9289

93-
rzslider span.bubble.selection {
94-
top: 15px;
95-
}
90+
&.selection {
91+
top: 15px;
92+
}
9693

97-
rzslider span.bubble.limit {
98-
color: @limitLabelTextColor;
94+
&.limit {
95+
color: @limitLabelTextColor;
96+
}
97+
}
98+
}
9999
}

0 commit comments

Comments
 (0)