Browse Source
style: anchor text is overwritten (#35612)
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
pull/35616/head
joson
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
5 additions and
6 deletions
-
components/anchor/style/index.less
-
components/style/themes/default.less
-
components/style/themes/variable.less
|
|
@ -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; |
|
|
@ -79,8 +78,8 @@ |
|
|
|
} |
|
|
|
|
|
|
|
&-link &-link { |
|
|
|
padding-top: 5px; |
|
|
|
padding-bottom: 5px; |
|
|
|
padding-top: 2px; |
|
|
|
padding-bottom: 2px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -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; |
|
|
|
|
|
|
|
|
|
@ -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; |
|
|
|
|
|
|
|