From ee85730ec240cc77d8f129eac02b6259bce88b81 Mon Sep 17 00:00:00 2001 From: yozuru Date: Sun, 20 Apr 2025 06:22:35 +0800 Subject: [PATCH] fix: fix footer.astro style --- .stylelintrc.json | 12 ++++++++---- src/components/footer.astro | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index c2d8e41..b92f43c 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -5,18 +5,22 @@ "stylelint-config-html", "stylelint-prettier/recommended" ], - "rules": { "import-notation": "string", "selector-class-pattern": null, "no-descending-specificity": null }, - "overrides": [ { - "files": ["*.astro"], + "files": ["*.astro", "**/*.astro"], "rules": { - "prettier/prettier": null + "prettier/prettier": null, + "selector-pseudo-class-no-unknown": [ + true, + { + "ignorePseudoClasses": ["global"] + } + ] } } ] diff --git a/src/components/footer.astro b/src/components/footer.astro index e7d8107..671970a 100644 --- a/src/components/footer.astro +++ b/src/components/footer.astro @@ -30,7 +30,7 @@ const t = await getTranslator(currentLocale); text-align: center; } - .footer p a { + .footer p :global(a) { font-weight: 500; color: var(--color-foreground); text-decoration: none;