Skip to content

Commit 9a2a8b4

Browse files
committed
adapt to viewport
1 parent 9bb3a98 commit 9a2a8b4

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

style.css

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,35 @@ body {
33
display: flex;
44
justify-content: center;
55
align-items: center;
6-
height: 100vh;
76
background-color: #f4f4f4;
7+
margin: 0;
8+
padding: 0;
89
}
910

1011
.container {
11-
gap: 20px;
12+
width: 60vw;
13+
height: 40vh;
1214
}
1315

1416
.description {
15-
margin: 20px 0;
16-
font-size: 16px;
17+
font-size: 3vh;
1718
text-align: center;
1819
color: #333;
1920
font-family: Arial, sans-serif;
2021
}
2122

2223

2324
.title {
24-
font-size: 44px;
25+
font-size: 6vh;
2526
text-align: center;
2627
color: #333;
2728
font-family: Arial, sans-serif;
2829
}
2930

3031
textarea {
3132
width: 100%;
32-
height:50vh;
33+
height:90%;
34+
font-size: 2vh;
3335
padding: 10px;
3436
border: 1px solid #ccc;
3537
background-color: white;
@@ -38,13 +40,14 @@ textarea {
3840

3941
/* Styling for buttons */
4042
button {
41-
padding: 10px 20px;
42-
font-size: 16px;
43-
border: none;
43+
padding: 2vh 3vw;
44+
font-size: 1.5vw;
45+
border: 1px solid #ccc;
4446
background-color: #4CAF50;
4547
color: white;
4648
cursor: pointer;
47-
margin: 5px;
49+
margin: 2vh 1vw;
50+
border-radius: 5px;
4851
}
4952

5053
button:hover {
@@ -54,6 +57,6 @@ button:hover {
5457
.buttons-top, .buttons-bottom {
5558
display: flex;
5659
justify-content: center;
57-
gap: 10px;
58-
margin-bottom: 20px;
60+
gap: 1 vh;
61+
margin-bottom: 1 vh;
5962
}

0 commit comments

Comments
 (0)