|
|
@ -1,6 +1,7 @@
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { useData } from 'vitepress'
|
|
|
|
import { useData } from 'vitepress'
|
|
|
|
import VPFlyout from './VPFlyout.vue'
|
|
|
|
import VPFlyout from './VPFlyout.vue'
|
|
|
|
|
|
|
|
import VPMenuLink from './VPMenuLink.vue'
|
|
|
|
import VPSwitchAppearance from './VPSwitchAppearance.vue'
|
|
|
|
import VPSwitchAppearance from './VPSwitchAppearance.vue'
|
|
|
|
import VPSocialLinks from './VPSocialLinks.vue'
|
|
|
|
import VPSocialLinks from './VPSocialLinks.vue'
|
|
|
|
|
|
|
|
|
|
|
@ -10,21 +11,15 @@ const { site, theme } = useData()
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<VPFlyout class="VPNavBarExtra" label="extra navigation">
|
|
|
|
<VPFlyout class="VPNavBarExtra" label="extra navigation">
|
|
|
|
<div v-if="theme.localeLinks" class="group">
|
|
|
|
<div v-if="theme.localeLinks" class="group">
|
|
|
|
<div class="trans">
|
|
|
|
<p class="trans-title">{{ theme.localeLinks.text }}</p>
|
|
|
|
<p class="trans-title">
|
|
|
|
|
|
|
|
{{ theme.localeLinks.text }}
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ul class="trans-list">
|
|
|
|
<template v-for="locale in theme.localeLinks.items" :key="locale.link">
|
|
|
|
<li v-for="locale in theme.localeLinks.items" :key="locale.link" class="trans-item">
|
|
|
|
<VPMenuLink :item="locale" />
|
|
|
|
<a class="trans-link" :href="locale.link">{{ locale.text }}</a>
|
|
|
|
</template>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="site.appearance" class="group">
|
|
|
|
<div v-if="site.appearance" class="group">
|
|
|
|
<div class="item">
|
|
|
|
<div class="item appearance">
|
|
|
|
<p class="label">Appearance</p>
|
|
|
|
<p class="label">Appearance</p>
|
|
|
|
<div class="appearance-action">
|
|
|
|
<div class="appearance-action">
|
|
|
|
<VPSwitchAppearance />
|
|
|
|
<VPSwitchAppearance />
|
|
|
@ -33,8 +28,8 @@ const { site, theme } = useData()
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="theme.socialLinks" class="group">
|
|
|
|
<div v-if="theme.socialLinks" class="group">
|
|
|
|
<div class="item">
|
|
|
|
<div class="item social-links">
|
|
|
|
<VPSocialLinks class="social-links" :links="theme.socialLinks" />
|
|
|
|
<VPSocialLinks class="social-links-list" :links="theme.socialLinks" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</VPFlyout>
|
|
|
|
</VPFlyout>
|
|
|
@ -63,45 +58,29 @@ const { site, theme } = useData()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.trans-title {
|
|
|
|
.trans-title {
|
|
|
|
display: flex;
|
|
|
|
padding: 0 24px 0 12px;
|
|
|
|
align-items: center;
|
|
|
|
line-height: 32px;
|
|
|
|
font-size: 13px;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 600;
|
|
|
|
font-weight: 700;
|
|
|
|
color: var(--vp-c-text-1);
|
|
|
|
color: var(--vp-c-text-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.trans-icon {
|
|
|
|
.item.appearance,
|
|
|
|
margin-right: 12px;
|
|
|
|
.item.social-links {
|
|
|
|
width: 16px;
|
|
|
|
|
|
|
|
height: 16px;
|
|
|
|
|
|
|
|
fill: currentColor;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.trans-list {
|
|
|
|
|
|
|
|
padding: 2px 0 0 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.trans-link {
|
|
|
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
|
|
color: var(--vp-c-text-1);
|
|
|
|
|
|
|
|
transition: color 0.25s;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.trans-link:hover {
|
|
|
|
|
|
|
|
color: var(--vp-c-brand);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.item {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
padding: 0 24px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.item.appearance {
|
|
|
|
|
|
|
|
min-width: 176px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.appearance-action {
|
|
|
|
.appearance-action {
|
|
|
|
margin-right: -2px;
|
|
|
|
margin-right: -2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.social-links {
|
|
|
|
.social-links-list {
|
|
|
|
margin: -4px -8px;
|
|
|
|
margin: -4px -8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|