Template:Person/styles.css

From MaRDI portal
/* Template:Person/styles.css
   Person-specific overrides only.
   All shared card styles live in Template:ItemCards/styles.css
   which is loaded separately via the template. */

/* ── Badge/identifier block spacing ── */
.person-meta {
    margin: 0.75rem 0 1.25rem 0;
}

/* ── Incomplete list notice ── */
.person-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #7F1D1D;
    line-height: 1.5;
}

.person-notice .fas {
    font-size: 16px;
    color: #EF4444;
    margin-top: 2px;
    flex-shrink: 0;
}

.person-notice a {
    color: #B91C1C !important;
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .person-notice {
        background: #2D1515;
        border-color: #7F1D1D;
        color: #FCA5A5;
    }
    .person-notice .fas {
        color: #F87171;
    }
    .person-notice a {
        color: #FCA5A5 !important;
    }
}
.pub-section table,
.pub-section table tbody,
.pub-section table thead,
.pub-section table tr,
.pub-section table tr:nth-child(even),
.pub-section table tr:nth-child(odd),
.pub-section table tr:hover,
.pub-section .wikitable,
.pub-section .wikitable td,
.pub-section .wikitable tr,
.pub-section .wikitable tr:nth-child(even),
.pub-section .wikitable tr:nth-child(odd) {
    background: transparent !important;
    border: none !important;
}

.pub-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.pub-section table th,
.pub-section .wikitable th {
    background: rgba(0, 0, 0, 0.06) !important;
    font-weight: 600;
    padding: 8px 12px;
    border: none !important;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.15) !important;
    text-align: left;
    color: #333;
}

.pub-section table td {
    padding: 7px 12px;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    vertical-align: top;
    background: transparent !important;
}

.pub-section table tr:last-child td {
    border-bottom: none !important;
}

.pub-section .wikitable tr:hover,
.pub-section table tr:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

@media (prefers-color-scheme: dark) {
    .pub-section table th {
        border-bottom-color: rgba(255, 255, 255, 0.15) !important;
        color: #bbb;
    }
    .pub-section table td {
        border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    }
    .pub-section .wikitable tr:hover,
    .pub-section table tr:hover {
        background: rgba(255, 255, 255, 0.05) !important;
    }
}