Skip to content

Commit 9b5e12a

Browse files
authored
Merge pull request #230 from b952426/refine-for-stylelint
refine less for stylelint: no-duplicate-selectors
2 parents 810faee + 52d7acc commit 9b5e12a

File tree

18 files changed

+51
-166
lines changed

18 files changed

+51
-166
lines changed

breeze/src/archive/web/js/zkmax/inp/less/cascader.less

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145

146146
.z-cascader-icon {
147147
top: 0;
148+
right: 5px;
148149
line-height: @cascaderPopupItemHeight;
149150
transform: none;
150151
margin-left: 4px;
@@ -165,8 +166,4 @@
165166
.verGradient(@activeGradientStart, @activeGradientEnd);
166167
color: @cascaderPopupItemActiveColor;
167168
}
168-
169-
&-item &-icon {
170-
right: 5px;
171-
}
172169
}

breeze/src/archive/web/js/zkmax/inp/less/timepicker.less

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
&[readonly] {
2424
border-color: @readonlyBorderColor;
2525
background: @readonlyBackgroundColor;
26+
cursor: pointer;
2627
}
2728
&[readonly]:focus {
2829
.boxShadow('none');
@@ -46,7 +47,7 @@
4647
padding: 4px;
4748
line-height: @baseLineHeight;
4849
background: @inputBackgroundColor;
49-
text-align: left;
50+
text-align: center;
5051
vertical-align: middle;
5152
overflow: hidden;
5253
cursor: pointer;
@@ -100,20 +101,10 @@
100101
}
101102
}
102103

103-
.z-timepicker-input {
104-
&[readonly] {
105-
cursor: pointer;
106-
}
107-
}
108-
109104
.z-timepicker-button.z-timepicker-disabled {
110105
display: none;
111106
}
112107

113-
.z-timepicker-button {
114-
text-align: center;
115-
}
116-
117108
.z-timepicker-inplace .z-timepicker-input {
118109
border: 0;
119110
padding: 3px;
@@ -128,10 +119,6 @@
128119
visibility: hidden;
129120
}
130121

131-
.z-timepicker-popup {
132-
max-height: 200px;
133-
}
134-
135122
.z-timepicker-option {
136123
display: block;
137124
padding: 3px 2px;
@@ -171,6 +158,7 @@
171158
background: @popupBackgroundColor;
172159
position: absolute;
173160
overflow: auto;
161+
max-height: 200px
174162
}
175163

176164
.z-timepicker-content {

breeze/src/archive/web/js/zkmax/layout/less/portallayout.less

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
.z-portalchildren-content {
1515
.size(100%, 100%);
1616
}
17-
.z-portallayout-horizontal {
18-
> .z-portalchildren {
19-
height: 100%;
20-
}
21-
}
2217

2318
.z-portallayout-horizontal .z-portalchildren-content {
2419
> .z-panel,
@@ -124,6 +119,7 @@
124119

125120
.z-portallayout-horizontal {
126121
> .z-portalchildren {
122+
height: 100%;
127123
&-frame {
128124
float: left;
129125
clear: both;

breeze/src/archive/web/js/zul/inp/less/input.less

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@
113113
top: 8px;
114114
right: 8px;
115115
cursor: pointer;
116+
.opacity(0.6);
116117

117118
&:hover {
118119
border: 1px solid @errorboxBorderColor;
119120
.borderRadius(@borderRadiusSmall - 1);
121+
.opacity(1);
120122
}
121123
}
122124
.z-errorbox-icon {
@@ -139,11 +141,4 @@
139141
}
140142
.z-errorbox-up ~ .z-errorbox-close {
141143
top: 15px;
142-
}
143-
144-
.z-errorbox-close {
145-
.opacity(0.6);
146-
&:hover {
147-
.opacity(1);
148-
}
149144
}

breeze/src/archive/web/js/zul/layout/less/borderlayout.less

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@
8989
.z-west,
9090
.z-east {
9191
height: 100%; // Fixed for B30-1902533.zul
92+
&-title {
93+
.transform('rotate(90deg)');
94+
.applyCSS3('transform-origin', 'left bottom');
95+
}
9296
}
9397

9498
.z-west,
@@ -146,6 +150,13 @@
146150
.opacity(0.5);
147151
position: absolute;
148152
}
153+
&-title {
154+
.fontStyle(@baseTitleFontFamily, @fontSizeMedium, bold, @textColorGray);
155+
text-overflow: ellipsis;
156+
white-space: nowrap;
157+
overflow: hidden;
158+
line-height: @baseButtonHeight;
159+
}
149160
}
150161
.z-north-splitter,
151162
.z-south-splitter {
@@ -220,25 +231,4 @@
220231
.z-south-splitter-button {
221232
.size(30px, 8px);
222233
border-width: 0 1px;
223-
}
224-
225-
.z-north,
226-
.z-south,
227-
.z-west,
228-
.z-east {
229-
&-title {
230-
.fontStyle(@baseTitleFontFamily, @fontSizeMedium, bold, @textColorGray);
231-
text-overflow: ellipsis;
232-
white-space: nowrap;
233-
overflow: hidden;
234-
line-height: @baseButtonHeight;
235-
}
236-
}
237-
238-
.z-west,
239-
.z-east {
240-
&-title {
241-
.transform('rotate(90deg)');
242-
.applyCSS3('transform-origin', 'left bottom');
243-
}
244234
}

breeze/src/archive/web/js/zul/sel/less/tree.less

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@
6363
background: transparent no-repeat center;
6464
.encodeThemeURL(background-image, '~./zul/img/misc/progress.gif');
6565
}
66-
}
67-
//tree open icon and indent space
68-
.z-tree {
66+
//tree open icon and indent space
6967
&-icon,
7068
&-line {
7169
.displaySize(inline-block, @baseIconWidth, @baseIconHeight);

sapphire/src/archive/web/js/zkmax/inp/less/cascader.less

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145

146146
.z-cascader-icon {
147147
top: 0;
148+
right: 5px;
148149
line-height: @cascaderPopupItemHeight;
149150
transform: none;
150151
margin-left: 4px;
@@ -174,8 +175,4 @@
174175
color: @cascaderPopupItemActiveColor;
175176
}
176177
}
177-
178-
&-item &-icon {
179-
right: 5px;
180-
}
181178
}

sapphire/src/archive/web/js/zkmax/inp/less/timepicker.less

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
&[readonly] {
2424
border-color: @readonlyBorderColor;
2525
background: @readonlyBackgroundColor;
26+
cursor: pointer;
2627
}
2728
&[readonly]:focus {
2829
.boxShadow('none');
@@ -46,7 +47,7 @@
4647
padding: 4px;
4748
line-height: @baseLineHeight;
4849
background: @inputBackgroundColor;
49-
text-align: left;
50+
text-align: center;
5051
vertical-align: middle;
5152
overflow: hidden;
5253
cursor: pointer;
@@ -100,20 +101,10 @@
100101
}
101102
}
102103

