mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
config: support custom color for @link-color (#445)
Fixes #442 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
f70fc408be
commit
ac0e5daabd
5
ui/public/config.json
vendored
5
ui/public/config.json
vendored
@ -11,6 +11,7 @@
|
|||||||
},
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
"@primary-color": "#1890ff",
|
"@primary-color": "#1890ff",
|
||||||
|
"@link-color": "#1890ff",
|
||||||
"@processing-color": "#1890ff",
|
"@processing-color": "#1890ff",
|
||||||
"@success-color": "#52c41a",
|
"@success-color": "#52c41a",
|
||||||
"@warning-color": "#faad14",
|
"@warning-color": "#faad14",
|
||||||
@ -25,8 +26,8 @@
|
|||||||
"@box-shadow-base": "0 2px 8px rgba(0, 0, 0, 0.15)",
|
"@box-shadow-base": "0 2px 8px rgba(0, 0, 0, 0.15)",
|
||||||
"@logo-width": "256px",
|
"@logo-width": "256px",
|
||||||
"@logo-height": "64px",
|
"@logo-height": "64px",
|
||||||
"@login-banner-width": "700px",
|
"@banner-width": "700px",
|
||||||
"@login-banner-height": "110px",
|
"@banner-height": "110px",
|
||||||
"@error-width": "256px",
|
"@error-width": "256px",
|
||||||
"@error-height": "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'),
|
varFile: resolve('./src/style/vars.less'),
|
||||||
themeVariables: [
|
themeVariables: [
|
||||||
'@primary-color',
|
'@primary-color',
|
||||||
|
'@link-color',
|
||||||
'@success-color',
|
'@success-color',
|
||||||
'@warning-color',
|
'@warning-color',
|
||||||
'@processing-color',
|
'@processing-color',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user