SAE_S1.05_S1.06/css/menu.css

98 lines
1.7 KiB
CSS
Raw Permalink Normal View History

.menu-navigation {
text-align: center;
margin: 20px 0;
2024-01-17 14:35:18 +01:00
}
.menu-navigation ul {
list-style: none;
padding: 0;
2024-01-17 23:44:53 +01:00
}
.menu-navigation li {
display: inline-block;
margin-right: 20px;
2024-01-17 23:44:53 +01:00
}
.menu-navigation a {
text-decoration: none;
color: #333;
font-size: 16px;
font-weight: bold;
transition: color 0.3s ease-in-out;
2024-01-17 23:44:53 +01:00
}
.menu-navigation a:hover {
color: #ff8c00;
2024-01-17 23:44:53 +01:00
}
.menu-categorie {
margin-bottom: 40px;
background-color: #fff;
padding: 20px;
border-radius: 12px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
2024-01-17 23:44:53 +01:00
}
.menu-categorie h3 {
font-size: 28px;
border-bottom: 3px solid #ccc;
padding-bottom: 10px;
margin-bottom: 15px;
2024-01-17 14:35:18 +01:00
color: #1a1a1a;
}
2024-01-18 17:39:40 +01:00
.menu-elements {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.menu-element {
2024-01-18 17:39:40 +01:00
text-align: center;
width: calc(33.33% - 20px); /* 33.33% pour afficher trois éléments par ligne avec une marge de 20px entre eux */
box-sizing: border-box;
margin-bottom: 20px;
2024-01-17 14:35:18 +01:00
}
.menu-element img {
2024-01-17 14:35:18 +01:00
width: 100%;
max-width: 250px;
2024-01-17 14:35:18 +01:00
height: auto;
border-radius: 10px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
2024-01-18 17:39:40 +01:00
margin: 0 auto;
2024-01-17 14:35:18 +01:00
}
.menu-element h4 {
font-size: 22px;
2024-01-17 14:35:18 +01:00
color: #333;
margin-bottom: 10px;
2024-01-18 17:39:40 +01:00
margin: 0 auto;
}
.menu-element p {
font-size: 16px;
line-height: 1.5;
2024-01-18 17:39:40 +01:00
margin: 0 auto;
2024-01-17 14:35:18 +01:00
}
.prix {
font-weight: bold;
color: #ff8c00;
2024-01-18 17:39:40 +01:00
font-size: 18px;
margin-top: 8px;
margin: 0 auto;
2024-01-17 17:52:48 +01:00
}
2024-01-18 17:39:40 +01:00
@media only screen and (max-width: 767px) {
.menu-elements {
flex-direction: column; /* Afficher les éléments en colonne sur les petits écrans */
}
.menu-element {
width: 100%;
}
}