diff --git a/plugins/plugin-md-power/src/client/components/Annotation.vue b/plugins/plugin-md-power/src/client/components/Annotation.vue index 42ecd476..263c945f 100644 --- a/plugins/plugin-md-power/src/client/components/Annotation.vue +++ b/plugins/plugin-md-power/src/client/components/Annotation.vue @@ -2,6 +2,8 @@ import { onClickOutside, useEventListener } from '@vueuse/core' import { computed, nextTick, ref, useTemplateRef, watch } from 'vue' +import '@vuepress/helper/transition/fade-in.css' + const props = defineProps<{ label: string total: number @@ -44,10 +46,15 @@ useEventListener('scroll', updatePosition, { passive: true }) diff --git a/plugins/plugin-md-power/src/client/components/VPDemoBasic.vue b/plugins/plugin-md-power/src/client/components/VPDemoBasic.vue index 9da098f4..be5726bc 100644 --- a/plugins/plugin-md-power/src/client/components/VPDemoBasic.vue +++ b/plugins/plugin-md-power/src/client/components/VPDemoBasic.vue @@ -1,9 +1,11 @@ - - - - diff --git a/plugins/plugin-md-power/src/client/index.ts b/plugins/plugin-md-power/src/client/index.ts index e2068e30..72593733 100644 --- a/plugins/plugin-md-power/src/client/index.ts +++ b/plugins/plugin-md-power/src/client/index.ts @@ -1,3 +1 @@ export * from '../shared/index.js' - -export { default as VPFadeInExpandTransition } from './components/VPFadeInExpandTransition.vue' diff --git a/theme/src/client/components/Blog/VPBlogExtract.vue b/theme/src/client/components/Blog/VPBlogExtract.vue index ea68a092..10e0f744 100644 --- a/theme/src/client/components/Blog/VPBlogExtract.vue +++ b/theme/src/client/components/Blog/VPBlogExtract.vue @@ -7,6 +7,8 @@ import { isLinkHttp } from 'vuepress/shared' import { useBlogExtract, useData } from '../../composables/index.js' import { inBrowser } from '../../utils/index.js' +import '@vuepress/helper/transition/fade-in.css' + const { theme } = useData() const route = useRoute() @@ -60,7 +62,7 @@ const showBlogExtract = computed(() => {
- +
@@ -154,17 +156,6 @@ const showBlogExtract = computed(() => { z-index: var(--vp-z-index-overlay); width: 100%; background-color: rgba(0, 0, 0, 0.3); - opacity: 1; -} - -.blog-modal.fade-enter-from, -.blog-modal.fade-leave-to { - opacity: 0; -} - -.blog-modal.fade-leave-active, -.blog-modal.fade-enter-active { - transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1); } .blog-modal-container { diff --git a/theme/src/client/components/Nav/VPNavScreen.vue b/theme/src/client/components/Nav/VPNavScreen.vue index 6c89ad37..b969b85c 100644 --- a/theme/src/client/components/Nav/VPNavScreen.vue +++ b/theme/src/client/components/Nav/VPNavScreen.vue @@ -6,6 +6,8 @@ import VPNavScreenTranslates from '@theme/Nav/VPNavScreenTranslations.vue' import { useScrollLock } from '@vueuse/core' import { inBrowser } from '../../utils/index.js' +import '@vuepress/helper/transition/fade-in.css' + defineProps<{ open: boolean }>() @@ -15,7 +17,7 @@ const isLocked = useScrollLock(inBrowser ? document.body : null)