From 7bca997597804d646108a71679fb467f88efabdb Mon Sep 17 00:00:00 2001 From: upsiflu Date: Tue, 17 Dec 2024 23:20:37 +0100 Subject: [PATCH] feat(ui): link accepts color and stylistic props --- front/src/components/ui/Link.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/front/src/components/ui/Link.vue b/front/src/components/ui/Link.vue index edee420b5..91df0b0e4 100644 --- a/front/src/components/ui/Link.vue +++ b/front/src/components/ui/Link.vue @@ -1,17 +1,20 @@ @@ -58,7 +61,7 @@ const isSimple = Object.keys(colorProps).length === 0 white-space: nowrap; font-family: $font-main; - font-weight: 900; + font-weight: v-bind(fontWeight); font-size: 0.875em; line-height: 1em; @@ -72,7 +75,7 @@ const isSimple = Object.keys(colorProps).length === 0 margin: 0 0.5ch; transform: translateX(var(--fw-translate-x)) translateY(var(--fw-translate-y)) scale(var(--fw-scale)); - transition:background-color .3s, border-color .2s; + transition:background-color .2s, border-color .3s; i { font-size:1.4em;