Skip to content

Commit 2add71d

Browse files
authored
Update styles.css
1 parent 77b745b commit 2add71d

File tree

1 file changed

+69
-61
lines changed

1 file changed

+69
-61
lines changed

starter/src/assets/styles.css

Lines changed: 69 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,92 @@
1-
* {
2-
font-family: 'Montserrat', sans-serif;
3-
padding: 0;
1+
/* General Styles */
2+
body {
3+
font-family: Arial, sans-serif;
44
margin: 0;
5+
padding: 0;
6+
background-color: #f4f4f4;
7+
}
8+
9+
.container {
10+
width: 80%;
11+
margin: 0 auto;
12+
padding: 20px;
513
}
614

715
h1 {
816
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;
2118
}
22-
.cart-container {
23-
display: flex;
19+
20+
.centered-title {
21+
text-align: center;
22+
color: #333;
23+
font-size: 24px;
2424
}
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;
2930
}
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;
3139
display: flex;
32-
flex-wrap: wrap;
40+
align-items: center;
3341
}
3442

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;
3948
}
4049

41-
.products > div img {
42-
max-width: 175px;
43-
height: auto;
50+
.product div,
51+
.cart-item div {
52+
flex: 1;
4453
}
4554

46-
.products > div h3 {
47-
font-weight: 800;
55+
.product h2,
56+
.cart-item p {
57+
margin: 0;
58+
padding: 5px 0;
4859
}
4960

50-
.cart > div {
51-
border: 1px solid #ccc;
52-
margin: 1em;
53-
padding: 2em;
54-
}
55-
.checkout-container {
56-
max-width: 34em;
57-
}
58-
.checkout {
59-
margin-bottom: 4em;
61+
button {
62+
background-color: #28a745;
63+
color: white;
64+
border: none;
65+
border-radius: 5px;
66+
padding: 10px 15px;
67+
cursor: pointer;
68+
font-size: 14px;
69+
margin: 5px;
70+
transition: background-color 0.3s;
6071
}
6172

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;
6875
}
69-
button.pay {
70-
background: #f5f5f5;
71-
vertical-align: middle
76+
77+
button:disabled {
78+
background-color: #d6d6d6;
79+
cursor: not-allowed;
7280
}
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;
7788
}
7889

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+
}

0 commit comments

Comments
 (0)