Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
117 lines (99 loc) · 2.06 KB
/
Copy pathstyles.css
File metadata and controls
117 lines (99 loc) · 2.06 KB
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
* {
box-sizing: border-box;
}
html,
body {
min-height: 100%;
}
body {
margin: 0;
font-family: "Quicksand", sans-serif;
}
.gradientAnimation {
display: grid;
min-height: 100vh;
min-height: 100svh;
place-items: center;
padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
background: linear-gradient(45deg, #ff0000, #03ff25, #0228fd);
background-size: 600% 100%;
animation: gradient 16s linear infinite alternate;
}
.profile {
width: min(100%, 40rem);
text-align: center;
}
h1 {
margin: 0;
overflow-wrap: anywhere;
font-size: clamp(2.25rem, 10vw, 4rem);
}
.profile p {
margin: 0.75rem 0 1.25rem;
font-size: clamp(1rem, 4vw, 1.25rem);
}
.social-links {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.75rem;
}
.social-link {
display: grid;
width: 3rem;
height: 3rem;
place-items: center;
border: 1px solid #888484;
border-radius: 50%;
background: #000;
opacity: 0.9;
transition: opacity 0.2s, transform 0.2s;
touch-action: manipulation;
}
.social-link img {
width: 1.25rem;
height: 1.25rem;
object-fit: contain;
}
.social-link:hover {
opacity: 1;
transform: translateY(-2px);
}
.social-link:focus-visible {
outline: 3px solid #fff;
outline-offset: 3px;
}
#fader {
position: fixed;
z-index: 1;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
background: #fff;
animation-duration: 700ms;
animation-timing-function: ease-in-out;
}
#fader.fade-out {
opacity: 0;
animation-name: fade-out;
}
@keyframes fade-out {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes gradient {
from { background-position: 0%; }
to { background-position: 100%; }
}
@media (prefers-reduced-motion: reduce) {
.gradientAnimation {
animation: none;
}
.social-link {
transition: none;
}
#fader {
display: none;
}
}