Skip to content

Commit 94227bf

Browse files
committed
style(docs-v3): fix banner and header overlap on mobile
1 parent 322b6bb commit 94227bf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/.vitepress/theme/Layout.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ const { Layout } = DefaultTheme;
1313
visit <a href="../v2/`" target="_self">v2</a>.
1414
</div>
1515
<component v-if="isPrerelease" :is="'style'">
16-
:root { --vp-layout-top-height: 37px; }
17-
.VPHome { margin-bottom: 96px !important; }
16+
:root { --vp-layout-top-height: 65px; }
17+
.VPHome { margin-bottom: 80px !important; }
18+
@media (min-width: 769px) {
19+
:root { --vp-layout-top-height: 37px; }
20+
.VPHome { margin-bottom: 96px !important; }
21+
}
1822
</component>
1923
</template>
2024
</Layout>
2125
</template>
2226

2327
<style scoped>
28+
2429
.prerelease-banner.top-banner {
2530
background: #fff3cd;
2631
border-bottom: 1px solid #ffc107;

0 commit comments

Comments
 (0)