Skip to content

Commit 123f3bb

Browse files
committed
increased font size for reader page
1 parent 085efb3 commit 123f3bb

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

src/assets/styles/reader.css

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
/* following :root block added by css color collector */
21
:root {
32
--main__txt--2: #ff61d5;
43
--mute-button__bg--3: hsla(255, 100%, 50%, 0.281);
54
}
65

76
#container__reader {
8-
font-size: min(28rem, 35vw);
7+
font-size: min(40rem, 45vw);
98
display: grid;
9+
place-items: center;
10+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
1011
place-content: center;
1112
color: var(--main__txt--2);
1213
height: 100vh;
@@ -19,13 +20,7 @@
1920
min-height: 60vh;
2021
line-height: 1;
2122
padding: 1rem;
22-
23-
& span:hover,
24-
span:active,
25-
span.active {
26-
background-color: aliceblue;
27-
color: #6767d3;
28-
}
23+
gap: 0.5rem;
2924
}
3025

3126
.hide {
@@ -81,16 +76,16 @@
8176

8277
@media screen and (max-width: 768px) {
8378
#container__reader {
84-
font-size: min(20rem, 45vw);
79+
font-size: min(30rem, 55vw);
8580
}
8681
}
8782

8883
@media screen and (max-width: 480px) {
8984
#container__reader {
90-
font-size: min(16rem, 55vw);
85+
font-size: min(200rem, 70vw);
9186
}
92-
87+
9388
.mute-button {
94-
font-size: min(2rem, 6vw);
89+
font-size: min(2.5rem, 8vw);
9590
}
9691
}

src/pages/reader.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ import BaseLayout from "@/layouts/Base";
1919
description="Press any letter key (A-Z) to display it with a related emoji. Toggle the speaker buttons to change voices, and use the audio button to mute/unmute sounds."
2020
/>
2121
</Fragment>
22-
<article id="container__reader">a🍎</article>
22+
<article id="container__reader">
23+
<span class="letter" id="letter">a</span>
24+
<span class="emoji" id="emoji" role="img" aria-label="apple"> 🍎 </span>
25+
</article>
2326
<section class="section--audio hide">
2427
<audio id="audioPlayer" controlslist="nodownload" controls autoplay></audio>
2528
</section>

0 commit comments

Comments
 (0)