76 lines
1.2 KiB
CSS
76 lines
1.2 KiB
CSS
body {
|
|
font-family: Arial, sans-serif;
|
|
padding: 20px;
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
input, button {
|
|
padding: 8px;
|
|
width: 300px;
|
|
margin: 5px 0;
|
|
border-radius: 4px;
|
|
border: 1px solid #ccc;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
button {
|
|
width: 150px;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #45a049;
|
|
}
|
|
|
|
#results {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.product-card {
|
|
display: flex;
|
|
background: #fff;
|
|
border: 1px solid #ddd;
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0px 1px 5px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.product-card img {
|
|
width: 70px;
|
|
height: 70px;
|
|
object-fit: contain;
|
|
margin-right: 20px;
|
|
border-radius: 4px;
|
|
border: 1px solid #eee;
|
|
}
|
|
|
|
.product-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.product-info table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
|
|
.product-info th, .product-info td {
|
|
text-align: left;
|
|
padding: 5px;
|
|
}
|
|
|
|
.product-info th {
|
|
width: 130px;
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.ingredients, .description {
|
|
margin-top: 10px;
|
|
background: #f9f9f9;
|
|
padding: 8px;
|
|
border-radius: 5px;
|
|
}
|