fix(link): fix style (#2990)

This commit is contained in:
kooriookami 2021-08-19 19:48:50 +08:00 committed by GitHub
parent f3536b899f
commit 17628c2fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,28 +46,33 @@
&.#{$namespace}-link--default {
color: var(--el-link-default-font-color);
&:hover {
color: var(--el-link-default-active-color);
}
&:after {
border-color: var(--el-link-default-active-color);
}
@include when(disabled) {
color: var(--el-link-disabled-font-color);
}
}
@each $type in $--types {
--el-link-font-color: var(--el-color-#{$type});
&.#{$namespace}-link--#{$type} {
--el-link-font-color: var(--el-color-#{$type});
color: var(--el-link-font-color);
&:hover {
color: mix(map.get($--link-font-color, $type), $--color-white, 80%);
}
&:after {
border-color: var(--el-link-font-color);
}
@include when(disabled) {
color: mix(map.get($--link-font-color, $type), $--color-white, 50%);
}