Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: sync ant-design v4.24.16 (#8489)
* chore: sync ant-design v4.24.16 * fix(module:anchor): fix anchor-ink-ball-visible class * feat(module:image): fix the DOM hierarchy and animations --------- Co-authored-by: ng-zorro-bot <ng-zorro-bot@users.noreply.github.com> Co-authored-by: hyperlife1119 <hyperlife1119@qq.com>
- Loading branch information
1 parent
a27a47e
commit 2000294
Showing
53 changed files
with
628 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -289,4 +289,5 @@ a.@{btn-prefix-cls} { | |
} | ||
} | ||
|
||
@import './space-compact'; | ||
@import './rtl'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
@import '../../style/mixins/index'; | ||
|
||
@btn-prefix-cls: ~'@{ant-prefix}-btn'; | ||
|
||
// Button in Space.Compact | ||
.@{btn-prefix-cls} { | ||
.compact-item(@btn-prefix-cls); | ||
|
||
// make `btn-icon-only` not too narrow | ||
&-icon-only&-compact-item { | ||
flex: none; | ||
} | ||
|
||
// Special styles for Primary Button | ||
&-compact-item.@{btn-prefix-cls}-primary { | ||
&:not([disabled]) + &:not([disabled]) { | ||
position: relative; | ||
|
||
&::after { | ||
position: absolute; | ||
top: -@border-width-base; | ||
left: -@border-width-base; | ||
display: inline-block; | ||
width: @border-width-base; | ||
height: calc(100% + @border-width-base * 2); | ||
background-color: @btn-group-border; | ||
content: ' '; | ||
} | ||
} | ||
} | ||
|
||
// ----------RTL---------- | ||
&-compact-item-rtl { | ||
&.@{btn-prefix-cls}-compact-first-item&:not(.@{btn-prefix-cls}-compact-last-item) { | ||
border-top-left-radius: 0; | ||
border-bottom-left-radius: 0; | ||
} | ||
|
||
&.@{btn-prefix-cls}-compact-last-item&:not(.@{btn-prefix-cls}-compact-first-item) { | ||
border-top-right-radius: 0; | ||
border-bottom-right-radius: 0; | ||
} | ||
|
||
&.@{btn-prefix-cls}-sm { | ||
&.@{btn-prefix-cls}-compact-first-item&:not(.@{btn-prefix-cls}-compact-last-item) { | ||
border-top-left-radius: 0; | ||
border-bottom-left-radius: 0; | ||
} | ||
|
||
&.@{btn-prefix-cls}-compact-last-item&:not(.@{btn-prefix-cls}-compact-first-item) { | ||
border-top-right-radius: 0; | ||
border-bottom-right-radius: 0; | ||
} | ||
} | ||
|
||
// ----------RTL Special styles for Primary Button---------- | ||
&.@{btn-prefix-cls}-primary { | ||
&:not([disabled]) + &:not([disabled]) { | ||
&::after { | ||
right: -@border-width-base; | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Button in Space.Compact when direction=vertical | ||
.compact-item-vertical(@btn-prefix-cls); | ||
|
||
// Special styles for Primary Button | ||
&-compact-vertical-item { | ||
&.@{btn-prefix-cls}-primary { | ||
&:not([disabled]) + &:not([disabled]) { | ||
position: relative; | ||
|
||
&::after { | ||
position: absolute; | ||
top: -@border-width-base; | ||
left: -@border-width-base; | ||
display: inline-block; | ||
width: calc(100% + @border-width-base * 2); | ||
height: @border-width-base; | ||
background-color: @btn-group-border; | ||
content: ' '; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -243,6 +243,7 @@ | |
} | ||
|
||
&-detail { | ||
flex: 1; | ||
overflow: hidden; | ||
|
||
> div:not(:last-child) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.