-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
232 lines (189 loc) · 3.59 KB
/
style.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--ff-body: 'Montserrat', sans-serif;
--bg-color: hsla(240, 5%, 7%, 1);
--bg-color-secondary: hsla(240, 5%, 16%, 1);
--fc-body-primary: hsla(0, 0%, 100%, 1);
--fc-body-secondary: hsla(0, 0%, 76%, 1);
font-size: 62.5%; /* 10px */
}
body {
background-image: url(./background/stars.svg);
background-position: top center;
background-size: 100% auto;
background-repeat: no-repeat;
background-color: var(--bg-color);
}
body * {
font-family: var(--ff-body);
line-height: 160%;
}
.page {
max-width: 840px;
margin: auto;
}
header {
min-width: 34rem;
height: 15.2rem;
padding-top: 3.2rem;
}
header div {
width: 12rem;
margin: auto;
background-image: linear-gradient(90deg, #C91842 0%, #5CC2E2 100%);
border-radius: 50%;
display: flex;
padding: 0.4rem;
transition: transform .3s;
}
header div:hover {
transform: scale(1.2);
}
header div img {
width: 100%;
border-radius: 50%;
}
main {
min-width: 34rem;
width: 90%;
margin: 3.2rem auto;
display: grid;
gap: 2.4rem;
}
ul {
list-style: none;
}
section {
padding-top: .4rem;
background-image: linear-gradient(90deg, #C91842 0%, #5CC2E2 100%);
border-radius: .8rem;
}
section div {
background-color: var(--bg-color-secondary);
padding: 2.4rem 3.2rem 3.2rem;
border-radius: .8rem;
}
section ul {
display: flex;
flex-wrap: wrap;
gap: 1.6rem;
}
section ul li{
transition: transform .3s;
display: flex;
}
section .anime-list li:hover, .manga-list li:hover {
transform: scale(1.4);
filter: brightness(1.2);
background-image: linear-gradient(90deg, #c402ff 0%, #0caa90 100%);
border: 1px;
border-radius: 10px;
padding: 1px;
filter:contrast(1.1);
}
section .network li {
transition: transform .4s;
}
section .network li:hover {
transform: scale(1.1);
filter: brightness(1.2);
background-image: linear-gradient(90deg, #7700ff 0%, #e62750 100%);
border: 1px;
border-radius: 25%;
padding: 1px;
}
section h2 {
color: var(--fc-body-primary);
font-weight: 900;
font-size: 2.4rem;
}
section p {
color: var(--fc-body-secondary);
margin-bottom: 2.4rem;
font-weight: 400;
font-size: 1.6rem;
letter-spacing: -0.18px;
}
.anime-list img,
.manga-list img {
height: 15rem;
width: 10rem;
border: 1px solid #555555;
border-radius: .8rem;
}
.face svg {
width: 3.2rem;
height: 3.2rem;
}
@media (max-width: 480px) {
section ul {
justify-content: center;
}
}
header div {
animation: topdawn .6s .1s backwards;
}
main section {
animation: dawnup .9s backwards;
}
main section:nth-child(1) {
animation-delay: .1s;
}
main section:nth-child(2) {
animation-delay: .4s;
}
main section:nth-child(3) {
animation-delay: .6s;
}
main ul li {
animation: rightleft .4s backwards;
}
main ul li:nth-child(1) {
animation-delay: .2s;
}
main ul li:nth-child(2) {
animation-delay: .4s;
}
main ul li:nth-child(3) {
animation-delay: .6s;
}
main ul li:nth-child(4) {
animation-delay: .8s;
}
main ul li:nth-child(5) {
animation-delay: 1s;
}
@keyframes topdawn {
from {
transform: translateY(-40px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes dawnup {
from {
transform: translateY(50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes rightleft {
from {
transform: translateX(-50px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}