Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* ==========================================
/* =====================================================
   Amon Wiki Premium Infobox Engine
   Amon Wiki Stable Infobox Layout (SAFE VERSION)
  Stable Production Version
   ===================================================== */
   ========================================== */


.infobox {
.infobox {
Zeile 23: Zeile 22:
}
}


/* Header Title Styling */
/* Header title */
.infobox > tbody > tr:first-child th {
.infobox > tbody > tr:first-child th {
     text-align: center !important;
     text-align: center !important;
     font-size: 118%;
     font-size: 118%;
     font-weight: 600;
     font-weight: 600;
    letter-spacing: 0.3px;
     padding-top: 14px;
     padding-top: 14px;
     padding-bottom: 12px;
     padding-bottom: 12px;
     background-color: #f7f9fa;
     background-color: #f7f9fa;
    width: 100%;
}
}


/* Locator Map Cells (safer selector) */
/* Maps */
.infobox tr:has(td[colspan="2"]) td {
.infobox td[colspan="2"] {
     padding-top: 8px;
     padding: 8px !important;
     padding-bottom: 8px;
     text-align: center;
}
}


/* Locator Map Images */
.infobox td[colspan="2"] img {
.infobox tr:has(td[colspan="2"]) img {
     width: 100% !important;
     width: 100% !important;
     height: auto;
     height: auto;
     display: block;
     display: block;
    margin: 0 auto;
}
}


Zeile 69: Zeile 64:
         text-align: left !important;
         text-align: left !important;
         font-weight: 600;
         font-weight: 600;
    }
    .infobox > tbody > tr:first-child th {
        text-align: center !important;
        display: table-cell !important;
     }
     }
}
}

Version vom 24. Februar 2026, 16:32 Uhr

/* =====================================================
   Amon Wiki Stable Infobox Layout (SAFE VERSION)
   ===================================================== */

.infobox {
    float: right;
    width: 22em;
    max-width: 100%;
    border-collapse: collapse;
    background-color: #f7f9fa;

    border: 1px solid #d6d6d6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Images inside infobox */
.infobox img {
    max-width: 90%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Header title */
.infobox > tbody > tr:first-child th {
    text-align: center !important;
    font-size: 118%;
    font-weight: 600;
    padding-top: 14px;
    padding-bottom: 12px;
    background-color: #f7f9fa;
}

/* Maps */
.infobox td[colspan="2"] {
    padding: 8px !important;
    text-align: center;
}

.infobox td[colspan="2"] img {
    width: 100% !important;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Mobile Layout */
@media screen and (max-width: 768px) {

    .infobox {
        float: none !important;
        width: 95% !important;
        max-width: 520px !important;
        margin: 8px auto !important;
    }

    .infobox td,
    .infobox th {
        padding: 6px !important;
        border: 1px solid #e0e0e0 !important;
    }

    .infobox th {
        text-align: left !important;
        font-weight: 600;
    }
}