Zum Inhalt springen

Vorlage:Infobar/style.css: Unterschied zwischen den Versionen

Aus HammWiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:
     max-width: 400px;
     max-width: 400px;
     overflow: hidden;
     overflow: hidden;
     background-color: #f4f4f4; /* Basis-Hintergrundfarbe als Fallback */
     background-color: #f4f4f4; /* Fallback Basisgrau */
     display: flex;
     display: flex;
     flex-direction: row;
     flex-direction: row;
Zeile 10: Zeile 10:
     padding: 0.8rem;
     padding: 0.8rem;
     margin-bottom: 1rem;
     margin-bottom: 1rem;
     color: #333; /* Basis-Textfarbe als Fallback */}
     color: #333; /* Fallback Basisgrau */}


.pagewide {
.pagewide {
Zeile 17: Zeile 17:


.infobox-inline-text .head {
.infobox-inline-text .head {
     line-height: 1; /* Zeilenhöhe für die Kopfzeile */
     line-height: 1; /* Zeilenhöhe Kopfzeile */
     flex: 0 0 100%; /* Kopfzeile nimmt die gesamte Zeile ein */
     flex: 0 0 100%; /* Kopfzeile nimmt die gesamte Zeile ein */
     font-size: 0.9rem;
     font-size: 0.9rem;
Zeile 35: Zeile 35:


.infobar-text {
.infobar-text {
     display: flex; /* Flexbox */
     display: flex;
     flex-wrap: wrap; /* Erlaubt Elementen, in die nächste Zeile zu gehen, wenn nicht genug Platz vorhanden ist */
     flex-wrap: wrap; /* Erlaubt Elementen, in die nächste Zeile zu gehen, wenn nicht genug Platz vorhanden ist */
     align-items: center; /* Zentriert die Elemente vertikal */
     align-items: center;
     gap: 0.2rem; /* Definiert sowohl den row-gap als auch den column-gap für die Flexbox */
     gap: 0.2rem; /* Definiert sowohl row-gap als auch column-gap */
     width: 100%;
     width: 100%;
     padding: 0;
     padding: 0;
Zeile 46: Zeile 46:
.infobar-text .head {
.infobar-text .head {
     line-height: 1;
     line-height: 1;
     flex: 0 0 100%; /* Sorgt dafür, dass der Kopf immer seine eigene Zeile einnimmt */  
     flex: 0 0 100%; /* Kopf nimmt immer seine eigene Zeile einnimmt */  
     font-size: 0.9rem;}
     font-size: 0.9rem;}


Zeile 58: Zeile 58:
     line-height: 1.3;
     line-height: 1.3;
     display: inline-block;
     display: inline-block;
     align-items: center; /* Zentriert den Inhalt der Items vertikal */
     align-items: center;
     height: max-content;
     height: max-content;
     padding: 0.05rem 0.8rem;
     padding: 0.05rem 0.8rem;
     background-color: #fff; /* Hintergrundfarbe der Pillen-Items als Fallback */
     background-color: #fff; /* Fallback Hintergrund der Pillen */
     border-radius: 12px;
     border-radius: 12px;
     font-size: 0.75rem;}
     font-size: 0.75rem;}
Zeile 87: Zeile 87:


.infobar-img img {
.infobar-img img {
     box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.15); /* Subtiler Schatten */
     box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.15);
     max-width: 50px !important;
     max-width: 50px !important;
     max-height: 50px !important;
     max-height: 50px !important;

Version vom 16. Juli 2025, 20:55 Uhr

/* Grundlegende Stile für alle Infobars (längliche Infoboxen am Ende von Artikeln) */
.infobar {
    max-width: 400px;
    overflow: hidden;
    background-color: #f4f4f4; /* Fallback Basisgrau */
    display: flex;
    flex-direction: row;
    gap: 1.3rem;
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    color: #333; /* Fallback Basisgrau */}

.pagewide {
    padding: 0.25rem !important;
    max-width: 100% !important;}

.infobox-inline-text .head {
    line-height: 1; /* Zeilenhöhe Kopfzeile */
    flex: 0 0 100%; /* Kopfzeile nimmt die gesamte Zeile ein */
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.infobar-icon {
    max-width: 50px;
    max-height: 50px;
    margin: auto 0;
    display: flex;
    flex-shrink: 0 !important;}

.infobar-icon img {
    max-width: 100%; 
    max-height: 100%;}

.infobar-text {
    display: flex;
    flex-wrap: wrap; /* Erlaubt Elementen, in die nächste Zeile zu gehen, wenn nicht genug Platz vorhanden ist */
    align-items: center;
    gap: 0.2rem; /* Definiert sowohl row-gap als auch column-gap */
    width: 100%;
    padding: 0;
    margin: 0;
    color: inherit;}

.infobar-text .head {
    line-height: 1;
    flex: 0 0 100%; /* Kopf nimmt immer seine eigene Zeile einnimmt */ 
    font-size: 0.9rem;}

.solo {
    line-height: 1.4 !important;}

.inline {
    flex-basis: max-content !important;}

.infobar-text .item {
    line-height: 1.3;
    display: inline-block;
    align-items: center;
    height: max-content;
    padding: 0.05rem 0.8rem;
    background-color: #fff; /* Fallback Hintergrund der Pillen */
    border-radius: 12px;
    font-size: 0.75rem;}

.boxless {
    flex-basis: 100% !important;
    height: max-content !important;
    display: inline-block !important;
    padding: 0.05em 0 !important;
    background-color: inherit !important;
    border-radius: 0 !important;}

.infobar-text .head + .boxless.item {
    margin-top: -0.4em; /* Negativer margin-top, um den row-gap des ersten Items unter head zu entfernen */}

.shapeless {
    padding: 0.05em 1em 0.05em 0 !important;
    background-color: inherit !important; /* Hintergrundfarbe der Pillen-Items leeren */
    border-radius: 0 !important;}

.infobar-img {
    flex-shrink: 0;
    padding: 0;
    align-self: center;}

.infobar-img img {
    box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.15);
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 6px;
    object-fit: cover;}

/* Media Query für Bildschirme kleiner als 440px */
@media (max-width: 500px) {
.infobar {
    overflow: scroll;
    gap: 1em;
    max-width: 100% !important;}

.infobar-text {
    min-width: 215px;}
}
Cookies helfen uns bei der Bereitstellung von HammWiki. Durch die Nutzung von HammWiki erklärst du dich damit einverstanden, dass wir Cookies speichern.