-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Expand file tree
/
Copy pathApp.vue
More file actions
55 lines (46 loc) · 954 Bytes
/
App.vue
File metadata and controls
55 lines (46 loc) · 954 Bytes
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
<template>
<router-view />
</template>
<script setup>
import { onMounted } from 'vue'
import { useI18n } from 'vue-i18n'
import { getStoredLocale } from './i18n'
// Sync html lang attribute on mount
onMounted(() => {
const locale = getStoredLocale()
document.documentElement.lang = locale === 'zh' ? 'zh-CN' : 'en'
})
</script>
<style>
/* 全局样式重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#app {
font-family: 'JetBrains Mono', 'Space Grotesk', 'Noto Sans SC', monospace;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #000000;
background-color: #ffffff;
}
/* 滚动条样式 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #000000;
}
::-webkit-scrollbar-thumb:hover {
background: #333333;
}
/* 全局按钮样式 */
button {
font-family: inherit;
}
</style>