feat: Refonte moderne du panneau de notes avec design latéral
- Transformation en panneau latéral droit au lieu du bas - Header avec gradient violet et design moderne - Ajout bouton Effacer et amélioration du placeholder - Suppression du badge rouge de notification - Animations fluides et redimensionnement automatique de la webview - Interface plus cohérente et intuitive
This commit is contained in:
@@ -612,95 +612,171 @@ body {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* === ZONE DE NOTES === */
|
||||
/* === ZONE DE NOTES - PANNEAU LATÉRAL === */
|
||||
.notes-section {
|
||||
position: fixed;
|
||||
top: 60px; /* Juste sous le header */
|
||||
right: -400px; /* Caché par défaut */
|
||||
width: 380px;
|
||||
height: calc(100vh - 60px);
|
||||
background: white;
|
||||
border-top: 2px solid #667eea;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
transition: transform 0.3s ease;
|
||||
transform: translateY(100%);
|
||||
box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
|
||||
box-shadow: -4px 0 20px rgba(0,0,0,0.1);
|
||||
transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-left: 1px solid #e1e4e8;
|
||||
}
|
||||
|
||||
.notes-section.visible {
|
||||
transform: translateY(0);
|
||||
right: 0;
|
||||
animation: slideInRight 0.3s ease-out;
|
||||
}
|
||||
|
||||
@keyframes slideInRight {
|
||||
from {
|
||||
right: -400px;
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
right: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.notes-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 15px 20px;
|
||||
background: #f8f9fa;
|
||||
border-bottom: 1px solid #e9ecef;
|
||||
padding: 20px;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.notes-header h4 {
|
||||
margin: 0;
|
||||
color: #333;
|
||||
font-size: 16px;
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.notes-header h4::before {
|
||||
content: '📝';
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.btn-close-notes {
|
||||
background: none;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border: none;
|
||||
font-size: 24px;
|
||||
color: #999;
|
||||
font-size: 20px;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 4px;
|
||||
border-radius: 50%;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.btn-close-notes:hover {
|
||||
background: white;
|
||||
color: #333;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.notes-section textarea {
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
min-height: 120px;
|
||||
padding: 15px 20px;
|
||||
padding: 20px;
|
||||
border: none;
|
||||
resize: none;
|
||||
font-family: inherit;
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
line-height: 1.6;
|
||||
background: #fafbfc;
|
||||
}
|
||||
|
||||
.notes-section textarea:focus {
|
||||
outline: none;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.notes-section textarea::placeholder {
|
||||
color: #959da5;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.notes-footer {
|
||||
padding: 15px 20px;
|
||||
background: white;
|
||||
border-top: 1px solid #e1e4e8;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.btn-small {
|
||||
margin: 0 20px 15px 20px;
|
||||
padding: 8px 20px;
|
||||
background: #667eea;
|
||||
flex: 1;
|
||||
padding: 10px 20px;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.btn-small:hover {
|
||||
background: #5a6fd8;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
|
||||
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
|
||||
}
|
||||
|
||||
.btn-small.btn-clear {
|
||||
flex: 0.5;
|
||||
background: #f1f3f5;
|
||||
color: #495057;
|
||||
}
|
||||
|
||||
.btn-small.btn-clear:hover {
|
||||
background: #e9ecef;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Ajustement de la webview quand les notes sont visibles */
|
||||
.webview-container.notes-open {
|
||||
margin-right: 380px;
|
||||
transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
/* Tooltip moderne pour le bouton notes */
|
||||
.btn-icon[title]::after {
|
||||
content: attr(title);
|
||||
position: absolute;
|
||||
bottom: -35px;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, 0.9);
|
||||
color: white;
|
||||
padding: 6px 12px;
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.3s;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.btn-icon[title]:hover::after {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
/* === MODAL === */
|
||||
.modal {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user