-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
115 lines (93 loc) · 1.98 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
107
108
109
110
111
112
113
114
115
<template>
<NuxtLayout>
<NuxtPage />
<Menu v-if="menu" :x="menu.x" :y="menu.y" :options="menu.options" />
<div id="backdrop" :class="{ visible: showCurtain }" @click="closeDialog" />
</NuxtLayout>
</template>
<script lang="ts" setup>
const showCurtain = useIsDialogOpen()
useHead({
titleTemplate: s => (s ? `Atlas - ${s}` : 'Atlas'),
})
const menu = useMenu()
</script>
<style scoped>
#backdrop {
@apply transition-colors;
pointer-events: none;
position: fixed;
z-index: 1001;
top: 0;
left: 0;
height: 100vh;
width: 100vw;
}
#backdrop.visible {
pointer-events: unset;
background: #0003;
}
</style>
<style>
body {
@apply bg-solid-800 transition-colors;
@apply text-black;
@apply accent-accent-500;
color-scheme: light;
--solid-50: theme(colors.solid.light-50);
@for $i from 100 to 900 by 100 {
--solid-$(i): theme(colors.solid.light-$(i));
--accent-$(i): theme(colors.accent.light-$(i));
}
}
.dark-mode body {
@apply text-white;
color-scheme: dark;
--solid-50: theme(colors.solid.dark-50);
@for $i from 100 to 900 by 100 {
--solid-$(i): theme(colors.solid.dark-$(i));
--accent-$(i): theme(colors.accent.dark-$(i));
}
}
.sepia-mode body {
@apply text-white;
color-scheme: dark;
--solid-50: theme(colors.solid.sepia-50);
@for $i from 100 to 900 by 100 {
--solid-$(i): theme(colors.solid.sepia-$(i));
--accent-$(i): theme(colors.accent.sepia-$(i));
}
}
h1 {
@apply text-e-5xl pb-5 font-bold;
}
h2 {
@apply text-e-4xl pb-4 font-bold;
}
h3 {
@apply text-e-3xl pb-3;
}
h4 {
@apply text-e-2xl pb-2;
}
h5 {
@apply text-e-xl pb-1;
}
h6 {
@apply text-e-base;
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: var(--solid-600);
border-radius: 9999px;
}
::-webkit-scrollbar-thumb {
background: var(--solid-400);
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--solid-300);
}
</style>