-
Notifications
You must be signed in to change notification settings - Fork 60
/
app.vue
86 lines (77 loc) · 1.44 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<script setup lang="ts">
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { ElConfigProvider } from 'element-plus'
import { appName } from '~/constants'
onHydrated(() => {
console.log(isHydrated.value)
})
useHead({
title: appName,
})
</script>
<template>
<NuxtLayout>
<NuxtLoadingIndicator />
<UNotifications :ui="{ wrapper: 'z-[9999]', width: 'w-full md:w-80' }" />
<ElConfigProvider :locale="zhCn">
<NuxtPage />
</ElConfigProvider>
</NuxtLayout>
</template>
<style>
html, body , #__nuxt{
height: 100vh;
margin: 0;
padding: 0;
}
html.dark {
color-scheme: dark;
background: #121212;
color: white;
}
html.dark .shiki-light {
display: none;
}
html:not(.dark) .shiki-dark {
display: none;
}
html.dark ::-moz-selection {
background: #444;
}
html.dark ::selection {
background: #444;
}
::view-transition-old(root),
::view-transition-new(root) {
animation: none;
mix-blend-mode: normal;
}
::view-transition-old(root) {
z-index: 1;
}
::view-transition-new(root) {
z-index: 2147483646;
}
.dark::view-transition-old(root) {
z-index: 2147483646;
}
.dark::view-transition-new(root) {
z-index: 1;
}
.page-enter-active,
.page-leave-active {
transition: all 0.4s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
filter: blur(1rem);
}
@font-face {
font-family: 'LXGWNeoXiHei';
src: url('public/fonts/LXGWNeoXiHei.ttf');
font-weight: normal;
font-style: normal;
font-display: swap;
}
</style>