Vorlage:Rezept/Infobox/styles.css: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
K 8 Versionen importiert
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Grundlayout der Infobox beibehalten und Float-Einstellungen hinzufügen */
.infobox {
.infobox {
     float: right;
     float: right;
Zeile 15: Zeile 14:
     border-radius: 8px;
     border-radius: 8px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.infobox td,
.infobox th {
    padding: 0.2em;
}
}


Zeile 26: Zeile 30:
}
}


/* Mobilgerätanpassungen */
/* Breiten der Label- und Daten-Spalten */
@media (max-width: 640px) {
.infobox-label {
    .infobox {
     width: 40%; /* Label-Spalte: 40% der Breite */
        float: none;
        width: 100%;
        margin: 0.5em 0;
    }
}
 
/* Bildbereich */
.infobox .infobox-image {
    text-align: center;
    margin: 10px 0;
}
 
.infobox .infobox-image img {
     max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
 
/* Bildunterschrift */
.infobox .infobox-caption {
    text-align: center;
    font-size: 0.85em;
    color: #555;
    margin-top: 5px;
}
 
/* 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;
     font-weight: bold;
     color: #555;
     color: #555;
Zeile 71: Zeile 38:
}
}


.infobox .infobox-data {
.infobox-data {
    width: 60%; /* Daten-Spalte: 60% der Breite */
     padding: 0.2em;
     padding: 0.2em;
     color: #333;
     color: #333;
Zeile 77: Zeile 45:


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


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


Zeile 93: Zeile 55:
     font-size: 0.9em;
     font-size: 0.9em;
     color: #777;
     color: #777;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}
}

Aktuelle Version vom 26. Juni 2025, 08:54 Uhr

.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);
}

.infobox td,
.infobox th {
    padding: 0.2em;
}

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

/* Breiten der Label- und Daten-Spalten */
.infobox-label {
    width: 40%; /* Label-Spalte: 40% der Breite */
    font-weight: bold;
    color: #555;
    padding: 0.2em;
}

.infobox-data {
    width: 60%; /* Daten-Spalte: 60% der Breite */
    padding: 0.2em;
    color: #333;
}

/* Symbole und Hinweise */
.infobox .infobox-icons {
}

.infobox .infobox-icons img {
}

/* Kategorie */
.infobox .category {
    font-size: 0.9em;
    color: #777;
}