Skip to content

Commit 725b529

Browse files
committed
Website: Responsive
1 parent 5cc7ea3 commit 725b529

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

docs/index.css

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,25 +92,27 @@ header .navbar .link:hover {
9292
.hero h1 {
9393
font: bold 48px "Inter";
9494
color: #fff;
95-
margin: 16px 0;
95+
margin: 16px;
9696
}
9797

9898
.hero h3 {
9999
font: 20px "Inter";
100100
color: #fff;
101+
margin: 20px 16px;
101102
}
102103

103104
.hero .buttons {
104105
display: flex;
105106
justify-content: center;
106-
padding: 24px 0;
107+
padding: 16px 0;
108+
flex-wrap: wrap;
107109
}
108110

109111
.hero .button {
110112
padding: 12px 24px;
111113
border: 2px solid rgba(255, 255, 255, 0.5);
112114
border-radius: 8px;
113-
margin: 0 8px;
115+
margin: 8px;
114116
transition: 0.25s transform, 0.25s filter;;
115117
}
116118

@@ -152,6 +154,7 @@ header .navbar .link:hover {
152154

153155
main {
154156
text-align: center;
157+
padding: 0 16px;
155158
}
156159

157160
main .screenshot {
@@ -160,6 +163,7 @@ main .screenshot {
160163
margin-top: -20vw;
161164
background: #333;
162165
border: 2px solid rgba(0, 0, 0, 0.25);
166+
max-width: 100%;
163167
}
164168

165169
main h2 {
@@ -199,13 +203,17 @@ main .content {
199203
padding: 32px;
200204
filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
201205
background: #fff;
202-
width: 480px;
206+
max-width: 570px;
207+
width: 100%;
203208
font: 16px "Inter";
204209
text-align: left;
210+
box-sizing: border-box;
211+
overflow-x: auto;
205212
}
206213

207214
main .content table {
208215
width: 100%;
216+
min-width: 400px;
209217
}
210218

211219
main .content th, main .content td {
@@ -226,6 +234,11 @@ main .donate {
226234
display: flex;
227235
margin: 0 auto;
228236
justify-content: space-around;
237+
flex-wrap: wrap;
238+
}
239+
240+
main .donate a {
241+
padding: 8px;
229242
}
230243

231244
main .donate img,
@@ -286,4 +299,29 @@ footer a:hover {
286299

287300
::-webkit-scrollbar-thumb:hover {
288301
background: #4B0B7E;
302+
}
303+
304+
/* MEDIA */
305+
306+
@media screen and (max-width: 480px) {
307+
header {
308+
justify-content: center;
309+
}
310+
311+
header .navbar {
312+
display: none;
313+
}
314+
315+
main .screenshot {
316+
border-radius: 0;
317+
margin-left: -16px;
318+
margin-right: -16px;
319+
max-width: calc(100% + 28px);
320+
}
321+
322+
footer {
323+
flex-direction: column;
324+
gap: 8px;
325+
text-align: center;
326+
}
289327
}

0 commit comments

Comments
 (0)