Skip to content

Commit e3c0c6f

Browse files
CopilotDavidKRK
andauthored
fix: responsive design improvements for mobile devices (#165)
Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/f7138505-4339-4276-95c2-e5491352112b Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>
1 parent e6145d4 commit e3c0c6f

1 file changed

Lines changed: 38 additions & 5 deletions

File tree

assets/css/style.css

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ body.home-page {
251251
display: flex;
252252
flex-direction: column;
253253
}
254+
/* background-attachment: fixed breaks on iOS Safari — use scroll on touch devices */
255+
@media (hover: none) {
256+
body.home-page {
257+
background-attachment: scroll;
258+
}
259+
}
254260
body:not(.home-page) {
255261
background-color: #416e73;
256262
}
@@ -271,7 +277,9 @@ body:not(.home-page) {
271277
display: flex;
272278
justify-content: center;
273279
align-items: center;
280+
flex-wrap: wrap;
274281
padding: 1.2rem;
282+
gap: 0.25rem 0;
275283
background: rgba(0, 0, 0, 0.4);
276284
}
277285
.hero-header a {
@@ -302,9 +310,19 @@ footer {
302310
background-color: rgba(0, 0, 0, 0.3);
303311
padding: 1rem;
304312
border-radius: 10px;
305-
width: 33%;
313+
width: 90%;
306314
margin: 0.5rem auto 2rem auto;
307315
}
316+
@media (min-width: 640px) {
317+
.player-container {
318+
width: 60%;
319+
}
320+
}
321+
@media (min-width: 1024px) {
322+
.player-container {
323+
width: 33%;
324+
}
325+
}
308326

309327

310328
/* ---------- TYPOGRAPHY ---------- */
@@ -387,15 +405,20 @@ footer {
387405

388406
/* ---------- RESPONSIVE OVERRIDES ---------- */
389407
@media (max-width: 768px) {
408+
.hero-header {
409+
padding: 0.75rem 0.5rem;
410+
}
411+
390412
.hero-header a {
391-
font-size: 1rem;
392-
margin: 0 0.5rem;
413+
font-size: 0.9rem;
414+
margin: 0 0.35rem;
393415
}
394416

395417

396418
/* Override .main-title size within responsive breakpoint */
397-
.main-title {
398-
font-size: 2.5rem;
419+
.main-title,
420+
.text-center .main-title {
421+
font-size: 2.5rem !important;
399422
}
400423

401424

@@ -691,6 +714,7 @@ footer {
691714
.language-selector {
692715
gap: 10px;
693716
justify-content: center;
717+
flex-wrap: wrap;
694718
}
695719
.language-btn {
696720
background: rgba(0,0,0,0.7);
@@ -785,3 +809,12 @@ footer {
785809
transform: translateY(-2px);
786810
box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
787811
}
812+
813+
/* ---------- SHOP IMAGES ---------- */
814+
.product-image img,
815+
.lang-content img {
816+
max-width: 100%;
817+
height: auto;
818+
display: block;
819+
margin: 0 auto;
820+
}

0 commit comments

Comments
 (0)