From 2e856d728524d990fb5e1fedbc199b8e1f6edbb2 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Tue, 25 Apr 2023 21:26:40 +0800 Subject: [PATCH] fix ads css --- docs/.vuepress/components/HomePage.vue | 7 ++++++- docs/.vuepress/components/NormalPage.vue | 19 +++++++++++++------ docs/.vuepress/components/Sidebar.vue | 1 + 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/docs/.vuepress/components/HomePage.vue b/docs/.vuepress/components/HomePage.vue index 68356221e..d29aff323 100644 --- a/docs/.vuepress/components/HomePage.vue +++ b/docs/.vuepress/components/HomePage.vue @@ -43,9 +43,14 @@ const spStr = computed(() => { } .mingdao { + display: flex; + justify-content: center; + a { + max-width: min(500px, 100%); + img { - max-width: 500px; + width: 100%; } } } diff --git a/docs/.vuepress/components/NormalPage.vue b/docs/.vuepress/components/NormalPage.vue index f82fd22c8..744cf8fcf 100644 --- a/docs/.vuepress/components/NormalPage.vue +++ b/docs/.vuepress/components/NormalPage.vue @@ -4,8 +4,10 @@
- {{ spStr }} + target="_blank"> + + {{ spStr }} +
@@ -42,15 +44,20 @@ const spStr = computed(() => { justify-content: center; a { - max-width: 500px; + max-width: min(500px, 100%); + position: relative; img { width: 100%; } - } - span { - font-size: small; + span { + font-size: small; + color: #999; + position: absolute; + right: 10px; + bottom: 10px; + } } } diff --git a/docs/.vuepress/components/Sidebar.vue b/docs/.vuepress/components/Sidebar.vue index 09eb4c1a2..2cd0254f6 100644 --- a/docs/.vuepress/components/Sidebar.vue +++ b/docs/.vuepress/components/Sidebar.vue @@ -46,5 +46,6 @@ const spStr = computed(() => { width: 70%; text-align: right; font-size: small; + color: #999; } } \ No newline at end of file