From 3798fd6b64b7c0c9f1a1ca7698550663cbc13e1f Mon Sep 17 00:00:00 2001 From: saicaca Date: Wed, 8 Nov 2023 10:36:59 +0800 Subject: [PATCH] fix: style improvements --- src/components/GlobalStyles.astro | 8 ++++++++ src/components/PostMetadata.astro | 4 ++-- src/components/misc/Markdown.astro | 1 + src/components/widget/DisplaySetting.astro | 4 +--- src/components/widget/NavMenuPanel.astro | 6 ++---- src/components/widget/Profile.astro | 4 ++-- src/layouts/MainGridLayout.astro | 2 +- 7 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/components/GlobalStyles.astro b/src/components/GlobalStyles.astro index a135aa2..b9a3896 100644 --- a/src/components/GlobalStyles.astro +++ b/src/components/GlobalStyles.astro @@ -93,6 +93,8 @@ color_set({ --link-hover: oklch(0.95 0.025 var(--hue)) oklch(0.40 0.08 var(--hue)) --link-active: oklch(0.90 0.05 var(--hue)) oklch(0.35 0.07 var(--hue)) + --float-panel-bg: white oklch(0.19 0.015 var(--hue)) + --color-selection-bar: rainbow-light rainbow-dark --display-light-icon: 1 0 @@ -121,7 +123,13 @@ color_set({ @apply drop-shadow-[0_2px_4px_rgba(0,0,0,0.005)] } .link { + @apply transition hover:bg-[var(--link-hover)] active:bg-[var(--link-active)] rounded-md p-[4px] -m-[4px]; + } + .link-lg { @apply transition hover:bg-[var(--link-hover)] active:bg-[var(--link-active)] rounded-md p-[6px] -m-[6px]; } + .float-panel { + @apply rounded-[var(--radius-large)] overflow-hidden bg-[var(--float-panel-bg)] transition shadow-xl dark:shadow-none + } } \ No newline at end of file diff --git a/src/components/PostMetadata.astro b/src/components/PostMetadata.astro index edb0690..2db87ef 100644 --- a/src/components/PostMetadata.astro +++ b/src/components/PostMetadata.astro @@ -36,7 +36,7 @@ const className = Astro.props.class; class="with-divider" > {category} @@ -56,7 +56,7 @@ const className = Astro.props.class; class="with-divider" > {tag} diff --git a/src/components/misc/Markdown.astro b/src/components/misc/Markdown.astro index 6fb94da..6e31fdc 100644 --- a/src/components/misc/Markdown.astro +++ b/src/components/misc/Markdown.astro @@ -70,6 +70,7 @@ const className = Astro.props.class; color: var(--primary) blockquote font-style: normal + font-weight: inherit border-left-color: rgba(0,0,0,0) position: relative; &:before diff --git a/src/components/widget/DisplaySetting.astro b/src/components/widget/DisplaySetting.astro index a84c440..057a000 100644 --- a/src/components/widget/DisplaySetting.astro +++ b/src/components/widget/DisplaySetting.astro @@ -6,9 +6,7 @@ import {siteConfig} from "../../config"; const enableBanner = siteConfig.banner.enable; --- -
+