fix(theme-yun): footer icon.animated, close #203

This commit is contained in:
YunYouJun 2023-04-02 19:15:57 +08:00
parent 2d7d0d6c1c
commit f04ff18fad
5 changed files with 13 additions and 5 deletions

View File

@ -53,6 +53,9 @@ export default defineValaxyConfig<ThemeConfig>({
enable: true,
icp: '苏ICP备17038157号',
},
icon: {
animated: true,
},
},
},

View File

@ -62,7 +62,7 @@ For example, you can override the default font in 'styles/css-vars.scss'.
```scss
:root {
--va-font-serif: 'Noto Serif SC', STZhongsong, STKaiti, KaiTi, Roboto, serif;
--va-font-serif: 'Noto Serif SC', STZhongsong, STKaiti, KaiTi, Roboto, serif;
--va-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
--va-font-mono: Menlo, Monaco, Consolas, "Courier New", monospace;
}

View File

@ -40,7 +40,12 @@ const footerIcon = computed(() => themeConfig.value.footer.icon || {
{{ year }}
</span>
<a v-if="themeConfig.footer.icon?.enable" class="inline-flex animate-pulse" :href="footerIcon.url" target="_blank" :title="footerIcon.title">
<a
v-if="themeConfig.footer.icon?.enable"
class="inline-flex"
:class="themeConfig.footer.icon.animated ? 'animate-pulse' : ''"
:href="footerIcon.url" target="_blank" :title="footerIcon.title"
>
<div :class="footerIcon.name" />
</a>
<span>{{ siteConfig.author.name }}</span>

View File

@ -143,7 +143,7 @@ export interface ThemeConfig {
/**
* Icon between year and copyright info.
*/
icon: {
icon: Partial<{
/**
* icon name, i-xxx
*/
@ -153,7 +153,7 @@ export interface ThemeConfig {
color: string
url: string
title: string
}
}>
/**
* Powered by valaxy & valaxy-theme-${name}, default is yun

View File

@ -20,7 +20,7 @@ $border: map.merge(
$font: () !default;
$font: map.merge(
(
"serif": "'Noto Serif SC', STZhongsong, Roboto, serif",
"serif": "'Noto Serif SC', STZhongsong, STKaiti, KaiTi, Roboto, serif",
"sans":
'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
"mono": 'Menlo, Monaco, Consolas, "Courier New", monospace',