Spaces:
Sleeping
Sleeping
Create components/styles.py
Browse files- components/styles.py +68 -0
components/styles.py
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.food-card {
|
2 |
+
border: 2px solid #ccc;
|
3 |
+
border-radius: 12px;
|
4 |
+
box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
|
5 |
+
width: 350px;
|
6 |
+
background-color: #fff;
|
7 |
+
overflow: hidden;
|
8 |
+
font-family: 'Arial', sans-serif;
|
9 |
+
margin: auto;
|
10 |
+
position: relative;
|
11 |
+
}
|
12 |
+
|
13 |
+
.card-header {
|
14 |
+
position: relative;
|
15 |
+
height: 150px;
|
16 |
+
background: #f0f0f0;
|
17 |
+
display: flex;
|
18 |
+
align-items: center;
|
19 |
+
justify-content: center;
|
20 |
+
}
|
21 |
+
|
22 |
+
.food-image {
|
23 |
+
max-height: 100%;
|
24 |
+
width: auto;
|
25 |
+
object-fit: contain;
|
26 |
+
}
|
27 |
+
|
28 |
+
.close-btn {
|
29 |
+
position: absolute;
|
30 |
+
top: 10px;
|
31 |
+
right: 10px;
|
32 |
+
background: #ff3333;
|
33 |
+
border: none;
|
34 |
+
color: white;
|
35 |
+
border-radius: 50%;
|
36 |
+
width: 25px;
|
37 |
+
height: 25px;
|
38 |
+
font-size: 16px;
|
39 |
+
cursor: pointer;
|
40 |
+
}
|
41 |
+
|
42 |
+
.card-content {
|
43 |
+
padding: 16px;
|
44 |
+
}
|
45 |
+
|
46 |
+
.nutrition-details h3 {
|
47 |
+
margin-bottom: 12px;
|
48 |
+
text-align: center;
|
49 |
+
font-size: 18px;
|
50 |
+
}
|
51 |
+
|
52 |
+
.nutrition-details table {
|
53 |
+
width: 100%;
|
54 |
+
border-spacing: 0;
|
55 |
+
font-size: 14px;
|
56 |
+
}
|
57 |
+
|
58 |
+
.nutrition-details td {
|
59 |
+
padding: 8px 0;
|
60 |
+
border-bottom: 1px solid #eee;
|
61 |
+
}
|
62 |
+
|
63 |
+
.portion-details {
|
64 |
+
text-align: right;
|
65 |
+
font-size: 14px;
|
66 |
+
margin-top: 12px;
|
67 |
+
color: #555;
|
68 |
+
}
|