Skip to content

Commit 45386d5

Browse files
authored
Responsiveness Added to Website
As per suggested, I have added responsiveness to the website
1 parent fb2cf74 commit 45386d5

1 file changed

Lines changed: 19 additions & 53 deletions

File tree

Projects/Vowel Checker/style.css

Lines changed: 19 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -10,68 +10,34 @@ body{
1010
background-position: center;
1111
}
1212

13-
@keyframes bounce{
14-
0%{
15-
transform: translateY(-700px);
16-
}
17-
18-
70%,100%{
19-
transform: translateY(0);
20-
}
21-
80%{
22-
transform: translateY(-15px);
23-
}
24-
}
25-
26-
@keyframes fade {
27-
0%{
28-
opacity: 0;
29-
30-
}
31-
100%{
32-
opacity: 1;
33-
}
34-
35-
}
36-
37-
@keyframes headi{
38-
0%{
39-
font-size: 20px;
40-
}
41-
100%{
42-
font-size: 36px;
43-
}
44-
}
45-
4613
.container{
4714
background-color: rgba(255,255,255,0.40);
48-
/* backdrop-filter: blur(0px); */
4915
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
5016
border-radius: 40px;
5117
padding: 20px;
5218
display: flex;
5319
flex-direction: column;
5420
align-items: center;
55-
width: 600px;
56-
height: 400px;
57-
21+
width: 50vw;
22+
height: 50vh;
5823
}
5924

6025
.container:hover{
6126

6227
box-shadow: rgb(255, 102, 179) 0px 20px 30px -10px;
6328
}
6429

65-
.container h1{
30+
h1{
6631
font-size: 36px;
6732
margin-bottom: 20px;
6833
color: black;
34+
text-align: center;
6935

7036
}
7137

7238
textarea{
73-
width: 500px;
74-
height: 350px;
39+
width: 40vw;
40+
height: 40vh;
7541
margin: 10px auto;
7642
display: block;
7743
font-size: 24px;
@@ -80,20 +46,9 @@ textarea{
8046
border-radius: 5px;
8147
resize: none;
8248
opacity: 70%;
83-
animation: fade 2.5s ease-in 1s 1 normal none;
8449
}
8550

8651
textarea:hover {
87-
width: 500px;
88-
height: 350px;
89-
margin: 10px auto;
90-
display: block;
91-
font-size: 24px;
92-
padding: 10px;
93-
border: 1px solid #dddddd;
94-
/* background-color: #D3EFBD; */
95-
border-radius: 5px;
96-
resize: none;
9752
opacity: 100%;
9853
}
9954

@@ -108,7 +63,6 @@ button{
10863
cursor: pointer;
10964
transition: background-color 0.3s ease;
11065
margin-top: 20px;
111-
animation: bounce 0.75s ease-in 1s 1 normal none;
11266
}
11367

11468
button:hover{
@@ -120,6 +74,18 @@ button:hover{
12074
margin-top: 20px;
12175
color: #000000;
12276
font-weight: bold;
123-
animation: fade 0.5s ease-in 1s 1 normal none;
12477
}
12578

79+
@media (max-width: 600px)
80+
{
81+
h1{
82+
font-size: 30px;
83+
}
84+
85+
}
86+
@media (max-width: 430px) {
87+
h1 {
88+
font-size: 20px;
89+
}
90+
91+
}

0 commit comments

Comments
 (0)