-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustom-styles.css
149 lines (128 loc) · 2.06 KB
/
custom-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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
:root {
--black: #000000;
--purple-100: #E8E5FF;
--purple-400: #A399FF;
--purple-600: #7566FF;
}
p {
color: black;
}
html {
scroll-behavior: smooth;
font-family: Inter, 'sans-serif';
}
body {
box-sizing: border-box;
max-width: 100vw;
overflow-x: hidden;
overscroll-behavior: none;
}
button {
border-radius: 8px;
font-weight: 600;
padding: 12px 22px;
transition: all 0.3s ease-out;
cursor: pointer;
background-color: white;
}
button.primary {
border: 1px solid var(--purple-400);
color: var(--purple-600);
}
button.primary:hover {
background-color: var(--purple-100);
transform: translate(2px, 2px);
}
button.secondary {
border: 1px solid var(--black);
color: var(--black);
}
button.secondary:hover {
transform: translate(2px, 2px);
}
@media only screen and (max-width: 640px) {
.btn-small {
font-size: 0.875rem;
padding: 10px;
}
}
a,
.link {
font-weight: 600;
transition: all 0.3s ease-out;
cursor: pointer;
color: inherit;
}
.link {
line-height: 4.5em;
position: relative;
display: inline-block;
}
.link,
.link:hover,
.link:focus,
.link:active {
text-decoration: none;
}
.link::after {
content: "";
position: absolute;
top: 65%;
left: 0%;
height: 2px;
width: 0%;
transition: 0.3s ease all;
background-color: black;
}
.link.white::after {
background-color: white;
}
.link.secondary::after {
width: 70%;
}
.link:hover::after,
.link.selected::after {
width: 100%;
}
.reveal-opacity-on-scroll,
.reveal-opacity {
opacity: 0;
}
.reveal-opacity {
animation: reveal-opacity 2.5s ease-out forwards;
}
.reveal-opacity-on-scroll {
animation-duration: 1.2s;
}
@keyframes reveal-opacity {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.slide-in-on-scroll,
.slide-in {
opacity: 0;
}
.slide-in {
animation: slide-in-anim 1s ease-out forwards;
}
.slide-in-on-scroll {
animation-duration: 0.7s;
}
@keyframes slide-in-anim {
0% {
opacity: 0;
transform: translateX(-15%);
}
35% {
opacity: 0;
transform: translateX(-8%);
}
100% {
opacity: 1;
transform: translateX(0%);
}
}