Skip to content

Commit

Permalink
Merge pull request #230 from b952426/refine-for-stylelint
Browse files Browse the repository at this point in the history
refine less for stylelint: no-duplicate-selectors
  • Loading branch information
DevChu authored Aug 4, 2021
2 parents 810faee + 52d7acc commit 9b5e12a
Show file tree
Hide file tree
Showing 18 changed files with 51 additions and 166 deletions.
5 changes: 1 addition & 4 deletions breeze/src/archive/web/js/zkmax/inp/less/cascader.less
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@

.z-cascader-icon {
top: 0;
right: 5px;
line-height: @cascaderPopupItemHeight;
transform: none;
margin-left: 4px;
Expand All @@ -165,8 +166,4 @@
.verGradient(@activeGradientStart, @activeGradientEnd);
color: @cascaderPopupItemActiveColor;
}

&-item &-icon {
right: 5px;
}
}
18 changes: 3 additions & 15 deletions breeze/src/archive/web/js/zkmax/inp/less/timepicker.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
&[readonly] {
border-color: @readonlyBorderColor;
background: @readonlyBackgroundColor;
cursor: pointer;
}
&[readonly]:focus {
.boxShadow('none');
Expand All @@ -46,7 +47,7 @@
padding: 4px;
line-height: @baseLineHeight;
background: @inputBackgroundColor;
text-align: left;
text-align: center;
vertical-align: middle;
overflow: hidden;
cursor: pointer;
Expand Down Expand Up @@ -100,20 +101,10 @@
}
}

.z-timepicker-input {
&[readonly] {
cursor: pointer;
}
}

.z-timepicker-button.z-timepicker-disabled {
display: none;
}

.z-timepicker-button {
text-align: center;
}

.z-timepicker-inplace .z-timepicker-input {
border: 0;
padding: 3px;
Expand All @@ -128,10 +119,6 @@
visibility: hidden;
}

.z-timepicker-popup {
max-height: 200px;
}

.z-timepicker-option {
display: block;
padding: 3px 2px;
Expand Down Expand Up @@ -171,6 +158,7 @@
background: @popupBackgroundColor;
position: absolute;
overflow: auto;
max-height: 200px
}

.z-timepicker-content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
.z-portalchildren-content {
.size(100%, 100%);
}
.z-portallayout-horizontal {
> .z-portalchildren {
height: 100%;
}
}

.z-portallayout-horizontal .z-portalchildren-content {
> .z-panel,
Expand Down Expand Up @@ -124,6 +119,7 @@

.z-portallayout-horizontal {
> .z-portalchildren {
height: 100%;
&-frame {
float: left;
clear: both;
Expand Down
9 changes: 2 additions & 7 deletions breeze/src/archive/web/js/zul/inp/less/input.less
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@
top: 8px;
right: 8px;
cursor: pointer;
.opacity(0.6);

&:hover {
border: 1px solid @errorboxBorderColor;
.borderRadius(@borderRadiusSmall - 1);
.opacity(1);
}
}
.z-errorbox-icon {
Expand All @@ -139,11 +141,4 @@
}
.z-errorbox-up ~ .z-errorbox-close {
top: 15px;
}

.z-errorbox-close {
.opacity(0.6);
&:hover {
.opacity(1);
}
}
32 changes: 11 additions & 21 deletions breeze/src/archive/web/js/zul/layout/less/borderlayout.less
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@
.z-west,
.z-east {
height: 100%; // Fixed for B30-1902533.zul
&-title {
.transform('rotate(90deg)');
.applyCSS3('transform-origin', 'left bottom');
}
}

.z-west,
Expand Down Expand Up @@ -146,6 +150,13 @@
.opacity(0.5);
position: absolute;
}
&-title {
.fontStyle(@baseTitleFontFamily, @fontSizeMedium, bold, @textColorGray);
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
line-height: @baseButtonHeight;
}
}
.z-north-splitter,
.z-south-splitter {
Expand Down Expand Up @@ -220,25 +231,4 @@
.z-south-splitter-button {
.size(30px, 8px);
border-width: 0 1px;
}

.z-north,
.z-south,
.z-west,
.z-east {
&-title {
.fontStyle(@baseTitleFontFamily, @fontSizeMedium, bold, @textColorGray);
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
line-height: @baseButtonHeight;
}
}

.z-west,
.z-east {
&-title {
.transform('rotate(90deg)');
.applyCSS3('transform-origin', 'left bottom');
}
}
4 changes: 1 addition & 3 deletions breeze/src/archive/web/js/zul/sel/less/tree.less
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
background: transparent no-repeat center;
.encodeThemeURL(background-image, '~./zul/img/misc/progress.gif');
}
}
//tree open icon and indent space
.z-tree {
//tree open icon and indent space
&-icon,
&-line {
.displaySize(inline-block, @baseIconWidth, @baseIconHeight);
Expand Down
5 changes: 1 addition & 4 deletions sapphire/src/archive/web/js/zkmax/inp/less/cascader.less
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@

.z-cascader-icon {
top: 0;
right: 5px;
line-height: @cascaderPopupItemHeight;
transform: none;
margin-left: 4px;
Expand Down Expand Up @@ -174,8 +175,4 @@
color: @cascaderPopupItemActiveColor;
}
}

&-item &-icon {
right: 5px;
}
}
18 changes: 3 additions & 15 deletions sapphire/src/archive/web/js/zkmax/inp/less/timepicker.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
&[readonly] {
border-color: @readonlyBorderColor;
background: @readonlyBackgroundColor;
cursor: pointer;
}
&[readonly]:focus {
.boxShadow('none');
Expand All @@ -46,7 +47,7 @@
padding: 4px;
line-height: @baseLineHeight;
background: @inputBackgroundColor;
text-align: left;
text-align: center;
vertical-align: middle;
overflow: hidden;
cursor: pointer;
Expand Down Expand Up @@ -100,20 +101,10 @@
}
}

