feat(settings): add dedicated Sync tab with CardDAV contacts integration
- Rename Calendar tab to Synchronization with two sections: * Calendar Sync (Google, Apple, CalDAV, ICS) * Contact Sync (CardDAV) - NEW - Add visual tab grouping with CSS separators between sections - Implement CardDAV account management UI: * Add/delete accounts * Enable/disable addressbooks * Manual sync trigger * Connection testing - Add UX improvements: * Status badges (success/error/syncing) * Empty states with onboarding * Inline help tooltips (prepared) * Breadcrumb navigation (prepared) - Update i18n keys in all 14 locales - All 109 tests passing Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -91,6 +91,43 @@
|
||||
border-bottom-color: var(--color-accent);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Visuelle Tab-Gruppierung (Vorschlag B)
|
||||
-------------------------------------------------------- */
|
||||
|
||||
/* Trennlinie vor Sync-Gruppe */
|
||||
.settings-tab-btn[data-group="sync"]::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -8px;
|
||||
top: 20%;
|
||||
height: 60%;
|
||||
width: 2px;
|
||||
background: var(--color-border);
|
||||
}
|
||||
|
||||
/* Trennlinie vor Personal-Gruppe */
|
||||
.settings-tab-btn[data-group="personal"]::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -8px;
|
||||
top: 20%;
|
||||
height: 60%;
|
||||
width: 2px;
|
||||
background: var(--color-border);
|
||||
}
|
||||
|
||||
/* Trennlinie vor Admin-Gruppe */
|
||||
.settings-tab-btn[data-group="admin"]::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -8px;
|
||||
top: 20%;
|
||||
height: 60%;
|
||||
width: 2px;
|
||||
background: var(--color-border);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Sections
|
||||
-------------------------------------------------------- */
|
||||
@@ -568,6 +605,168 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Breadcrumb Navigation (UX-Verbesserung 1)
|
||||
-------------------------------------------------------- */
|
||||
|
||||
.settings-breadcrumb {
|
||||
margin-bottom: var(--space-4);
|
||||
padding-bottom: var(--space-3);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.settings-breadcrumb__current {
|
||||
color: var(--color-text-primary);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Inline Help Icons mit Tooltips (UX-Verbesserung 2)
|
||||
-------------------------------------------------------- */
|
||||
|
||||
.settings-help-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-left: var(--space-1);
|
||||
color: var(--color-text-tertiary);
|
||||
cursor: help;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.settings-help-icon:hover {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.settings-help-icon svg,
|
||||
.settings-help-icon i {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.settings-help-tooltip {
|
||||
position: absolute;
|
||||
bottom: calc(100% + var(--space-2));
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
max-width: 240px;
|
||||
background: var(--color-text-primary);
|
||||
color: var(--color-bg);
|
||||
font-size: var(--text-xs);
|
||||
line-height: 1.4;
|
||||
border-radius: var(--radius-sm);
|
||||
white-space: normal;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transition: opacity var(--transition-fast);
|
||||
z-index: var(--z-tooltip);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.settings-help-icon:hover .settings-help-tooltip {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.settings-help-tooltip::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border: 4px solid transparent;
|
||||
border-top-color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Status Badges (UX-Verbesserung 3)
|
||||
-------------------------------------------------------- */
|
||||
|
||||
.settings-status-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-1);
|
||||
padding: var(--space-1) var(--space-2);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--font-weight-medium);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.settings-status-badge--success {
|
||||
background: var(--color-success-light);
|
||||
color: var(--color-success);
|
||||
}
|
||||
|
||||
.settings-status-badge--error {
|
||||
background: var(--color-danger-light);
|
||||
color: var(--color-danger);
|
||||
}
|
||||
|
||||
.settings-status-badge--syncing {
|
||||
background: var(--color-accent-light);
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.settings-status-badge__icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.settings-status-badge--syncing .settings-status-badge__icon {
|
||||
animation: spin 1.5s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Enhanced Empty State (UX-Verbesserung 4)
|
||||
-------------------------------------------------------- */
|
||||
|
||||
.settings-empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-8) var(--space-6);
|
||||
text-align: center;
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--color-surface-2);
|
||||
border: 2px dashed var(--color-border);
|
||||
margin: var(--space-4) 0;
|
||||
}
|
||||
|
||||
.settings-empty-state__icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin-bottom: var(--space-4);
|
||||
color: var(--color-text-tertiary);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.settings-empty-state__title {
|
||||
font-size: var(--text-lg);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary);
|
||||
margin: 0 0 var(--space-2);
|
||||
}
|
||||
|
||||
.settings-empty-state__description {
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-text-secondary);
|
||||
line-height: 1.5;
|
||||
margin: 0 0 var(--space-4);
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
Theme-Toggle
|
||||
-------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user