File tree Expand file tree Collapse file tree
task09-increase-counter-on-every-button-click Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * {
2+ box-sizing : border-box;
3+ }
4+
15body {
2- padding : 200 px ;
6+ padding : 100 px 15 px ;
37 text-align : center;
48 background : linear-gradient (to right, lightgreen, lightblue);
9+ font-family : Arial, sans-serif;
510}
611
712.container {
813 background-color : white;
9- border : none ;
10- border-radius : 50 px ;
11- width : 25 % ;
14+ border-radius : 30 px ;
15+ width : 100 % ;
16+ max- width: 400 px ;
1217 margin : auto;
13- padding : 30px 80px 50px 80px ;
18+ padding : 30px 20px 40px ;
19+ box-shadow : 0 0 15px rgba (0 , 0 , 0 , 0.1 );
20+ }
21+
22+ h1 {
23+ font-size : 24px ;
24+ margin-bottom : 25px ;
25+ word-wrap : break-word;
1426}
1527
1628button {
17- font-size : 15 px ;
18- padding : 10 px 20px ;
29+ font-size : 16 px ;
30+ padding : 12 px 20px ;
1931 border : none;
2032 border-radius : 10px ;
2133 color : white;
2234 background-color : cornflowerblue;
2335 font-weight : 600 ;
2436 cursor : pointer;
37+ transition : background-color 0.3s , transform 0.2s ease;
2538}
2639
2740button : hover {
2841 background-color : rgb (45 , 102 , 207 );
29-
42+ transform : scale ( 1.05 );
3043}
3144
45+ /* Responsive Styles */
3246@media (max-width : 500px ) {
33- body {
34- padding : 80 px 20 px ;
35- }
47+ body {
48+ padding : 60 px 15 px ;
49+ }
3650
37- .container {
38- width : 90% ;
39- padding : 30px 20px 40px 20px ;
40- }
51+ .container {
52+ padding : 25px 15px 30px ;
53+ }
4154
42- button {
43- font-size : 14px ;
44- padding : 10px 15px ;
45- }
55+ h1 {
56+ font-size : 20px ;
57+ }
4658
47- # heading {
48- font-size : 20px ;
49- }
59+ button {
60+ font-size : 14px ;
61+ padding : 10px 16px ;
62+ }
5063}
5164
5265@media (max-width : 300px ) {
53- button {
54- font-size : 13 px ;
55- padding : 8 px 10 px ;
56- }
57-
58- # heading {
59- font-size : 18 px ;
60- }
66+ h1 {
67+ font-size : 18 px ;
68+ }
69+
70+ button {
71+ font-size : 13 px ;
72+ padding : 8 px 12 px ;
73+ }
6174}
You can’t perform that action at this time.
0 commit comments