-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
106 lines (94 loc) · 2.26 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<script setup lang="ts">
const route = useRoute()
const mainKey = ref(route.fullPath)
onActivated(() => {
mainKey.value = route.fullPath
})
onDeactivated(() => {
mainKey.value = ''
})
</script>
<template>
<div class="min-h-screen flex flex-col">
<Navbar />
<Sidebar />
<Toc />
<section class="content mx-30">
<NuxtPage :transition="{ name: 'slide', mode: 'out-in', appear: true }" />
</section>
</div>
</template>
<style>
.slide-enter-active,
.fade-enter-active,
.blur-enter-active,
.scale-enter-active {
transition: all var(--t-transform);
}
.slide-enter-from {
opacity: 0;
transform: translateX(-50px);
}
.fade-enter-from {
opacity: 0;
}
.blur-enter-from {
opacity: 0;
filter: blur(0.5rem);
}
.scale-enter-from {
opacity: 0;
transform: scale(0.9);
}
.content {
padding-top: var(--doc-navbar-height);
padding-left: var(--doc-sidebar-width);
padding-right: var(--doc-sidebar-width);
padding-bottom: 2rem;
display: block;
}
.content :deep(a):hover {
text-decoration: underline;
}
.content :deep(img) {
max-width: 100%;
}
.content :deep(h1),
.content :deep(h2),
.content :deep(h3),
.content :deep(h4),
.content :deep(h5),
.content :deep(h6) {
margin-top: calc(0.5rem - var(--doc-navbar-height));
padding-top: calc(1rem + var(--doc-navbar-height));
margin-bottom: 0;
}
.content :deep(h1):first-child,
.content :deep(h2):first-child,
.content :deep(h3):first-child,
.content :deep(h4):first-child,
.content :deep(h5):first-child,
.content :deep(h6):first-child {
margin-bottom: 1rem
}
.content :deep(h1):first-child+p,
.content :deep(h1):first-child+pre,
.content :deep(h1):first-child+.custom-container,
.content :deep(h2):first-child+p,
.content :deep(h2):first-child+pre,
.content :deep(h2):first-child+.custom-container,
.content :deep(h3):first-child+p,
.content :deep(h3):first-child+pre,
.content :deep(h3):first-child+.custom-container,
.content :deep(h4):first-child+p,
.content :deep(h4):first-child+pre,
.content :deep(h4):first-child+.custom-container,
.content :deep(h5):first-child+p,
.content :deep(h5):first-child+pre,
.content :deep(h5):first-child+.custom-container,
.content :deep(h6):first-child+p,
.content :deep(h6):first-child+pre,
.content :deep(h6):first-child+.custom-container {
margin-top: 2rem
}
</style>