File tree Expand file tree Collapse file tree 1 file changed +37
-30
lines changed
Expand file tree Collapse file tree 1 file changed +37
-30
lines changed Original file line number Diff line number Diff line change 11body {
2- display : flex;
3- justify-content : center;
4- align-items : center;
5- height : 100vh ;
6- margin : 0 ;
7- background-color : # f0f2f5 ;
2+ display : flex;
3+ justify-content : center;
4+ align-items : center;
5+ height : 100vh ;
6+ margin : 0 ;
7+ background-color : # f0f2f5 ;
88}
99
1010h1 {
11- color : # 333 ;
11+ color : # 333 ;
1212}
1313
1414.counter-display {
15- font-size : 4rem ;
16- font-weight : bold;
17- margin : 1rem 0 ;
18- color : # 2c3e50 ;
15+ font-size : 4rem ;
16+ font-weight : bold;
17+ margin : 1rem 0 ;
18+ color : # 2c3e50 ;
19+ transition : transform 0.2s ease;
20+ }
21+
22+ .counter-display : hover {
23+ transform : scale (1.05 );
1924}
2025
2126.buttons {
22- display : flex;
23- gap : 10px ;
24- justify-content : center;
27+ display : flex;
28+ gap : 10px ;
29+ justify-content : center;
2530}
2631
2732.btn {
28- padding : 10px 20px ;
29- font-size : 1.2rem ;
30- cursor : pointer;
31- border : none;
32- border-radius : 5px ;
33- transition : background-color 0.3s , transform 0.1s ;
33+ padding : 10px 20px ;
34+ font-size : 1.2rem ;
35+ cursor : pointer;
36+ border : none;
37+ border-radius : 5px ;
38+ transition :
39+ background-color 0.3s ,
40+ transform 0.1s ;
3441}
3542
3643.btn : active {
37- transform : scale (0.98 );
44+ transform : scale (0.98 );
3845}
3946
4047.decrease {
41- background-color : # e74c3c ;
42- color : white;
48+ background-color : # e74c3c ;
49+ color : white;
4350}
4451
4552.decrease : hover {
46- background-color : # c0392b ;
53+ background-color : # c0392b ;
4754}
4855
4956.reset {
50- background-color : # 95a5a6 ;
51- color : white;
57+ background-color : # 95a5a6 ;
58+ color : white;
5259}
5360
5461.reset : hover {
55- background-color : # 7f8c8d ;
62+ background-color : # 7f8c8d ;
5663}
5764
5865.increase {
59- background-color : # 2ecc71 ;
60- color : white;
66+ background-color : # 2ecc71 ;
67+ color : white;
6168}
6269
6370.increase : hover {
64- background-color : # 27ae60 ;
71+ background-color : # 27ae60 ;
6572}
You can’t perform that action at this time.
0 commit comments