feat: implémenter modal confirmation actions bulk avec preview liste liens (ID + titre), styles dédiés (max-width 520px, list scrollable 320px, boutons colorés par action delete/public/private), synchronisation mode thème vers bookmark via fetch/POST formulaire, refactoring actions bulk (delete/visibility) avec URLs GET params au lieu de forms POST, ajout token shaarli dans includes.html, correction tag config bookmark (shaarit_config→themes), et support fermeture modal ESC/overlay-click
This commit is contained in:
@@ -797,6 +797,105 @@ input:checked+.theme-slider:before {
|
||||
margin-top: 1.75rem;
|
||||
}
|
||||
|
||||
.bulk-modal {
|
||||
max-width: 520px;
|
||||
}
|
||||
|
||||
.bulk-modal-header h3 {
|
||||
margin: 0;
|
||||
font-size: 1.25rem;
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.bulk-modal-header p {
|
||||
margin: 0.3rem 0 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.bulk-modal-list {
|
||||
margin: 1.5rem 0;
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: 0.65rem;
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
background: var(--bg-body);
|
||||
}
|
||||
|
||||
.bulk-modal-item {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem 1rem;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
font-size: 0.95rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.bulk-modal-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.bulk-modal-item-id {
|
||||
font-weight: 600;
|
||||
color: var(--primary);
|
||||
min-width: 70px;
|
||||
}
|
||||
|
||||
.bulk-modal-item-title {
|
||||
color: var(--text-main);
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.bulk-modal-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.bulk-modal-btn {
|
||||
min-width: 140px;
|
||||
padding: 0.75rem 1.2rem;
|
||||
border-radius: 0.5rem;
|
||||
border: none;
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease, opacity 0.15s ease;
|
||||
}
|
||||
|
||||
.bulk-modal-btn:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.bulk-modal-cancel {
|
||||
background: var(--bg-card-hover);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.bulk-modal-confirm {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.bulk-modal-confirm.bulk-confirm-delete {
|
||||
background: var(--danger);
|
||||
}
|
||||
|
||||
.bulk-modal-confirm.bulk-confirm-public {
|
||||
background: var(--primary);
|
||||
}
|
||||
|
||||
.bulk-modal-confirm.bulk-confirm-private {
|
||||
background: var(--info);
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.bulk-modal-btn:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
|
||||
Reference in New Issue
Block a user