b730ece159
- Add --color-text-on-accent token to tokens.css - Migrate all hardcoded color:#fff/#ffffff to var(--color-text-on-accent) across all module stylesheets - Fix toggle thumb background (#fff -> var(--color-surface)) for dark mode - Migrate hardcoded transition durations to token vars (--transition-fast/base/slow)
232 lines
5.8 KiB
CSS
232 lines
5.8 KiB
CSS
/**
|
|
* Modul: Kontakte (Contacts)
|
|
* Zweck: Styles für Kontaktliste, Kategorie-Chips, Kontakt-Karte, Modal
|
|
* Abhängigkeiten: tokens.css, layout.css
|
|
*/
|
|
|
|
/* --------------------------------------------------------
|
|
* Modul-Akzent
|
|
* -------------------------------------------------------- */
|
|
.contacts-page { --module-accent: var(--module-contacts); }
|
|
|
|
/* --------------------------------------------------------
|
|
* Seiten-Layout
|
|
* -------------------------------------------------------- */
|
|
.contacts-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: calc(100dvh - var(--nav-bottom-height) - var(--safe-area-inset-bottom));
|
|
max-width: var(--content-max-width);
|
|
margin: 0 auto;
|
|
overflow: hidden;
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.contacts-page { height: 100dvh; }
|
|
}
|
|
|
|
/* --------------------------------------------------------
|
|
* Toolbar: Suche + Filter + Neu
|
|
* -------------------------------------------------------- */
|
|
.contacts-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: var(--space-3) var(--space-4);
|
|
border-bottom: 1px solid var(--color-border);
|
|
background-color: var(--color-surface);
|
|
flex-shrink: 0;
|
|
border-top: 3px solid var(--module-accent);
|
|
}
|
|
|
|
.contacts-toolbar__search {
|
|
flex: 1;
|
|
position: relative;
|
|
}
|
|
|
|
.contacts-toolbar__search-icon {
|
|
position: absolute;
|
|
left: var(--space-3);
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--color-text-disabled);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.contacts-toolbar__search-input {
|
|
width: 100%;
|
|
padding: var(--space-2) var(--space-3) var(--space-2) 36px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1.5px solid var(--color-border);
|
|
background-color: var(--color-surface-2);
|
|
color: var(--color-text-primary);
|
|
font-size: var(--text-md);
|
|
transition: border-color var(--transition-fast);
|
|
min-height: 36px;
|
|
}
|
|
|
|
.contacts-toolbar__search-input:focus {
|
|
outline: none;
|
|
border-color: var(--color-accent);
|
|
background-color: var(--color-surface);
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.contacts-toolbar__search-input { font-size: var(--text-sm); }
|
|
}
|
|
|
|
/* --------------------------------------------------------
|
|
* Kategorie-Filter (horizontal scroll)
|
|
* -------------------------------------------------------- */
|
|
.contacts-filters {
|
|
display: flex;
|
|
gap: var(--space-2);
|
|
padding: var(--space-2) var(--space-4);
|
|
border-bottom: 1px solid var(--color-border);
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.contacts-filters::-webkit-scrollbar { display: none; }
|
|
|
|
.contact-filter-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
padding: var(--space-1) var(--space-3);
|
|
border-radius: var(--radius-full);
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-weight-medium);
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
border: 1.5px solid var(--color-border);
|
|
background: transparent;
|
|
color: var(--color-text-secondary);
|
|
transition: all var(--transition-fast);
|
|
min-height: 30px;
|
|
}
|
|
|
|
.contact-filter-chip:hover:not(.contact-filter-chip--active) {
|
|
border-color: var(--color-text-secondary);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.contact-filter-chip--active {
|
|
background-color: var(--color-accent);
|
|
border-color: var(--color-accent);
|
|
color: var(--color-text-on-accent);
|
|
}
|
|
|
|
/* --------------------------------------------------------
|
|
* Kontaktliste
|
|
* -------------------------------------------------------- */
|
|
.contacts-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.contact-group {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.contact-group__header {
|
|
font-size: var(--text-xs);
|
|
font-weight: var(--font-weight-semibold);
|
|
color: var(--color-text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
padding: var(--space-2) var(--space-4) var(--space-1);
|
|
background-color: var(--color-bg);
|
|
border-bottom: 1px solid var(--color-border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: var(--z-base);
|
|
}
|
|
|
|
.contact-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
padding: var(--space-4);
|
|
border-bottom: 1px solid var(--color-border-subtle);
|
|
border-left: 3px solid var(--module-accent);
|
|
cursor: pointer;
|
|
transition: background-color var(--transition-fast);
|
|
}
|
|
|
|
.contact-item:hover {
|
|
background-color: var(--color-surface-2);
|
|
}
|
|
|
|
.contact-item__icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-full);
|
|
background-color: var(--color-accent-light);
|
|
color: var(--color-accent);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
font-size: var(--text-lg);
|
|
}
|
|
|
|
.contact-item__body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.contact-item__name {
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-weight-medium);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.contact-item__meta {
|
|
font-size: var(--text-sm);
|
|
color: var(--color-text-secondary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.contact-item__actions {
|
|
display: flex;
|
|
gap: var(--space-1);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.contact-action-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: var(--radius-full);
|
|
border: none;
|
|
background: var(--color-surface-2);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--color-text-secondary);
|
|
transition: background-color var(--transition-fast), color var(--transition-fast);
|
|
min-height: var(--target-lg);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.contact-action-btn:hover {
|
|
background-color: var(--color-accent-light);
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
.contact-action-btn--call:hover { background-color: var(--color-success-light); color: var(--color-success); }
|
|
.contact-action-btn--mail:hover { background-color: var(--color-accent-light); color: var(--color-accent); }
|
|
.contact-action-btn--maps:hover { background-color: var(--color-warning-light); color: var(--color-warning); }
|
|
|
|
|