mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
458 B
28 lines
458 B
<script lang="ts" setup>
|
|
import { useData } from 'vitepress'
|
|
import VPSocialLinks from './VPSocialLinks.vue'
|
|
|
|
const { theme } = useData()
|
|
</script>
|
|
|
|
<template>
|
|
<VPSocialLinks
|
|
v-if="theme.socialLinks"
|
|
class="VPNavBarSocialLinks"
|
|
:links="theme.socialLinks"
|
|
/>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.VPNavBarSocialLinks {
|
|
display: none;
|
|
}
|
|
|
|
@media (min-width: 1280px) {
|
|
.VPNavBarSocialLinks {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
</style>
|