File tree Expand file tree Collapse file tree 1 file changed +69
-61
lines changed Expand file tree Collapse file tree 1 file changed +69
-61
lines changed Original file line number Diff line number Diff line change 1
- * {
2
- font-family : 'Montserrat' , sans-serif;
3
- padding : 0 ;
1
+ /* General Styles */
2
+ body {
3
+ font-family : Arial , sans-serif ;
4
4
margin : 0 ;
5
+ padding : 0 ;
6
+ background-color : # f4f4f4 ;
7
+ }
8
+
9
+ .container {
10
+ width : 80% ;
11
+ margin : 0 auto;
12
+ padding : 20px ;
5
13
}
6
14
7
15
h1 {
8
16
text-align : center;
9
- padding : 1em ;
10
- }
11
- h2 , h3 {
12
- padding : 1em 0 .5em ;
13
- }
14
- p {
15
- padding-bottom : 1em ;
16
- }
17
- .products-container {
18
- width : 100% ;
19
- max-width : 55em ;
20
- padding : 2em ;
17
+ color : # 333 ;
21
18
}
22
- .cart-container {
23
- display : flex;
19
+
20
+ .centered-title {
21
+ text-align : center;
22
+ color : # 333 ;
23
+ font-size : 24px ;
24
24
}
25
- .checkout-container {
26
- max-width : 34em ;
27
- padding : 2em ;
28
- background : # efefef ;
25
+
26
+ .product-list ,
27
+ .cart-list {
28
+ list-style : none;
29
+ padding : 0 ;
29
30
}
30
- .products , .cart {
31
+
32
+ .product ,
33
+ .cart-item {
34
+ background : # fff ;
35
+ border : 1px solid # ddd ;
36
+ border-radius : 5px ;
37
+ margin-bottom : 20px ;
38
+ padding : 15px ;
31
39
display : flex;
32
- flex-wrap : wrap ;
40
+ align-items : center ;
33
41
}
34
42
35
- .products > div {
36
- background : # f5f5f5 ;
37
- margin : 1em ;
38
- padding : 2em ;
43
+ .product img ,
44
+ .cart-image {
45
+ max-width : 100px ;
46
+ max-height : 100px ;
47
+ margin-right : 15px ;
39
48
}
40
49
41
- .products > div img {
42
- max-width : 175 px ;
43
- height : auto ;
50
+ .product div ,
51
+ . cart-item div {
52
+ flex : 1 ;
44
53
}
45
54
46
- .products > div h3 {
47
- font-weight : 800 ;
55
+ .product h2 ,
56
+ .cart-item p {
57
+ margin : 0 ;
58
+ padding : 5px 0 ;
48
59
}
49
60
50
- . cart > div {
51
- border : 1 px solid # ccc ;
52
- margin : 1 em ;
53
- padding : 2 em ;
54
- }
55
- . checkout-container {
56
- max-width : 34 em ;
57
- }
58
- . checkout {
59
- margin-bottom : 4 em ;
61
+ button {
62
+ background-color : # 28a745 ;
63
+ color : white ;
64
+ border : none ;
65
+ border-radius : 5 px ;
66
+ padding : 10 px 15 px ;
67
+ cursor : pointer ;
68
+ font-size : 14 px ;
69
+ margin : 5 px ;
70
+ transition : background-color 0.3 s ;
60
71
}
61
72
62
- button {
63
- border : 1px solid # ccc ;
64
- background : # fff ;
65
- padding : 1em ;
66
- transition : .2s ease all;
67
- text-transform : uppercase;
73
+ button : hover {
74
+ background-color : # 218838 ;
68
75
}
69
- button .pay {
70
- background : # f5f5f5 ;
71
- vertical-align : middle
76
+
77
+ button : disabled {
78
+ background-color : # d6d6d6 ;
79
+ cursor : not-allowed;
72
80
}
73
- button : hover {
74
- background : rgb (93 , 120 , 118 );
75
- color : # fff ;
76
- cursor : pointer;
81
+
82
+ # receipt ,
83
+ # balance ,
84
+ # cash-returned ,
85
+ # thank-you {
86
+ margin-top : 20px ;
87
+ font-size : 18px ;
77
88
}
78
89
79
- .received {
80
- font-size : 1.5em ;
81
- padding : 0.3em ;
82
- border : 1px solid # ccc ;
83
- vertical-align : middle
84
- }
90
+ # cart-items {
91
+ margin-top : 20px ;
92
+ }
You can’t perform that action at this time.
0 commit comments