mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-24 11:05:17 +08:00
refactor(link): remove unused link variables & add sass map (#2768)
This commit is contained in:
parent
e4891ab023
commit
2fb139a3e3
@ -118,11 +118,6 @@ $--border-color: map.merge(
|
||||
/// color|1|Background Color|4
|
||||
$--background-color-base: #f5f7fa !default;
|
||||
|
||||
/* Link
|
||||
-------------------------- */
|
||||
$--link-color: map.get($--colors, 'primary', 'light-2') !default;
|
||||
$--link-hover-color: $--color-primary !default;
|
||||
|
||||
/* Border
|
||||
-------------------------- */
|
||||
$--border-width-base: 1px !default;
|
||||
@ -506,7 +501,7 @@ $--dropdown: map.merge(
|
||||
(
|
||||
'menu-box-shadow': var(--el-box-shadow-light),
|
||||
'menuItem-hover-fill': var(--el-color-primary-light-9),
|
||||
'menuItem-hover-color': var(--el-link-color),
|
||||
'menuItem-hover-color': var(--el-color-primary-light-2),
|
||||
'menu-index': 10,
|
||||
),
|
||||
$--dropdown
|
||||
@ -514,7 +509,7 @@ $--dropdown: map.merge(
|
||||
|
||||
/* Badge
|
||||
-------------------------- */
|
||||
// Css3 var in packages/theme-chalk/src/badge.scss
|
||||
// css3 var in packages/theme-chalk/src/badge.scss
|
||||
$--badge: () !default;
|
||||
$--badge: map.merge(
|
||||
(
|
||||
@ -618,8 +613,18 @@ $--rate: map.merge(
|
||||
|
||||
/* Link
|
||||
--------------------------*/
|
||||
// refactor with css3 var
|
||||
// See packages/theme-chalk/src/link.scss
|
||||
// css3 var in packages/theme-chalk/src/link.scss
|
||||
$--link: () !default;
|
||||
$--link: map.merge(
|
||||
(
|
||||
'font-size': var(--el-font-size-base),
|
||||
'font-weight': var(--el-font-weight-primary),
|
||||
'default-font-color': var(--el-text-color-regular),
|
||||
'default-active-color': var(--el-color-primary),
|
||||
'disabled-font-color': var(--el-text-color-placeholder),
|
||||
),
|
||||
$--link
|
||||
);
|
||||
|
||||
/* Calendar
|
||||
--------------------------*/
|
||||
|
@ -1,16 +1,13 @@
|
||||
@use "sass:map";
|
||||
|
||||
@import 'mixins/mixins';
|
||||
@import 'mixins/var';
|
||||
@import 'common/var';
|
||||
|
||||
$types: primary, success, warning, danger, info;
|
||||
|
||||
:root {
|
||||
--el-link-font-size: var(--el-font-size-base);
|
||||
--el-link-font-weight: var(--el-font-weight-primary);
|
||||
--el-link-default-font-color: var(--el-text-color-regular);
|
||||
--el-link-default-active-color: var(--el-color-primary);
|
||||
--el-link-disabled-font-color: var(--el-text-color-placeholder);
|
||||
@include set-component-css-var('link', $--link);
|
||||
|
||||
@each $type in $types {
|
||||
--el-link-#{$type}-font-color: var(--el-color-#{$type});
|
||||
|
@ -194,7 +194,7 @@
|
||||
|
||||
.#{$namespace}-upload-list__item-name:hover,
|
||||
.#{$namespace}-upload-list__item-name:focus {
|
||||
color: $--link-hover-color;
|
||||
color: var(--el-color-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
@ -38,10 +38,6 @@
|
||||
// Background
|
||||
--el-background-color-base: #{$--background-color-base};
|
||||
|
||||
// Link
|
||||
--el-link-color: var(--el-color-primary-light-2);
|
||||
--el-link-hover-color: var(--el-color-primary);
|
||||
|
||||
// Border
|
||||
--el-border-width-base: #{$--border-width-base};
|
||||
--el-border-style-base: #{$--border-style-base};
|
||||
|
Loading…
Reference in New Issue
Block a user