From 93bbed8a83ba217abb5da830928ec67e6314ab52 Mon Sep 17 00:00:00 2001 From: reco_luan Date: Sun, 24 Nov 2024 00:32:16 +0800 Subject: [PATCH] fix: remove some !important --- packages/vuepress-theme-reco/src/client/styles/404.css | 2 +- .../src/client/styles/home/bannerBrand.css | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/vuepress-theme-reco/src/client/styles/404.css b/packages/vuepress-theme-reco/src/client/styles/404.css index 42cc3d2a..1670e4dc 100644 --- a/packages/vuepress-theme-reco/src/client/styles/404.css +++ b/packages/vuepress-theme-reco/src/client/styles/404.css @@ -5,7 +5,7 @@ @apply mr-0 mb-20 text-center; @apply md:mr-40 md:mb-0; h1 { - @apply text-9xl !important; + @apply text-9xl; } .xicon-container { @apply inline-block px-6 py-2 border border-solid border-reco-primary rounded-lg bg-reco-primary/90 cursor-pointer font-semibold text-white; diff --git a/packages/vuepress-theme-reco/src/client/styles/home/bannerBrand.css b/packages/vuepress-theme-reco/src/client/styles/home/bannerBrand.css index 9d743f14..cc1b35f6 100644 --- a/packages/vuepress-theme-reco/src/client/styles/home/bannerBrand.css +++ b/packages/vuepress-theme-reco/src/client/styles/home/bannerBrand.css @@ -5,9 +5,8 @@ @apply block box-border px-6 mt-32 max-w-screen-md; @apply md:mt-0; .title { - @apply mb-6 text-5xl text-left bg-gradient-to-r from-reco-primary to-red-500 !important; - @apply md:text-7xl !important; - @apply leading-tight !important; + @apply mb-6 leading-tight text-5xl text-left bg-gradient-to-r from-reco-primary to-red-500; + @apply md:text-7xl; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; @@ -24,12 +23,12 @@ .xicon-container { @apply mb-4 px-4 h-10 leading-none align-middle border-block rounded-lg bg-reco-primary/90 cursor-pointer font-semibold text-white; @apply dark:text-reco-text-darkmode; - @apply hover:border-reco-primary !important; + @apply hover:border-reco-primary; &.plain { @apply bg-block; } &.text { - @apply bg-transparent px-0 border-0 text-reco-primary !important; + @apply bg-transparent px-0 border-0 text-reco-primary; } &:not(:last-child) { @apply mr-4;