Spaces:
Build error
Build error
Update static/styles.css
Browse files- static/styles.css +25 -44
static/styles.css
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
|
|
| 1 |
body {
|
| 2 |
font-family: Arial, sans-serif;
|
|
|
|
|
|
|
| 3 |
}
|
| 4 |
-
|
|
|
|
| 5 |
display: flex;
|
| 6 |
justify-content: space-between;
|
| 7 |
align-items: center;
|
| 8 |
-
padding: 10px;
|
| 9 |
border: 1px solid #ddd;
|
|
|
|
| 10 |
margin-bottom: 10px;
|
| 11 |
border-radius: 5px;
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
-
.menu-
|
| 15 |
flex: 1;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
.menu-
|
| 19 |
width: 80px;
|
| 20 |
height: 80px;
|
| 21 |
object-fit: cover;
|
|
@@ -31,59 +36,35 @@ body {
|
|
| 31 |
cursor: pointer;
|
| 32 |
}
|
| 33 |
|
|
|
|
| 34 |
.modal {
|
|
|
|
| 35 |
position: fixed;
|
| 36 |
top: 50%;
|
| 37 |
left: 50%;
|
| 38 |
transform: translate(-50%, -50%);
|
|
|
|
|
|
|
| 39 |
background: white;
|
| 40 |
-
border-radius: 5px;
|
| 41 |
padding: 20px;
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
width: 60%;
|
| 45 |
}
|
| 46 |
|
| 47 |
-
.
|
| 48 |
-
border: 1px solid #ddd;
|
| 49 |
-
border-radius: 8px;
|
| 50 |
-
padding: 10px;
|
| 51 |
-
width: 300px;
|
| 52 |
-
margin-bottom: 20px;
|
| 53 |
-
background: white;
|
| 54 |
text-align: center;
|
| 55 |
}
|
| 56 |
|
| 57 |
-
.
|
| 58 |
-
width: 100%;
|
| 59 |
-
height:
|
| 60 |
-
|
| 61 |
-
border-radius: 8px;
|
| 62 |
-
}
|
| 63 |
-
|
| 64 |
-
.menu-title, .menu-description, .menu-price {
|
| 65 |
-
margin: 10px 0;
|
| 66 |
}
|
| 67 |
|
| 68 |
-
.
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
border-radius: 5px;
|
| 74 |
cursor: pointer;
|
| 75 |
}
|
| 76 |
-
|
| 77 |
-
.popup {
|
| 78 |
-
position: fixed;
|
| 79 |
-
z-index: 1000;
|
| 80 |
-
top: 20%;
|
| 81 |
-
left: 50%;
|
| 82 |
-
transform: translate(-50%, -20%);
|
| 83 |
-
width: 50%;
|
| 84 |
-
background-color: white;
|
| 85 |
-
padding: 20px;
|
| 86 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 87 |
-
border-radius: 8px;
|
| 88 |
-
display: none;
|
| 89 |
-
}
|
|
|
|
| 1 |
+
/* Main Page Styles */
|
| 2 |
body {
|
| 3 |
font-family: Arial, sans-serif;
|
| 4 |
+
background-color: #f9f9f9;
|
| 5 |
+
margin: 20px;
|
| 6 |
}
|
| 7 |
+
|
| 8 |
+
.menu-card {
|
| 9 |
display: flex;
|
| 10 |
justify-content: space-between;
|
| 11 |
align-items: center;
|
|
|
|
| 12 |
border: 1px solid #ddd;
|
| 13 |
+
padding: 10px;
|
| 14 |
margin-bottom: 10px;
|
| 15 |
border-radius: 5px;
|
| 16 |
+
background-color: white;
|
| 17 |
}
|
| 18 |
|
| 19 |
+
.menu-card-content {
|
| 20 |
flex: 1;
|
| 21 |
}
|
| 22 |
|
| 23 |
+
.menu-card-image {
|
| 24 |
width: 80px;
|
| 25 |
height: 80px;
|
| 26 |
object-fit: cover;
|
|
|
|
| 36 |
cursor: pointer;
|
| 37 |
}
|
| 38 |
|
| 39 |
+
/* Modal Styles */
|
| 40 |
.modal {
|
| 41 |
+
display: none;
|
| 42 |
position: fixed;
|
| 43 |
top: 50%;
|
| 44 |
left: 50%;
|
| 45 |
transform: translate(-50%, -50%);
|
| 46 |
+
z-index: 1000;
|
| 47 |
+
width: 50%;
|
| 48 |
background: white;
|
|
|
|
| 49 |
padding: 20px;
|
| 50 |
+
border-radius: 10px;
|
| 51 |
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
+
.modal-content {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
text-align: center;
|
| 56 |
}
|
| 57 |
|
| 58 |
+
.modal-image {
|
| 59 |
+
max-width: 100%;
|
| 60 |
+
height: auto;
|
| 61 |
+
margin-bottom: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
}
|
| 63 |
|
| 64 |
+
.close-button {
|
| 65 |
+
position: absolute;
|
| 66 |
+
top: 10px;
|
| 67 |
+
right: 10px;
|
| 68 |
+
font-size: 20px;
|
|
|
|
| 69 |
cursor: pointer;
|
| 70 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|