Skip to content

Commit d0856f8

Browse files
Hdvarrazzo
authored andcommitted
adjusts font sizes and social buttons on mobile
1 parent a0cad18 commit d0856f8

1 file changed

Lines changed: 24 additions & 10 deletions

File tree

assets/css/style.css

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -609,11 +609,6 @@ ul[role="list"] {
609609

610610
/* ── development ────────────────────────────────────────────────────── */
611611

612-
/* long word, smaller title */
613-
.development .section__heading {
614-
font-size: clamp(1.8rem, 4vw, 5rem);
615-
}
616-
617612
.development {
618613
display: grid;
619614
grid-template-columns: 1fr 1fr;
@@ -1076,6 +1071,13 @@ p code {
10761071
min-height: auto;
10771072
}
10781073

1074+
.hero__title {
1075+
font-size: clamp(3rem, 14vw, 8rem);
1076+
background-size: 1em 1em;
1077+
background-position: 0 0;
1078+
padding-left: calc(1em + 15px);
1079+
}
1080+
10791081
.scroll-arrow--right {
10801082
display: none;
10811083
}
@@ -1107,10 +1109,6 @@ p code {
11071109
text-align: right;
11081110
}
11091111

1110-
/* "development" is a long single word — scale it down so it fits narrow tracks */
1111-
.development .section__heading {
1112-
font-size: clamp(1.5rem, 4.5vw, 5rem);
1113-
}
11141112
.maintainers__right {
11151113
align-items: center;
11161114
}
@@ -1243,13 +1241,29 @@ p code {
12431241
gap: 0.5rem;
12441242
}
12451243

1246-
/* Social buttons: wrap and centre so they don't crowd screen edges */
1244+
/* Social buttons: 2 on first row, 3 on second row */
12471245
.contact__social {
12481246
flex-wrap: wrap;
12491247
justify-content: center;
12501248
padding: 0 1.5rem;
1249+
column-gap: 1.25rem;
1250+
row-gap: 0;
12511251
}
12521252

1253+
/* Zero-height spacer that forces a flex-line break after button 2 */
1254+
.contact__social::after {
1255+
content: '';
1256+
width: 100%;
1257+
height: 1.25rem;
1258+
order: 3;
1259+
}
1260+
1261+
.contact__social .social-btn:nth-child(1) { order: 1; }
1262+
.contact__social .social-btn:nth-child(2) { order: 2; }
1263+
.contact__social .social-btn:nth-child(3) { order: 4; }
1264+
.contact__social .social-btn:nth-child(4) { order: 5; }
1265+
.contact__social .social-btn:nth-child(5) { order: 6; }
1266+
12531267
/* Let code blocks wrap on narrow screens rather than creating horizontal scroll */
12541268
pre {
12551269
white-space: pre-wrap;

0 commit comments

Comments
 (0)