Skip to content

Commit 8e5638a

Browse files
authored
Update style.css
1 parent 4a8b8b1 commit 8e5638a

1 file changed

Lines changed: 34 additions & 2 deletions

File tree

  • task09-increase-counter-on-every-button-click

task09-increase-counter-on-every-button-click/style.css

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
body {
22
padding: 200px;
33
text-align: center;
4-
background: linear-gradient(to right, #654754, #647284);
4+
background: linear-gradient(to right, lightgreen, lightblue);
55
}
66

77
.container {
@@ -26,4 +26,36 @@ button {
2626

2727
button:hover {
2828
background-color: rgb(45, 102, 207);
29-
}
29+
30+
}
31+
32+
@media (max-width: 500px) {
33+
body {
34+
padding: 80px 20px;
35+
}
36+
37+
.container {
38+
width: 90%;
39+
padding: 30px 20px 40px 20px;
40+
}
41+
42+
button {
43+
font-size: 14px;
44+
padding: 10px 15px;
45+
}
46+
47+
#heading {
48+
font-size: 20px;
49+
}
50+
}
51+
52+
@media (max-width: 300px) {
53+
button {
54+
font-size: 13px;
55+
padding: 8px 10px;
56+
}
57+
58+
#heading {
59+
font-size: 18px;
60+
}
61+
}

0 commit comments

Comments
 (0)