-
Notifications
You must be signed in to change notification settings - Fork 3
/
App.vue
executable file
·78 lines (77 loc) · 1.91 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
<script>
export default {
onLaunch: function () {
console.log('App Launch')
},
onShow: function () {
console.log('App Show')
},
onHide: function () {
console.log('App Hide')
}
}
</script>
<style>
/* 默认主题 */
:root {
--Default-background-color: #F2F2F2;
--Highlight-background-color: #FFFFFF;
--text-color: #24292E;
--text-active-color: #C9D1D9;
--border-color: #E1E4E8;
--hover-color: #FF3C46;
--hover-border-color: #F9826C;
--btn-text-color: #FF3C46;
--btn-backgroud-color: #FFFFFF;
--tabbar-background-color: #161B22;
--green: #39B54A;
--orange: #FF4500;
}
/*浅色主题 */
@media (prefers-color-scheme: light) {
:root {
--Default-background-color: #F2F2F2;
--Highlight-background-color: #FFFFFF;
--text-color: #24292E;
--text-active-color: #C9D1D9;
--border-color: #E1E4E8;
--hover-color: #FF3C46;
--hover-border-color: #F9826C;
--btn-text-color: #FF3C46;
--btn-backgroud-color: #FFFFFF;
--tabbar-background-color: #161B22;
--green: #39B54A;
--orange: #FF4500;
--blue: #0081FF;
}
}
/* 深色主题 */
@media (prefers-color-scheme: dark) {
:root {
--Default-background-color: #0D1117;
--Highlight-background-color: #161B22;
--text-color: #8B949E;
--text-active-color: #C9D1D9;
--border-color: #30363D;
--hover-color: #FF3C46;
--hover-border-color: #F9826C;
--btn-text-color: #FF3C46;
--btn-backgroud-color: #FFFFFF;
--tabbar-background-color: #161B22;
--green: #39B54A;
--orange: #FF4500;
--blue: #0081FF;
}
}
body {
color: var(--text-color);
background-color: var(--Default-background-color) !important;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
transition: background-color 0.3s;
}
</style>