-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
134 lines (109 loc) · 2.57 KB
/
styles.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
123
124
125
126
127
128
129
130
131
132
133
134
@import url('https://fonts.googleapis.com/css2?family=Figtree&display=swap');
html,
body {
font-size: 16px;
box-sizing: border-box;
font-family: "Figtree", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
margin: 0;
padding: 0;
}
.noselect {
-webkit-touch-callout: none;
/* iOS Safari */
-webkit-user-select: none;
/* Safari */
-khtml-user-select: none;
/* Konqueror HTML */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
/* Non-prefixed version, currently supported by Chrome and Opera */
}
.bg {
background: url("background-tiny.jpg") no-repeat center fixed;
background-image: linear-gradient(90deg, rgb(0 0 0 / 100%), rgb(0 0 0 / 50%)), url(background-tiny.jpg);
background-size: cover;
background-position: center;
background-attachment: fixed;
background-repeat: no-repeat;
}
.content {
padding: 2rem;
padding-top: clamp(2rem, 25vh, 15rem);
color: white;
font-size: clamp(1rem, 2.5vw, 2rem);
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
align-items: flex-start;
flex-direction: column;
justify-content: center;
width: max(50vw, 1440px);
margin: 0 auto;
}
hgroup h1 {
margin-bottom: 0;
text-shadow: 2px 2px 4px green, -2px -2px 4px green;
}
hgroup p {
margin-top: 0;
color: #a0a0a0;
}
.code {
line-height: clamp(0.5em, 1.5vw, 0.6em);
overflow-y: hidden;
}
.type {
white-space: nowrap;
font-size: clamp(0.5em, 1.5vw, 0.6em);
font-family: monospace;
color: #0000;
background:
linear-gradient(-90deg, green 2px, #0000 0) 2px 0,
linear-gradient(#535353 0 0) 0 0;
background-size: calc(var(--n)*1ch) 200%;
-webkit-background-clip: padding-box, text;
background-clip: padding-box, text;
background-repeat: no-repeat;
animation:
blink-caret .7s infinite steps(1),
typing calc(var(--n)*.2s) steps(var(--n)) forwards;
}
@keyframes typing {
from {
background-size: 0 200%
}
}
@keyframes blink-caret {
50% {
background-position: 0 -100%, 0 0
}
}
footer {
width: 100%;
color: lightgray;
font-size: clamp(0.45rem, 2.5vw, 0.8rem);
position: fixed;
bottom: 0;
display: flex;
justify-content: space-between;
align-items: flex-end;
/*flex-wrap: wrap;*/
}
footer span {
padding: 1rem;
}
footer .unsplash {
text-align: right;
}
footer a {
color: lightgray;
}