mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
refactor: update tailwind typography css overrides (#538)
* refactor: update tailwind typography css overrides Update TailwindCSS typography overrides to use less `important`; and update selectors to make them easier to read. * refactor: update focus styles to be consistent
This commit is contained in:
@@ -16,7 +16,7 @@ import IconArrowNarrowUp from "@/assets/icons/IconArrowNarrowUp.svg";
|
||||
class:list={[
|
||||
"group relative bg-background px-2 py-1",
|
||||
"size-14 rounded-full shadow-xl",
|
||||
"md:h-8 md:w-fit md:rounded-md md:shadow-none",
|
||||
"md:h-8 md:w-fit md:rounded-md md:shadow-none md:focus-visible:rounded-none",
|
||||
"md:bg-background/35 md:bg-clip-padding md:backdrop-blur-lg",
|
||||
]}
|
||||
>
|
||||
|
||||
@@ -20,7 +20,7 @@ const { tag, tagName, size = "sm" } = Astro.props;
|
||||
href={`/tags/${tag}/`}
|
||||
transition:name={tag}
|
||||
class:list={[
|
||||
"relative pe-2 text-lg underline decoration-dashed group-hover:-top-0.5 group-hover:text-accent focus-visible:p-1",
|
||||
"relative pe-2 text-lg underline decoration-dashed group-hover:-top-0.5 group-hover:text-accent focus-visible:p-1 focus-visible:no-underline",
|
||||
{ "text-sm": size === "sm" },
|
||||
]}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user