changes settings prop of card link color

This commit is contained in:
kevmodrome 2020-12-09 13:21:04 +01:00
parent 2fcdf3483b
commit 11ff8586d5
4 changed files with 22 additions and 16 deletions

View File

@ -310,15 +310,15 @@ export default {
},
{
label: "Link Color",
key: "color",
control: Input,
placeholder: "Link Color",
key: "linkColor",
control: Colorpicker,
defaultValue: "#000"
},
{
label: "Hover Color",
key: "linkHoverColor",
control: Input,
placeholder: "Hover Color",
control: Colorpicker,
defaultValue: "#222"
},
{
label: "Image Height",
@ -385,7 +385,7 @@ export default {
},
{
label: "Link Color",
key: "color",
key: "linkColor",
control: Colorpicker,
defaultValue: "#000"
},
@ -393,7 +393,7 @@ export default {
label: "Hover Color",
key: "linkHoverColor",
control: Colorpicker,
defaultValue: "#000"
defaultValue: "#222"
},
{
label: "Card Width",

View File

@ -234,8 +234,14 @@
"description": "string",
"linkText": "string",
"linkUrl": "string",
"color": "string",
"linkHoverColor": "string",
"linkColor": {
"type": "string",
"default": "#000"
},
"linkHoverColor": {
"type": "string",
"default": "#000"
},
"imageHeight": {
"type": "options",
"default": "20rem",
@ -274,7 +280,7 @@
"subtext": "string",
"linkText": "string",
"linkUrl": "string",
"color": {
"linkColor": {
"type": "string",
"default": "#000"
},

View File

@ -11,13 +11,13 @@
export let description = ""
export let linkText = ""
export let linkUrl
export let color
export let linkColor
export let linkHoverColor
export let imageHeight
export let cardWidth
$: cssVariables = {
color,
linkColor,
linkHoverColor,
imageHeight,
cardWidth,
@ -75,7 +75,7 @@
a {
margin: 0.5rem 0;
text-decoration: none;
color: var(--color);
color: var(--linkColor);
font-weight: 600;
}

View File

@ -12,14 +12,14 @@
export let subtext = ""
export let linkText = ""
export let linkUrl
export let color
export let linkColor
export let linkHoverColor
export let cardWidth
export let imageWidth
export let imageHeight
$: cssVariables = {
color,
linkColor,
linkHoverColor,
imageWidth,
cardWidth,
@ -97,7 +97,7 @@
a {
margin: 0.5rem 0 0 0;
text-decoration: none;
color: var(--color);
color: var(--linkColor);
font-weight: 600;
font-size: 0.85rem;
margin: 0;