103-
.z-timepicker-input {
104-
&[readonly] {
105-
cursor: pointer;
106-
}
107-
}
108-
109104
.z-timepicker-button.z-timepicker-disabled {
110105
display: none;
111106
}
112107

113-
.z-timepicker-button {
114-
text-align: center;
115-
}
116-
117108
.z-timepicker-inplace .z-timepicker-input {
118109
border: 0;
119110
padding: 3px;
@@ -128,10 +119,6 @@
128119
visibility: hidden;
129120
}
130121

131-
.z-timepicker-popup {
132-
max-height: 200px;
133-
}
134-
135122
.z-timepicker-option {
136123
display: block;
137124
padding: 3px 2px;
@@ -171,6 +158,7 @@
171158
background: @popupBackgroundColor;
172159
position: absolute;
173160
overflow: auto;
161+
max-height: 200px;
174162
}
175163

176164
.z-timepicker-content {

sapphire/src/archive/web/js/zkmax/layout/less/portallayout.less

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.z-portalchildren-content {
66
overflow: hidden;
77
}
8-
.z-portallayout-vertical {
8+
.z-portallayout-vertical {
99
> .z-portalchildren {
1010
height: 100%;
1111
float: left;
@@ -14,11 +14,6 @@
1414
.z-portalchildren-content {
1515
.size(100%, 100%);
1616
}
17-
.z-portallayout-horizontal {
18-
> .z-portalchildren {
19-
height: 100%;
20-
}
21-
}
2217

2318
.z-portallayout-horizontal .z-portalchildren-content {
2419
> .z-panel,
@@ -124,6 +119,7 @@
124119

125120
.z-portallayout-horizontal {
126121
> .z-portalchildren {
122+
height: 100%;
127123
&-frame {
128124
float: left;
129125
clear: both;

sapphire/src/archive/web/js/zul/inp/less/input.less

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@
113113
top: 8px;
114114
right: 8px;
115115
cursor: pointer;
116+
.opacity(0.6);
116117

117118
&:hover {
118119
border: 1px solid @errorboxBorderColor;
119120
.borderRadius(@borderRadiusSmall - 1);
121+
.opacity(1);
120122
}
121123
}
122124
.z-errorbox-icon {
@@ -139,11 +141,4 @@
139141
}
140142
.z-errorbox-up ~ .z-errorbox-close {
141143
top: 15px;
142-
}
143-
144-
.z-errorbox-close {
145-
.opacity(0.6);
146-
&:hover {
147-
.opacity(1);
148-
}
149144
}

0 commit comments

Comments
 (0)