-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
165 lines (142 loc) · 2.61 KB
/
style.css
File metadata and controls
165 lines (142 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #f4f7fa;
}
header {
background: #28a745;
color: #fff;
padding: 1rem;
text-align: center;
}
h1{
cursor: default;
}
header nav a {
margin: 0 15px;
color: #fff;
text-decoration: none;
font-weight: bold;
}
header nav a:hover {
color: #e6e6e6;
}
main {
padding: 2rem;
}
h2 {
border-bottom: 2px solid #28a745;
padding-bottom: 0.5rem;
color: #333;
}
#balance, #set-balance {
margin-bottom: 2rem;
}
#balance {
font-size: 1.2rem;
}
#balance-input {
padding: 0.5rem;
width: 200px;
margin-top: 1rem;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 5px;
}
#set-balance-button {
background-color: #28a745;
color: #fff;
padding: 0.5rem 1rem;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 1rem;
}
#set-balance-button:hover {
background-color: #218838;
}
.product-list, .cart-items {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-top: 1rem;
}
.product, .cart-item {
border: 1px solid #ddd;
padding: 1rem;
text-align: center;
border-radius: 8px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.product button {
background: #007bff;
color: #fff;
border: none;
padding: 0.5rem;
cursor: pointer;
border-radius: 5px;
}
.product button:hover {
background: #0056b3;
}
.cart-total {
margin-top: 1rem;
font-size: 1.2rem;
font-weight: bold;
color: #333;
}
footer {
background: #f8f9fa;
text-align: center;
padding: 1rem;
margin-top: 2rem;
border-top: 1px solid #ddd;
color: #555;
}
footer p {
font-size: 0.9rem;
}
/* Popup style */
.cart-popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: none; /* Cachée par défaut */
justify-content: center;
align-items: center;
}
.popup-content {
background: #fff;
padding: 2rem;
border-radius: 8px;
max-width: 500px;
width: 80%;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
}
button {
background: #28a745;
color: white;
padding: 0.5rem 1rem;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background: #218838;
}
/* Style pour le bouton "Passer la commande" */
#checkout-button {
background-color: #ff5722;
color: #fff;
margin-top: 1rem;
}
#checkout-button:hover {
background-color: #e64a19;
}