Files
LoreMind/web/src/app/sidebar/sidebar.component.scss
IETM_FIXE\ietm6 41fda9aeee
Some checks failed
E2E Tests / e2e (push) Failing after 19s
Build & Push Images / build (brain) (push) Successful in 45s
Build & Push Images / build (core) (push) Successful in 1m16s
Build & Push Images / build (web) (push) Successful in 1m26s
Ajout d'un script pour installation automatique du produit
Ajout d'une partie mise à jour automatique : plus besoin de docker pull en ligne de commande ; on peut passer par l'interface
Refactoring partie Java pour respecter d'avantage le DDD : plus de jackson dans la partie domain

Passage version 0.6.6
2026-04-25 13:24:32 +02:00

204 lines
4.0 KiB
SCSS

.sidebar {
width: 190px;
height: 100vh;
background: #0f0f1a;
color: #e0e0e0;
display: flex;
flex-direction: column;
padding: 1.5rem 1rem;
border-right: 1px solid #1e1e3a;
}
.sidebar-header { margin-bottom: 2rem; }
.logo {
display: flex;
align-items: center;
gap: 0.5rem;
}
.logo-icon { font-size: 1.2rem; color: #6c63ff; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: white; }
.logo-subtitle {
font-size: 0.65rem;
color: #6b7280;
letter-spacing: 0.15em;
margin-top: 0.25rem;
}
.nav-toggle {
display: flex;
background: #1a1a2e;
border-radius: 0.5rem;
padding: 0.25rem;
gap: 0;
}
.toggle-btn {
flex: 1;
padding: 0.5rem 0.75rem;
background: transparent;
color: #9ca3af;
border: none;
border-radius: 0.4rem;
cursor: pointer;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.2s;
&:hover { color: white; }
&.active { background: #6c63ff; color: white; }
}
.spacer { flex: 1; }
.context-list {
display: flex;
flex-direction: column;
gap: 0.15rem;
margin-top: 0.75rem;
flex: 1;
overflow-y: auto;
}
.context-item {
width: 100%;
background: transparent;
border: none;
color: #9ca3af;
font-size: 0.82rem;
padding: 0.45rem 0.75rem;
border-radius: 6px;
cursor: pointer;
text-align: left;
transition: all 0.15s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:hover { background: #1f2937; color: white; }
&.active { background: #1e1b4b; color: #a5b4fc; font-weight: 600; }
}
// Bouton de retour vers la liste globale (ex: "Tous les lores" / "Toutes les campagnes").
// Volontairement distinct des context-items pour signaler que c'est une action
// de navigation hors-contexte (retour au niveau supérieur).
.btn-back-all {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
width: 100%;
background: #1f2937;
border: 1px solid #374151;
color: #d1d5db;
font-size: 0.82rem;
font-weight: 500;
padding: 0.6rem 0.85rem;
border-radius: 8px;
cursor: pointer;
margin-bottom: 0.75rem;
// Séparateur visuel au-dessus pour détacher du bloc globalItems.
margin-top: 0.75rem;
position: relative;
transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
// Fine ligne de séparation au-dessus.
&::before {
content: '';
position: absolute;
top: -0.5rem;
left: 0.5rem;
right: 0.5rem;
height: 1px;
background: #1f2937;
}
// Petit déplacement de la flèche au hover pour suggérer l'action "retour".
lucide-icon {
color: #9ca3af;
transition: transform 0.15s, color 0.15s;
}
&:hover {
background: #374151;
border-color: #6c63ff;
color: white;
lucide-icon {
color: #a5b4fc;
transform: translateX(-2px);
}
}
}
.tools-section {
display: flex;
flex-direction: column;
gap: 0.25rem;
margin-bottom: 1rem;
}
.tools-label {
font-size: 0.7rem;
color: #6b7280;
letter-spacing: 0.1em;
text-transform: uppercase;
margin-bottom: 0.5rem;
}
.tool-btn {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.6rem 0.75rem;
background: transparent;
color: #9ca3af;
border: none;
border-radius: 0.4rem;
cursor: pointer;
font-size: 0.875rem;
text-align: left;
width: 100%;
transition: color 0.2s;
&:hover { color: white; }
}
.tool-icon { font-size: 1rem; }
.tool-kbd {
margin-left: auto;
font-size: 0.7rem;
background: #2d3145;
color: #9ca3af;
padding: 0.1rem 0.35rem;
border-radius: 3px;
border: 1px solid #3a3f55;
}
.update-badge {
margin-left: auto;
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.05em;
background: #6c63ff;
color: white;
padding: 0.15rem 0.4rem;
border-radius: 3px;
animation: update-pulse 2s ease-in-out infinite;
}
@keyframes update-pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.5); }
50% { box-shadow: 0 0 0 4px rgba(108, 99, 255, 0); }
}
.sidebar-footer {
padding-top: 1rem;
border-top: 1px solid #1e1e3a;
}
.version { font-size: 0.7rem; color: #4b5563; }