578 Zeilen
12 KiB
CSS
578 Zeilen
12 KiB
CSS
/**
|
|
* TASKMATE - Contacts Styles
|
|
* ==========================
|
|
* Tabellenansicht für Kontakte mit erweiterten Funktionen
|
|
*/
|
|
|
|
/* =============================================================================
|
|
VIEW CONTAINER
|
|
============================================================================= */
|
|
|
|
.view-contacts {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.view-contacts .view-wrapper {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--spacing-6);
|
|
max-width: 1400px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* =============================================================================
|
|
HEADER & CONTROLS
|
|
============================================================================= */
|
|
|
|
.contacts-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--spacing-6);
|
|
flex-wrap: wrap;
|
|
gap: var(--spacing-4);
|
|
}
|
|
|
|
.contacts-header h2 {
|
|
font-size: var(--text-2xl);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: var(--spacing-3);
|
|
align-items: center;
|
|
}
|
|
|
|
.contacts-stats {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-2);
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
padding: var(--spacing-2) var(--spacing-3);
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-lg);
|
|
border: 1px solid var(--border-default);
|
|
}
|
|
|
|
/* =============================================================================
|
|
CONTROLS BAR
|
|
============================================================================= */
|
|
|
|
.contacts-controls {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-default);
|
|
border-radius: var(--radius-xl);
|
|
padding: var(--spacing-4);
|
|
margin-bottom: var(--spacing-5);
|
|
}
|
|
|
|
.contacts-controls-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: var(--spacing-4);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.bulk-actions {
|
|
display: flex;
|
|
gap: var(--spacing-3);
|
|
align-items: center;
|
|
}
|
|
|
|
.bulk-actions.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.bulk-actions-info {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-primary);
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
.contacts-filters {
|
|
display: flex;
|
|
gap: var(--spacing-4);
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.filter-group {
|
|
position: relative;
|
|
}
|
|
|
|
.filter-select {
|
|
min-width: 180px;
|
|
height: 36px;
|
|
padding: 0 var(--spacing-4);
|
|
padding-right: 36px;
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-default);
|
|
border-radius: var(--radius-lg);
|
|
color: var(--text-primary);
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-medium);
|
|
appearance: none;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right var(--spacing-2) center;
|
|
background-size: 14px;
|
|
}
|
|
|
|
.filter-select:hover {
|
|
border-color: var(--border-dark);
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
.filter-select:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: var(--shadow-focus);
|
|
outline: none;
|
|
}
|
|
|
|
/* =============================================================================
|
|
TABLE LAYOUT
|
|
============================================================================= */
|
|
|
|
.contacts-table-container {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-default);
|
|
border-radius: var(--radius-xl);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.contacts-table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
.contacts-table th,
|
|
.contacts-table td {
|
|
padding: var(--spacing-3) var(--spacing-4);
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.contacts-table th {
|
|
background: var(--bg-secondary);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-primary);
|
|
font-size: var(--text-sm);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
border-bottom: 2px solid var(--border-default);
|
|
}
|
|
|
|
.contacts-table th:first-child {
|
|
padding-left: var(--spacing-4);
|
|
width: 40px;
|
|
}
|
|
|
|
.contacts-table th:last-child {
|
|
padding-right: var(--spacing-4);
|
|
text-align: right;
|
|
}
|
|
|
|
/* Sortable headers */
|
|
.sortable {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
position: relative;
|
|
padding-right: 24px;
|
|
}
|
|
|
|
.sortable:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.sortable::after {
|
|
content: '';
|
|
position: absolute;
|
|
right: 8px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 4px solid transparent;
|
|
border-right: 4px solid transparent;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.sortable.sort-asc::after {
|
|
border-bottom: 6px solid var(--primary);
|
|
opacity: 1;
|
|
}
|
|
|
|
.sortable.sort-desc::after {
|
|
border-top: 6px solid var(--primary);
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Table rows */
|
|
.contacts-table tbody tr {
|
|
border-bottom: 1px solid var(--border-default);
|
|
transition: background-color var(--transition-fast);
|
|
}
|
|
|
|
.contacts-table tbody tr:hover {
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
.contacts-table tbody tr.selected {
|
|
background-color: var(--bg-tertiary);
|
|
}
|
|
|
|
.contacts-table td {
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.contacts-table td:first-child {
|
|
padding-left: var(--spacing-4);
|
|
}
|
|
|
|
.contacts-table td:last-child {
|
|
padding-right: var(--spacing-4);
|
|
}
|
|
|
|
/* Checkbox column */
|
|
.checkbox-cell {
|
|
width: 40px;
|
|
text-align: center !important;
|
|
}
|
|
|
|
.table-checkbox {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
border: 2px solid var(--border-default);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-primary);
|
|
position: relative;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.table-checkbox:hover {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.table-checkbox:checked {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.table-checkbox:checked::after {
|
|
content: '✓';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: white;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Name column with avatar */
|
|
.name-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-3);
|
|
min-width: 200px;
|
|
}
|
|
|
|
.contact-avatar-small {
|
|
width: 32px;
|
|
height: 32px;
|
|
background: var(--primary);
|
|
color: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: var(--font-semibold);
|
|
font-size: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.contact-name-link {
|
|
color: var(--text-primary);
|
|
font-weight: var(--font-medium);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.contact-name-link:hover {
|
|
color: var(--primary);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Tags cell */
|
|
.tags-cell {
|
|
display: flex;
|
|
gap: var(--spacing-1);
|
|
flex-wrap: wrap;
|
|
max-width: 200px;
|
|
}
|
|
|
|
.contact-tag {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-full);
|
|
border: 1px solid var(--border-default);
|
|
font-weight: var(--font-medium);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Actions column */
|
|
.actions-cell {
|
|
text-align: right !important;
|
|
}
|
|
|
|
.table-actions {
|
|
display: flex;
|
|
gap: var(--spacing-2);
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.btn-table-action {
|
|
background: transparent;
|
|
border: 1px solid var(--border-default);
|
|
color: var(--text-secondary);
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-md);
|
|
transition: all var(--transition-fast);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-table-action:hover {
|
|
background: var(--primary);
|
|
color: white;
|
|
border-color: var(--primary);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.btn-table-action svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* Export button */
|
|
.btn-export {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-2);
|
|
}
|
|
|
|
.btn-export svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* =============================================================================
|
|
EMPTY STATE
|
|
============================================================================= */
|
|
|
|
.contacts-empty {
|
|
text-align: center;
|
|
padding: var(--spacing-8) var(--spacing-4);
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-xl);
|
|
border: 1px solid var(--border-default);
|
|
max-width: 500px;
|
|
margin: var(--spacing-8) auto;
|
|
}
|
|
|
|
.contacts-empty .empty-icon {
|
|
color: var(--text-tertiary);
|
|
margin-bottom: var(--spacing-4);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.contacts-empty .empty-icon svg {
|
|
width: 64px;
|
|
height: 64px;
|
|
}
|
|
|
|
.contacts-empty h3 {
|
|
font-size: var(--text-xl);
|
|
font-weight: var(--font-semibold);
|
|
margin-bottom: var(--spacing-2);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.contacts-empty p {
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--spacing-4);
|
|
}
|
|
|
|
/* =============================================================================
|
|
CONTACT MODAL
|
|
============================================================================= */
|
|
|
|
#contact-form {
|
|
display: grid;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
#contact-form .form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
#contact-form .form-group.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
#contact-form .tags-input-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
#contact-form .tags-input-wrapper input {
|
|
padding-right: 32px;
|
|
}
|
|
|
|
#contact-form .tags-help {
|
|
font-size: 11px;
|
|
color: var(--text-tertiary);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* =============================================================================
|
|
PAGINATION
|
|
============================================================================= */
|
|
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: var(--spacing-2);
|
|
padding: var(--spacing-4);
|
|
border-top: 1px solid var(--border-default);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.pagination-btn {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-default);
|
|
color: var(--text-secondary);
|
|
padding: var(--spacing-2) var(--spacing-3);
|
|
border-radius: var(--radius-md);
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-medium);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.pagination-btn:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.pagination-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.pagination-info {
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
/* =============================================================================
|
|
RESPONSIVE
|
|
============================================================================= */
|
|
|
|
@media (max-width: 1200px) {
|
|
.contacts-table-container {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.contacts-table {
|
|
min-width: 900px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 968px) {
|
|
.view-contacts .view-wrapper {
|
|
padding: var(--spacing-4);
|
|
}
|
|
|
|
.contacts-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.header-actions {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
gap: var(--spacing-2);
|
|
}
|
|
|
|
.contacts-controls {
|
|
padding: var(--spacing-3);
|
|
}
|
|
|
|
.contacts-controls-top {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.bulk-actions {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.filter-select {
|
|
min-width: 120px;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.contacts-table th,
|
|
.contacts-table td {
|
|
padding: var(--spacing-2) var(--spacing-3);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.modal-actions {
|
|
flex-direction: column-reverse;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.modal-actions-left {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* Mobile: Hide less important columns */
|
|
.hide-mobile {
|
|
display: none;
|
|
}
|
|
} |