From 1ca7f41ac2c375dc3fff93e2cb11f6c658bbd10b Mon Sep 17 00:00:00 2001 From: upsiflu Date: Tue, 17 Dec 2024 01:37:37 +0100 Subject: [PATCH] feat(ui): implement link styles; use growing Spacers in Sidebar --- front/src/components/ui/Link.vue | 38 ++++++++++------- front/src/style/base/generic.scss | 4 +- front/src/style/colors.scss | 64 +++++++++++++++++++++++------ front/src/ui/components/Sidebar.vue | 47 +++++++++------------ front/ui-docs/components/ui/link.md | 55 +++++++++++++++++++++++++ 5 files changed, 151 insertions(+), 57 deletions(-) diff --git a/front/src/components/ui/Link.vue b/front/src/components/ui/Link.vue index c2bfb7825..64caa704a 100644 --- a/front/src/components/ui/Link.vue +++ b/front/src/components/ui/Link.vue @@ -1,14 +1,14 @@ @@ -153,7 +158,6 @@ const uploads = useUploadsStore() height: 100%; display:flex; flex-direction:column; - background-color: var(--fw-gray-900); &.sticky-content { position: sticky; @@ -260,24 +264,11 @@ const uploads = useUploadsStore() > h3 { margin: 0; padding: 0 32px 8px; - color: var(--fw-gray-700); - @include light-theme { - color: var(--fw-gray-700); - } - @include dark-theme { - color: var(--fw-blue-100); - } font-size: 14px; line-height: 1.2; } - nav.button-list { + .button-list { padding: 0 16px 32px; - - button { - margin: 2px 0; - justify-content: start; - width: 100%; - } } } } diff --git a/front/ui-docs/components/ui/link.md b/front/ui-docs/components/ui/link.md index f41dc8785..45d45ccc8 100644 --- a/front/ui-docs/components/ui/link.md +++ b/front/ui-docs/components/ui/link.md @@ -1,5 +1,6 @@ # Link @@ -21,3 +22,57 @@ This component only adds some styles to a ``. Instead of a route, you can set the prop `to` to any web address starting with `http`. + +## Colors and Variants + +###### Solid: + + + Home + + + + Home + + + + Home + + +###### Outline: + + + Home + + + + Home + + + + Home + + +###### Ghost: + + + Home + + + + Home + + + + Home + + + + +## Shapes + + + Home +