.z-timepicker-input {
&[readonly] {
cursor: pointer;
}
}

.z-timepicker-button.z-timepicker-disabled {
display: none;
}

.z-timepicker-button {
text-align: center;
}

.z-timepicker-inplace .z-timepicker-input {
border: 0;
padding: 3px;
Expand All @@ -128,10 +119,6 @@
visibility: hidden;
}

.z-timepicker-popup {
max-height: 200px;
}

.z-timepicker-option {
display: block;
padding: 3px 2px;
Expand Down Expand Up @@ -171,6 +158,7 @@
background: @popupBackgroundColor;
position: absolute;
overflow: auto;
max-height: 200px;
}

.z-timepicker-content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.z-portalchildren-content {
overflow: hidden;
}
.z-portallayout-vertical {
.z-portallayout-vertical {
> .z-portalchildren {
height: 100%;
float: left;
Expand All @@ -14,11 +14,6 @@
.z-portalchildren-content {
.size(100%, 100%);
}
.z-portallayout-horizontal {
> .z-portalchildren {
height: 100%;
}
}

.z-portallayout-horizontal .z-portalchildren-content {
> .z-panel,
Expand Down Expand Up @@ -124,6 +119,7 @@

.z-portallayout-horizontal {
> .z-portalchildren {
height: 100%;
&-frame {
float: left;
clear: both;
Expand Down
9 changes: 2 additions & 7 deletions sapphire/src/archive/web/js/zul/inp/less/input.less
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@
top: 8px;
right: 8px;
cursor: pointer;
.opacity(0.6);

&:hover {
border: 1px solid @errorboxBorderColor;
.borderRadius(@borderRadiusSmall - 1);
.opacity(1);
}
}
.z-errorbox-icon {
Expand All @@ -139,11 +141,4 @@
}
.z-errorbox-up ~ .z-errorbox-close {
top: 15px;
}

.z-errorbox-close {
.opacity(0.6);
&:hover {
.opacity(1);
}
}
25 changes: 4 additions & 21 deletions sapphire/src/archive/web/js/zul/layout/less/borderlayout.less
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@
.z-west,
.z-east {
height: 100%; // Fixed for B30-1902533.zul
&-title {
.transform('rotate(90deg)');
.applyCSS3('transform-origin', 'left bottom');
}
}

.z-west,
Expand Down Expand Up @@ -220,25 +224,4 @@
.z-south-splitter-button {
.size(30px, 8px);
border-width: 0 1px;
}

.z-north,
.z-south,
.z-west,
.z-east {
&-title {
.fontStyle(@baseTitleFontFamily, @fontSizeMedium, bold, @textColorGray);
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
line-height: @baseButtonHeight;
}
}

.z-west,
.z-east {
&-title {
.transform('rotate(90deg)');
.applyCSS3('transform-origin', 'left bottom');
}
}
4 changes: 1 addition & 3 deletions sapphire/src/archive/web/js/zul/sel/less/tree.less
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
background: transparent no-repeat center;
.encodeThemeURL(background-image, '~./zul/img/misc/progress.gif');
}
}
//tree open icon and indent space
.z-tree {
//tree open icon and indent space
&-icon,
&-line {
.displaySize(inline-block, @baseIconWidth, @baseIconHeight);
Expand Down
5 changes: 1 addition & 4 deletions silvertail/src/archive/web/js/zkmax/inp/less/cascader.less
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@

.z-cascader-icon {
top: 0;
right: 5px;
line-height: @cascaderPopupItemHeight;
transform: none;
margin-left: 4px;
Expand All @@ -165,8 +166,4 @@
.verGradient(@activeGradientStart, @activeGradientEnd);
color: @cascaderPopupItemActiveColor;
}

&-item &-icon {
right: 5px;
}
}
Loading

0 comments on commit 9b5e12a

Please sign in to comment.