Skip to content

Commit f15080b

Browse files
committed
updated .css file to make it responsive
1 parent c4027e8 commit f15080b

File tree

1 file changed

+46
-10
lines changed

1 file changed

+46
-10
lines changed

style.css

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
body {
22
display: flex;
3+
flex-direction: column;
4+
align-items: center;
35
justify-content: center;
4-
margin-top: 5rem;
6+
min-height: 100vh;
7+
margin-top: 2rem;
58
overflow: hidden;
9+
padding: 0 1rem;
10+
box-sizing: border-box;
611
}
712
h1 {
813
font-size: 2.5rem;
@@ -23,28 +28,59 @@ h1 {
2328
display: block;
2429
margin: 0 auto;
2530
text-align: center;
26-
font-size: 20px;
27-
height: 2rem;
31+
font-size: 1.25rem;
32+
height: 2.5rem;
33+
width: 80%;
34+
max-width: 400px;
2835
}
29-
#submit {
36+
#submit {
3037
display: block;
31-
margin: 0 auto;
32-
height: 2rem;
33-
width: 7rem;
38+
margin: 1rem auto;
39+
height: 2.5rem;
40+
width: 8rem;
3441
border-radius: 10px;
3542
text-align: center;
36-
font-size: 20px;
43+
font-size: 1.25rem;
3744
font-weight: bold;
3845
background-color: rgb(216, 131, 20);
46+
cursor: pointer;
3947
}
40-
4148
#result_box {
4249
margin-top: 2rem;
4350
text-align: center;
44-
align-items: center;
4551
font-size: 1.5rem;
4652
}
4753
#hint {
4854
font-size: 2rem;
4955
font-weight: 500;
5056
}
57+
58+
@media (max-width: 768px) {
59+
body {
60+
margin-top: 2rem;
61+
}
62+
h1 {
63+
font-size: 1.8rem;
64+
}
65+
#guide {
66+
font-size: 1.2rem;
67+
}
68+
#guess {
69+
font-size: 1.5rem;
70+
margin-top: 1rem;
71+
}
72+
#guessInput {
73+
font-size: 1rem;
74+
height: 2.5rem;
75+
width: 90%;
76+
}
77+
#submit {
78+
height: 3rem;
79+
width: 90%;
80+
max-width: 300px;
81+
}
82+
#result_box, #hint {
83+
font-size: 1.2rem;
84+
}
85+
}
86+

0 commit comments

Comments
 (0)