Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
config: support custom color for @link-color (#445)
Fixes #442
  • Loading branch information
utchoang committed Jun 23, 2020
1 parent ee0ce9c commit 17d2ba5021a4f71b2c249d58fa90c7a3e97108d5
Showing 3 changed files with 15 additions and 2 deletions.
@@ -11,6 +11,7 @@
},
"theme": {
"@primary-color": "#1890ff",
"@link-color": "#1890ff",
"@processing-color": "#1890ff",
"@success-color": "#52c41a",
"@warning-color": "#faad14",
@@ -25,8 +26,8 @@
"@box-shadow-base": "0 2px 8px rgba(0, 0, 0, 0.15)",
"@logo-width": "256px",
"@logo-height": "64px",
"@login-banner-width": "700px",
"@login-banner-height": "110px",
"@banner-width": "700px",
"@banner-height": "110px",
"@error-width": "256px",
"@error-height": "256px"
},
@@ -44,3 +44,14 @@
}
}
}

a {
color: @link-color;
background-color: transparent;
}
a:hover {
color: color(~`colorPalette("@{primary-color}", 5)`);
}
a:active {
color: color(~`colorPalette("@{primary-color}", 7)`);
}
@@ -28,6 +28,7 @@ const options = {
varFile: resolve('./src/style/vars.less'),
themeVariables: [
'@primary-color',
'@link-color',
'@success-color',
'@warning-color',
'@processing-color',

0 comments on commit 17d2ba5

Please sign in to comment.