Skip to content

Commit 27a1396

Browse files
committed
increase typing page font sizes
1 parent 5d99074 commit 27a1396

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/assets/styles/typing.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,21 @@
1313
grid-auto-flow: row;
1414
height: 100vh;
1515
width: auto;
16-
font-size: 1rem;
16+
font-size: clamp(0.8rem, 1vw, 1.2rem);
1717
place-items: center;
1818
will-change: contents;
1919

2020
& .letter {
2121
grid-area: letter;
22-
font-size: 18em;
22+
font-size: clamp(10em, 20vw, 25em);
2323
color: var(--letter__txt--2);
24+
padding-left: 10vh;
2425
transition: color 0.5s ease-in;
2526
}
2627

2728
& .emoji {
2829
grid-area: emoji;
29-
font-size: 10em;
30+
font-size: clamp(6em, 15vw, 18em);
3031
}
3132

3233
& .animation {
@@ -39,12 +40,12 @@
3940
grid-area: spelling;
4041
grid-column: 1/3;
4142
grid-row: 2/3;
42-
width: 6ch;
43+
width: clamp(6ch, 50vw, 12ch);
4344
white-space: nowrap;
4445
overflow: hidden;
4546
border-right: 3px solid;
4647
font-family: monospace;
47-
font-size: 8em;
48+
font-size: clamp(4em, 10vw, 12em);
4849
transition: all 0.5s ease-in-out;
4950
color: var(--spelling__txt--3);
5051
}

0 commit comments

Comments
 (0)