-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.css
97 lines (75 loc) · 2.18 KB
/
global.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
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
@import url('https://fonts.googleapis.com/css2?family=Vollkorn&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap');
:root {
--background: #E9E3DC;
--gridlines: #7E7E73;
--serious-text: #121212;
--whimsy-text: #3B2521;
--contrast-text: #FEFEFE;
--accent: #59969B;
--button: #3B2521;
/* i <3 quarks */
--up: #B4A79C;
--down: #D1C9C2;
--charm: #272140;
--strange: #212121;
--top: #D9D9D9;
--bottom: #214026;
--selection: lightblue;
--link: #278a93;
--hero-border: #7E7E7E;
}
html { scroll-behavior: smooth; }
body {
font-family: 'Vollkorn', serif;
background-color: var(--background);
color: var(--whimsy-text);
}
/* overrides */
a { color: var(--link); text-decoration: underline 1px dotted; }
a:hover { text-decoration: underline 2px; }
::selection { background-color: var(--selection); }
img { user-select: none; }
p { line-height: 1.5rem; }
/* styles */
.serious { color: var(--serious-text); }
.whimsy { color: var(--whimsy-text); }
.contrast { color: var(--contrast-text); }
.serif { font-family: 'Vollkorn', serif; }
.mono { font-family: 'Space Mono', monospace; }
.handwriting { font-family: 'Gloria Hallelujah', sans-serif; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.no-select { user-select: none; }
.no-pointer { pointer-events: none; }
/* doodads */
/* a.button */
.button {
display: flex;
}
.button > a {
transition-property: transform;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 0.15s;
font-size: 1.5rem;
line-height: 2rem;
padding: 0.5rem 2rem;
margin-top: 1rem;
margin-bottom: 1rem;
background-color: var(--button);
color: var(--contrast-text);
text-decoration: none;
border-radius: 0.5rem;
user-select: none;
}
.button:not(:hover) > a {
transform: translateY(0);
}
.button:hover > a {
transform: translate(0, -8px);
text-decoration: none;
}
/* mobile */
@media (max-width: 600px) { .hide-mobile { display: none; } }