Files
DEV/DEV.1.2/test/styles.css
Emmanuel Srivastava ff8345e8d9 update
2024-12-04 10:13:59 +01:00

137 lines
2.0 KiB
CSS

/* Réinitialisation */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
min-height: 100vh;
}
header {
background-color: #333;
color: white;
padding: 10px 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.navbar {
display: flex;
align-items: center;
width: 100%;
justify-content: space-between;
position: relative;
}
/* Menu hamburger */
.hamburger {
font-size: 24px;
cursor: pointer;
display: none; /* Masqué par défaut, visible sur mobiles */
color: white;
}
#hamburger-toggle {
display: none;
}
.menu {
display: flex;
gap: 15px;
}
.menu a {
color: white;
text-decoration: none;
}
.menu a:hover {
text-decoration: underline;
}
/* Styles pour le menu hamburger (mobile) */
#hamburger-toggle:checked ~ .menu {
display: flex;
flex-direction: column;
position: absolute;
top: 50px;
left: 0;
background: #333;
width: 100%;
padding: 10px 0;
}
.menu a {
padding: 10px 20px;
border-bottom: 1px solid #444;
}
/* Cacher le menu principal par défaut en mode mobile */
@media (max-width: 768px) {
.hamburger {
display: block;
}
.menu {
display: none;
flex-direction: column;
width: 100%;
}
}
/* Styles du menu latéral */
.side-menu {
background-color: #f8f8f8;
padding: 20px;
width: 200px;
}
.side-menu ul {
list-style: none;
}
.side-menu ul li {
margin: 10px 0;
}
.side-menu ul li.active {
font-weight: bold;
color: #007BFF;
}
/* Contenu principal */
main {
margin: 20px;
flex: 1;
}
.map-container {
background-color: #eaeaea;
height: 300px;
position: relative;
}
.location {
position: absolute;
font-size: 20px;
}
.card {
border: 1px solid #ddd;
padding: 10px;
margin: 10px 0;
}
footer {
text-align: center;
padding: 10px;
background-color: #333;
color: white;
}