aboutsummaryrefslogtreecommitdiff
path: root/src/index.css
blob: 8e8b70f1a6a28f9799789429f6f79f6c5e8b9cf1 (plain)
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
116
117
118
/* From Tailwind */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* For transitions/animations */
.fade-enter-from, .fade-leave-to {
	opacity: 0;
}
.fade-enter-active, .fade-leave-active {
	transition-property: opacity;
	transition-duration: 300ms;
	transition-timing-function: ease-out;
}
.fadeslow-enter-from, .fadeslow-leave-to {
	opacity: 0;
}
.fadeslow-enter-active {
	transition-property: opacity;
	transition-duration: 300ms;
	transition-timing-function: ease-out;
}
.fadeslow-leave-active {
	transition-property: opacity;
	transition-duration: 1000ms;
	transition-timing-function: linear;
}
.fadein-leave-to {
	opacity: 0;
}
.fadein-leave-active {
	transition-property: opacity;
	transition-duration: 300ms;
	transition-timing-function: ease-out;
}
.animate-expand-shrink {
	animation-name: expand-shrink;
	animation-duration: 300ms;
	animation-iteration-count: 1;
	animation-timing-function: ease-in-out;
}
@keyframes expand-shrink {
	from {
		transform: scale(1, 1);
	}
	50% {
		transform: scale(1.1, 1.1);
	}
	to {
		transform: scale(1, 1);
	}
}
.animate-shrink-expand {
	animation-name: shrink-expand;
	animation-duration: 300ms;
	animation-iteration-count: 1;
	animation-timing-function: ease-in-out;
}
@keyframes shrink-expand {
	from {
		transform: translate3d(0,0,0) scale(1, 1);
	}
	50% {
		transform: translate3d(0,0,0) scale(0.9, 0.9);
	}
	to {
		transform: translate3d(0,0,0) scale(1, 1);
	}
}
.animate-red-then-fade {
	animation-name: red-then-fade;
	animation-duration: 500ms;
	animation-timing-function: ease-in;
}
@keyframes red-then-fade {
	from {
		background-color: rgba(255,0,0,0.2);
	}
	to {
		background-color: transparent;
	}
}
.animate-flash-green {
	animation-name: flash-green;
	animation-duration: 700ms;
	animation-timing-function: ease-in;
}
@keyframes flash-green {
	from {
		color: lawngreen;
	}
	to {
		color: inherit;
	}
}

/* Other */
@font-face {
	font-family: Ubuntu;
	src: url('/font/Ubuntu-Regular.woff2');
}
body {
	font-family: Ubuntu, system-ui, sans-serif;
	touch-action: manipulation; /* Prevents non-standard gestures such as double-tap to zoom */
}
a {
	@apply hover:underline hover:cursor-pointer;
}
::-webkit-scrollbar {
	background-color: #1c1917;
	width: 12px;
	height: 12px;
}
::-webkit-scrollbar-thumb {
	background: #65a30d;
	border-radius: 5px;
	border: 3px solid #1c1917;
}