-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.css
122 lines (97 loc) · 1.52 KB
/
app.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/* ----- CONFIG ----- */
:root {
--gap: 1.5rem;
--margin-top: 1.5rem;
--margin-x: 1.75rem;
}
/* ----- RESETS ----- */
html {
box-sizing: border-box;
}
*, *::before, *::after {
box-sizing: inherit;
}
body {
font-weight: 400;
margin: 0;
padding: 0;
}
/* ----- BASE ----- */
:any-link {
background-color: transparent;
}
*:first-child {
margin-top: 0;
}
*:last-child {
margin-bottom: 0;
}
html {
background: linear-gradient(
to bottom,
#3bd961 15%,
#0eb7f5 50%,
#0eb7f5 90%,
#00759e
);
min-height: 100vh;
width: 100vw;
}
body {
color: #000;
display: flex;
flex-direction: column;
font-family: 'Segoe UI', 'Consolas', 'Lucida Console', sans-serif;
line-height: 1.5;
min-height: 100vh;
padding-top: var(--margin-top);
}
body > * {
padding: 0 var(--margin-x);
}
body > * + * {
margin-top: var(--gap);
}
ol {
list-style-position: inside;
padding: 0;
}
sup {
font-size: 0.5em;
vertical-align: super;
}
/* ----- COMPONENTS ----- */
#head {
flex-shrink: 0;
font-size: 6rem;
font-weight: 500;
}
#main {
flex-grow: 1;
font-size: 1rem;
}
#foot {
background-color: #ffffff40;
border-top: 1px solid #fff2;
flex-shrink: 0;
font-size: 0.75rem;
padding: 1.5em var(--margin-x);
}
#foot :any-link {
color: #006;
}
/* ----- OVERRIDES ----- */
@media (min-width: 60em) { /* desktop */
:root {
--gap: 2rem;
--margin-top: 4rem;
--margin-x: 3rem;
}
#main {
font-size: 1.5rem;
}
#foot {
font-size: 1rem;
font-weight: 300;
}
}