Skip to content

Commit 7360167

Browse files
committed
Style: improve responsivness
1 parent 9e7041b commit 7360167

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sprint-3/quote-generator/style.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,18 @@ body {
2626
main {
2727
background-color: var(--secondary-color);
2828
color: var(--primary-color);
29-
width: 40vw;
30-
height: 35vh;
29+
width: 100%;
30+
max-width: 600px;
31+
min-height: 250px;
32+
padding: clamp(2rem, 5vw, 4rem);
3133
text-align: right;
3234
padding: 4rem;
3335
}
3436

3537
h1,
3638
#quote {
3739
display: inline;
40+
font-size: clamp(1.2rem, 3vw, 1.5rem);
3841
}
3942

4043
button {

0 commit comments

Comments
 (0)