Skip to content

Commit

Permalink
chore: sync ant-design v4.10.3 (NG-ZORRO#6364)
Browse files Browse the repository at this point in the history
Co-authored-by: ng-zorro-bot <ng-zorro-bot@users.noreply.github.com>
  • Loading branch information
ng-zorro-bot and ng-zorro-bot committed Jan 22, 2021
1 parent 61ca6e2 commit 7545b74
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 17 deletions.
1 change: 1 addition & 0 deletions components/badge/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
&-dot {
z-index: @zindex-badge;
width: @badge-dot-size;
min-width: @badge-dot-size;
height: @badge-dot-size;
background: @highlight-color;
border-radius: 100%;
Expand Down
8 changes: 4 additions & 4 deletions components/button/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@

&::before {
position: absolute;
top: -1px;
right: -1px;
bottom: -1px;
left: -1px;
top: -@btn-border-width;
right: -@btn-border-width;
bottom: -@btn-border-width;
left: -@btn-border-width;
z-index: 1;
display: none;
background: @component-background;
Expand Down
4 changes: 0 additions & 4 deletions components/empty/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
}
}

&-description {
margin: 0;
}

&-footer {
margin-top: 16px;
}
Expand Down
1 change: 1 addition & 0 deletions components/style/themes/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@
@table-padding-horizontal-md: (@table-padding-horizontal / 2);
@table-padding-vertical-sm: (@table-padding-vertical / 2);
@table-padding-horizontal-sm: (@table-padding-horizontal / 2);
@table-border-color: @border-color-split;
@table-border-radius-base: @border-radius-base;
@table-footer-bg: @background-color-light;
@table-footer-color: @heading-color;
Expand Down
4 changes: 2 additions & 2 deletions components/table/style/bordered.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import './index';
@import './size';

@table-border: @border-width-base @border-style-base @border-color-split;
@table-border: @border-width-base @border-style-base @table-border-color;

.@{table-prefix-cls}.@{table-prefix-cls}-bordered {
// ============================ Title =============================
Expand Down Expand Up @@ -30,7 +30,7 @@
// ============================ Header ============================
> thead {
> tr:not(:last-child) > th {
border-bottom: @border-width-base @border-style-base @border-color-split;
border-bottom: @border-width-base @border-style-base @table-border-color;
}
}

Expand Down
14 changes: 7 additions & 7 deletions components/table/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
font-weight: 500;
text-align: left;
background: @table-header-bg;
border-bottom: @border-width-base @border-style-base @border-color-split;
border-bottom: @border-width-base @border-style-base @table-border-color;
transition: background 0.3s ease;

&[colspan]:not([colspan='1']) {
Expand All @@ -103,7 +103,7 @@
&-tbody {
> tr {
> td {
border-bottom: @border-width-base @border-style-base @border-color-split;
border-bottom: @border-width-base @border-style-base @table-border-color;
transition: background 0.3s;

// ========================= Nest Table ===========================
Expand Down Expand Up @@ -150,7 +150,7 @@
> tr {
> th,
> td {
border-bottom: @border-width-base @border-style-base @border-color-split;
border-bottom: @border-width-base @border-style-base @table-border-color;
}
}
}
Expand Down Expand Up @@ -351,7 +351,7 @@
padding: 7px 8px 7px 3px;
overflow: hidden;
background-color: @table-filter-btns-bg;
border-top: @border-width-base @border-style-base @border-color-split;
border-top: @border-width-base @border-style-base @table-border-color;
}
}

Expand Down Expand Up @@ -424,7 +424,7 @@
line-height: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base *
3;
background: @table-expand-icon-bg;
border: @border-width-base @border-style-base @border-color-split;
border: @border-width-base @border-style-base @table-border-color;
border-radius: @border-radius-base;
outline: none;
transition: all 0.3s;
Expand Down Expand Up @@ -614,8 +614,8 @@
z-index: @table-sticky-zindex;
display: flex;
align-items: center;
background: lighten(@border-color-split, 80%);
border-top: 1px solid @border-color-split;
background: lighten(@table-border-color, 80%);
border-top: 1px solid @table-border-color;
opacity: 0.6;
&:hover {
transform-origin: center bottom;
Expand Down
6 changes: 6 additions & 0 deletions components/tree/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
@tree-motion: ~'@{ant-prefix}-motion-collapse';
@tree-node-padding: (@padding-xs / 2);
@tree-node-hightlight-color: @volcano-7;

.antTreeSwitcherIcon(@type: 'tree-default-open-icon') {
.@{tree-prefix-cls}-switcher-icon,
Expand Down Expand Up @@ -90,6 +91,11 @@
&-active .@{custom-tree-prefix-cls}-node-content-wrapper {
background: @tree-node-hover-bg;
}

&.filter-node .@{custom-tree-prefix-cls}-title {
color: @tree-node-hightlight-color;
font-weight: 500;
}
}

// >>> Indent
Expand Down

0 comments on commit 7545b74

Please sign in to comment.