Zuletzt bearbeitet vor 4 Monaten
von Xineohp1506

Modul:Infobox/styles.css: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* Grundlayout für die Infobox */
/* Grundlayout der Infobox beibehalten und Float-Einstellungen hinzufügen */
.infobox {
.infobox {
     width: 100%; /* Passt sich mobil an */
    float: right;
     max-width: 300px; /* Maximale Breite der Infobox */
    clear: right;
     border: 1px solid #ddd; /* Umrandung der Infobox */
    margin: 0.5em 0 0.5em 1em;
     background-color: #f9f9f9; /* Hintergrundfarbe */
     width: 22em;
     padding: 10px;
     max-width: 100%;
     border-radius: 8px; /* Abgerundete Ecken */
     border: 1px solid #a2a9b1;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
     background-color: #f9f9fa;
    font-family: Arial, sans-serif;
    color: black;
    color: #333;
     padding: 0.2em;
    font-size: 88%;
    line-height: 1.5em;
    border-spacing: 3px;
     border-radius: 8px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
}


/* Titelbereich */
/* Titelbereich */
.infobox .title {
.infobox-title, .infobox-header {
     font-size: 1.4em;
     font-size: 1.25em;
     font-weight: bold;
     font-weight: bold;
    color: #444;
    margin-bottom: 10px;
     text-align: center;
     text-align: center;
     padding: 5px;
     padding: 0.2em;
     background-color: #eee;
     background-color: #eee;
     border-radius: 5px;
     border-radius: 5px;
    color: #444;
}
}


/* Bildbereich */
/* Mobilgerätanpassungen */
.infobox .image {
@media (max-width: 640px) {
    text-align: center;
    .infobox {
    margin: 10px 0;
        float: none;
        width: 100%;
        margin: 0.5em 0;
    }
}
}


.infobox .image img {
/* Bildbereich */
.infobox .infobox-image img {
     max-width: 100%;
     max-width: 100%;
     border-radius: 5px;
     border-radius: 5px;
Zeile 37: Zeile 45:


/* Kopfzeilen */
/* Kopfzeilen */
.infobox .header {
.infobox .header, .infobox .infobox-subheader {
     font-weight: bold;
     font-weight: bold;
     font-size: 1.1em;
     font-size: 1.1em;
     color: #666;
     color: #666;
     border-bottom: 1px solid #ddd;
     border-bottom: 1px solid #ddd;
    margin-top: 10px;
     padding: 0.2em;
     padding-bottom: 4px;
}
}


/* Label- und Datenfelder */
/* Label- und Datenfelder */
.infobox .label {
.infobox .infobox-label {
     font-weight: bold;
     font-weight: bold;
     color: #555;
     color: #555;
     padding: 5px 0;
     padding: 0.2em;
    width: 40%;
}
}


.infobox .data {
.infobox .infobox-data {
     padding: 5px 0;
     padding: 0.2em;
     width: 60%;
     color: #333;
}
}


/* Anpassungen für Hinweise und Symbole */
/* Symbole und Hinweise */
.infobox .hints {
.infobox .infobox-hints {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
Zeile 67: Zeile 73:
}
}


.infobox .hints img {
.infobox .infobox-hints img {
     width: 24px;
     width: 24px;
     height: 24px;
     height: 24px;
}
}


/* Kategorie */
.infobox .category {
.infobox .category {
     font-size: 0.9em;
     font-size: 0.9em;

Version vom 11. November 2024, 00:18 Uhr

/* Grundlayout der Infobox beibehalten und Float-Einstellungen hinzufügen */
.infobox {
    float: right;
    clear: right;
    margin: 0.5em 0 0.5em 1em;
    width: 22em;
    max-width: 100%;
    border: 1px solid #a2a9b1;
    background-color: #f9f9fa;
    color: black;
    padding: 0.2em;
    font-size: 88%;
    line-height: 1.5em;
    border-spacing: 3px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Titelbereich */
.infobox-title, .infobox-header {
    font-size: 1.25em;
    font-weight: bold;
    text-align: center;
    padding: 0.2em;
    background-color: #eee;
    border-radius: 5px;
    color: #444;
}

/* Mobilgerätanpassungen */
@media (max-width: 640px) {
    .infobox {
        float: none;
        width: 100%;
        margin: 0.5em 0;
    }
}

/* Bildbereich */
.infobox .infobox-image img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Kopfzeilen */
.infobox .header, .infobox .infobox-subheader {
    font-weight: bold;
    font-size: 1.1em;
    color: #666;
    border-bottom: 1px solid #ddd;
    padding: 0.2em;
}

/* Label- und Datenfelder */
.infobox .infobox-label {
    font-weight: bold;
    color: #555;
    padding: 0.2em;
}

.infobox .infobox-data {
    padding: 0.2em;
    color: #333;
}

/* Symbole und Hinweise */
.infobox .infobox-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.infobox .infobox-hints img {
    width: 24px;
    height: 24px;
}

/* Kategorie */
.infobox .category {
    font-size: 0.9em;
    color: #777;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}