From b97d62134a0bb218a7e05dd1a13f008afb6add99 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 18 Feb 2024 01:00:55 +0530 Subject: [PATCH] fix style conflicts with team page and sponsor components --- .../theme-default/components/VPHome.vue | 9 ++---- .../components/VPHomeContent.vue | 27 ++++++++++++++++- .../components/VPHomeSponsors.vue | 29 +++++++++++++++++-- .../theme-default/components/VPTeamPage.vue | 9 ++++-- .../styles/components/vp-doc.css | 4 +++ .../styles/components/vp-sponsor.css | 4 +-- 6 files changed, 68 insertions(+), 14 deletions(-) diff --git a/src/client/theme-default/components/VPHome.vue b/src/client/theme-default/components/VPHome.vue index e08e7592..bec5c52f 100644 --- a/src/client/theme-default/components/VPHome.vue +++ b/src/client/theme-default/components/VPHome.vue @@ -32,17 +32,12 @@ const { frontmatter } = useData() diff --git a/src/client/theme-default/components/VPHomeContent.vue b/src/client/theme-default/components/VPHomeContent.vue index a3385467..fe689b6e 100644 --- a/src/client/theme-default/components/VPHomeContent.vue +++ b/src/client/theme-default/components/VPHomeContent.vue @@ -1,5 +1,14 @@ + + @@ -24,4 +33,20 @@ padding: 0 64px; } } + +.vp-doc :deep(.VPHomeSponsors), +.vp-doc :deep(.VPTeamPage) { + margin-left: var(--vp-offset, calc(50% - 50vw)); + margin-right: var(--vp-offset, calc(50% - 50vw)); +} + +.vp-doc :deep(.VPHomeSponsors h2) { + border-top: none; + letter-spacing: normal; +} + +.vp-doc :deep(.VPHomeSponsors a), +.vp-doc :deep(.VPTeamPage a){ + text-decoration: none; +} diff --git a/src/client/theme-default/components/VPHomeSponsors.vue b/src/client/theme-default/components/VPHomeSponsors.vue index 44878a94..1343e776 100644 --- a/src/client/theme-default/components/VPHomeSponsors.vue +++ b/src/client/theme-default/components/VPHomeSponsors.vue @@ -49,8 +49,33 @@ withDefaults(defineProps(), {