Skip to content

Commit

Permalink
style: anchor text is overwritten (#35612)
Browse files Browse the repository at this point in the history
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
  • Loading branch information
josonho and hezhaoshun committed May 18, 2022
1 parent 5e910e7 commit c52f19a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions components/anchor/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@

&-link {
padding: @anchor-link-padding;
line-height: 1.143;

&-title {
position: relative;
display: block;
margin-bottom: 6px;
margin-bottom: 3px;
overflow: hidden;
color: @text-color;
white-space: nowrap;
Expand All @@ -79,8 +78,8 @@
}

&-link &-link {
padding-top: 5px;
padding-bottom: 5px;
padding-top: 2px;
padding-bottom: 2px;
}
}

Expand Down
2 changes: 1 addition & 1 deletion components/style/themes/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@
// ---
@anchor-bg: transparent;
@anchor-border-color: @border-color-split;
@anchor-link-top: 7px;
@anchor-link-top: 4px;
@anchor-link-left: 16px;
@anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left;

Expand Down
2 changes: 1 addition & 1 deletion components/style/themes/variable.less
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@
// ---
@anchor-bg: transparent;
@anchor-border-color: @border-color-split;
@anchor-link-top: 7px;
@anchor-link-top: 4px;
@anchor-link-left: 16px;
@anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left;

Expand Down

0 comments on commit c52f19a

Please sign in to comment.