Spaces:
Build error
Build error
Update static/styles.css
Browse files- static/styles.css +16 -28
static/styles.css
CHANGED
|
@@ -1,59 +1,47 @@
|
|
| 1 |
body {
|
| 2 |
font-family: Arial, sans-serif;
|
| 3 |
-
margin: 20px;
|
| 4 |
-
background-color: #f9f9f9;
|
| 5 |
}
|
| 6 |
|
| 7 |
-
.menu-
|
| 8 |
border: 1px solid #ddd;
|
| 9 |
border-radius: 8px;
|
| 10 |
padding: 10px;
|
| 11 |
width: 300px;
|
| 12 |
-
background-color: white;
|
| 13 |
-
text-align: center;
|
| 14 |
margin-bottom: 20px;
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
-
.
|
| 18 |
-
width:
|
| 19 |
-
height:
|
| 20 |
object-fit: cover;
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
|
| 24 |
.add-button {
|
| 25 |
background-color: #28a745;
|
| 26 |
color: white;
|
|
|
|
| 27 |
border: none;
|
| 28 |
-
padding: 10px;
|
| 29 |
border-radius: 5px;
|
| 30 |
cursor: pointer;
|
| 31 |
-
font-size: 16px;
|
| 32 |
-
}
|
| 33 |
-
|
| 34 |
-
.add-button:hover {
|
| 35 |
-
background-color: #218838;
|
| 36 |
}
|
| 37 |
|
| 38 |
-
/* Modal Window */
|
| 39 |
.popup {
|
| 40 |
-
display: none;
|
| 41 |
position: fixed;
|
| 42 |
-
|
|
|
|
| 43 |
left: 50%;
|
| 44 |
-
transform: translate(-50%, -
|
| 45 |
width: 50%;
|
| 46 |
background-color: white;
|
| 47 |
padding: 20px;
|
| 48 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 49 |
border-radius: 8px;
|
| 50 |
-
|
| 51 |
-
}
|
| 52 |
-
|
| 53 |
-
.popup.show {
|
| 54 |
-
display: block;
|
| 55 |
-
}
|
| 56 |
-
|
| 57 |
-
.popup button {
|
| 58 |
-
margin-top: 10px;
|
| 59 |
}
|
|
|
|
| 1 |
body {
|
| 2 |
font-family: Arial, sans-serif;
|
|
|
|
|
|
|
| 3 |
}
|
| 4 |
|
| 5 |
+
.menu-card {
|
| 6 |
border: 1px solid #ddd;
|
| 7 |
border-radius: 8px;
|
| 8 |
padding: 10px;
|
| 9 |
width: 300px;
|
|
|
|
|
|
|
| 10 |
margin-bottom: 20px;
|
| 11 |
+
background: white;
|
| 12 |
+
text-align: center;
|
| 13 |
}
|
| 14 |
|
| 15 |
+
.menu-image {
|
| 16 |
+
width: 100%;
|
| 17 |
+
height: 200px;
|
| 18 |
object-fit: cover;
|
| 19 |
+
border-radius: 8px;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.menu-title, .menu-description, .menu-price {
|
| 23 |
+
margin: 10px 0;
|
| 24 |
}
|
| 25 |
|
| 26 |
.add-button {
|
| 27 |
background-color: #28a745;
|
| 28 |
color: white;
|
| 29 |
+
padding: 10px 15px;
|
| 30 |
border: none;
|
|
|
|
| 31 |
border-radius: 5px;
|
| 32 |
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
|
|
|
|
| 35 |
.popup {
|
|
|
|
| 36 |
position: fixed;
|
| 37 |
+
z-index: 1000;
|
| 38 |
+
top: 20%;
|
| 39 |
left: 50%;
|
| 40 |
+
transform: translate(-50%, -20%);
|
| 41 |
width: 50%;
|
| 42 |
background-color: white;
|
| 43 |
padding: 20px;
|
| 44 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 45 |
border-radius: 8px;
|
| 46 |
+
display: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
}
|