oedb-backend/frontend/src/app/pages/home/menu/menu.scss

248 lines
4.4 KiB
SCSS
Raw Normal View History

2025-10-02 23:19:15 +02:00
:host {
2025-10-03 13:40:08 +02:00
display: block;
2025-10-12 17:19:50 +02:00
background: #f8f9fa;
border-right: 1px solid #e9ecef;
min-height: 100vh;
padding: 1rem;
2025-11-03 00:08:06 +01:00
@media (max-width: 768px) {
position: relative;
min-height: auto;
padding: 0.75rem;
border-right: none;
border-bottom: 1px solid #e9ecef;
}
}
// Overlay pour mobile (masqué par défaut, montré quand le menu est ouvert)
.menu-overlay {
display: none;
@media (max-width: 768px) {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
&.overlay-active {
display: block;
opacity: 1;
pointer-events: all;
}
}
2025-10-12 17:19:50 +02:00
}
.menu-header {
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 2px solid #3498db;
2025-11-03 00:08:06 +01:00
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
2025-10-12 17:19:50 +02:00
h1 {
color: #2c3e50;
margin: 0;
font-size: 1.5rem;
font-weight: 700;
2025-11-03 00:08:06 +01:00
flex: 1;
@media (max-width: 768px) {
font-size: 1.2rem;
}
}
@media (max-width: 768px) {
margin-bottom: 1rem;
padding-bottom: 0.75rem;
}
}
// Bouton burger menu
.burger-menu-toggle {
display: none;
flex-direction: column;
justify-content: space-around;
width: 28px;
height: 28px;
background: transparent;
border: none;
cursor: pointer;
padding: 0;
z-index: 1001;
transition: all 0.3s ease;
@media (max-width: 768px) {
display: flex;
}
&:focus {
outline: 2px solid #3498db;
outline-offset: 2px;
}
}
.burger-line {
width: 100%;
height: 3px;
background: #2c3e50;
border-radius: 2px;
transition: all 0.3s ease;
transform-origin: center;
}
.burger-menu-toggle[aria-expanded="true"] {
.burger-line:nth-child(1) {
transform: rotate(45deg) translate(7px, 7px);
}
.burger-line:nth-child(2) {
opacity: 0;
}
.burger-line:nth-child(3) {
transform: rotate(-45deg) translate(7px, -7px);
2025-10-12 17:19:50 +02:00
}
}
.nav {
display: flex;
flex-direction: column;
gap: 2rem;
2025-11-03 00:08:06 +01:00
transition: all 0.3s ease;
@media (max-width: 768px) {
position: relative;
z-index: 1000;
background: #f8f9fa;
max-height: 0;
overflow: hidden;
opacity: 0;
gap: 1.5rem;
border-radius: 0 0 8px 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
&.nav-open {
max-height: 2000px;
opacity: 1;
margin-top: 1rem;
padding: 1rem;
padding-top: 1rem;
border-top: 1px solid #e9ecef;
}
}
2025-10-12 17:19:50 +02:00
}
.nav-section {
h3 {
color: #6c757d;
font-size: 0.9rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 0.75rem;
padding-left: 0.5rem;
border-left: 3px solid #3498db;
}
&.quick-tools {
background: linear-gradient(135deg, #3498db, #2980b9);
border-radius: 8px;
padding: 1rem;
margin-bottom: 1rem;
h3 {
color: white;
border-left: 3px solid white;
margin-bottom: 1rem;
}
.link.highlight {
background: rgba(255, 255, 255, 0.1);
color: white;
font-weight: 600;
border: 1px solid rgba(255, 255, 255, 0.2);
margin-bottom: 0.5rem;
&:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateX(4px);
border-color: rgba(255, 255, 255, 0.4);
}
&.router-link-active {
background: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.5);
}
}
}
}
.link, .link-button {
display: block;
padding: 0.75rem 1rem;
color: #2c3e50;
text-decoration: none;
border-radius: 6px;
transition: all 0.3s ease;
margin-bottom: 0.25rem;
font-weight: 500;
border: none;
background: none;
width: 100%;
text-align: left;
cursor: pointer;
font-size: 0.95rem;
&:hover {
background: #3498db;
color: white;
transform: translateX(4px);
}
&.router-link-active {
background: #2980b9;
color: white;
font-weight: 600;
}
}
2025-10-04 23:36:37 +02:00
2025-10-12 17:19:50 +02:00
.link-button {
&:hover {
background: #e74c3c;
color: white;
}
2025-10-03 13:40:08 +02:00
}
#what_categories {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
}
.category {
background: #ffffff;
border-radius: 10px;
padding: 10px;
border: 1px solid rgba(0,0,0,0.08);
display: grid;
grid-template-columns: 28px 1fr;
gap: 10px;
align-items: center;
}
.emoji {
font-size: 20px;
}
2025-10-02 23:19:15 +02:00
2025-10-03 13:40:08 +02:00
.label {
font-weight: 600;
2025-10-02 23:19:15 +02:00
}