config: support custom color for @link-color (#445)

Fixes #442

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Hoang Nguyen 2020-06-23 14:10:57 +07:00 committed by Rohit Yadav
parent f70fc408be
commit ac0e5daabd
3 changed files with 15 additions and 2 deletions

View File

@ -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"
},

View File

@ -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)`);
}

View File

@ -28,6 +28,7 @@ const options = {
varFile: resolve('./src/style/vars.less'),
themeVariables: [
'@primary-color',
'@link-color',
'@success-color',
'@warning-color',
'@processing-color',