-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.css
71 lines (59 loc) · 1.57 KB
/
main.css
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
html, body, #__nuxt {
width: 100%;
height: 100%;
scroll-behavior: smooth;
}
.post {
@apply prose max-w-none;
@apply prose-h1:font-main prose-h1:text-2xl prose-h1:font-bold prose-h1:text-primary;
@apply prose-h2:font-main prose-h2:text-xl prose-h2:font-medium prose-h2:text-primary prose-h2:mt-8 prose-h2:mb-4;
@apply prose-h3:font-main prose-h3:text-lg prose-h3:font-medium prose-h3:text-primary prose-h3:mt-8 prose-h3:mb-4;
@apply prose-p:text-primary prose-p:font-light;
@apply prose-a:font-semibold prose-a:text-accent prose-a:no-underline hover:prose-a:underline;
@apply prose-ul:text-primary prose-ul:font-light prose-ul:leading-5;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 5px;
height: 5px;
}
::-webkit-scrollbar-track {
background: var(--primary);
}
::-webkit-scrollbar-thumb {
background: var(--accent);
border-radius: 4px;
}
/* Fade-in animation between pages */
.fade-enter-active,
.fade-leave-active {
transition: opacity .2s;
}
.fade-enter, .fade-leave-to {
opacity: 0;
}
/* Delayed fade-in animation */
@keyframes enter {
0% {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: none;
}
}
[data-animate] {
--stagger: 0;
--delay: 230ms;
--start: 0ms;
}
@media (prefers-reduced-motion: no-preference) {
[data-animate] {
animation: enter 0.6s both;
animation-delay: calc(var(--stagger) * var(--delay) + var(--start));
}
}
[data-animation-controller="false"] [data-animate] {
animation: none;
}