-
Notifications
You must be signed in to change notification settings - Fork 0
/
og.css
113 lines (100 loc) · 1.96 KB
/
og.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
@font-face {
font-family: "Ninna";
font-weight: normal;
font-style: normal;
font-display: swap;
src: url("/ninna.woff2") format("woff2");
}
@font-face {
font-family: "GT America";
font-weight: normal;
font-style: normal;
font-display: swap;
src: url("/gt-america.woff2");
}
@font-face {
font-family: "GT America Mono";
font-weight: normal;
font-style: normal;
font-display: swap;
src: url("/gt-america-mono.woff2");
}
*,
*:before,
*:after {
box-sizing: border-box;
}
body {
position: relative;
min-height: 100vh;
margin: 0;
color: hsl(0, 0%, 1%);
background-color: hsl(30, 12%, 97%);
background-size: cover;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body:before {
position: absolute;
position: fixed;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
width: 100vw;
height: 100vh;
content: "";
pointer-events: none;
border: 1rem solid currentColor;
}
body:after {
position: absolute;
top: 0;
left: 0;
width: 10rem;
height: 100vh;
content: "";
background-image: url('/gradient.jpg');
background-attachment: fixed;
background-size: cover;
}
main {
position: absolute;
top: calc(50% - 10rem);
left: 14rem;
}
h1 {
font-family: "Ninna";
font-size: 5rem;
font-weight: normal;
font-feature-settings: "ss13" on, "ss07" on;
line-height: 1.1;
margin-top: 0;
margin-bottom: 0;
text-transform: uppercase;
color: hsl(0, 0%, 77%);
}
h2 {
font-family: "GT America Mono";
font-size: 1.5rem;
font-weight: normal;
max-width: 40ch;
margin-bottom: 3rem;
text-transform: uppercase;
text-wrap: balance;
}
pre {
font-family: "GT America";
font-size: 1.5rem;
line-height: 1.5;
max-width: 50ch;
height: 10rem;
margin-top: 0;
margin-bottom: 2rem;
white-space: pre-line;
text-overflow: ellipsis;
mask-image: linear-gradient(hsl(0, 0%, 0%), transparent);
-webkit-mask-image: linear-gradient(hsl(0, 0%, 0%), transparent);
}