ACHTUNG! Wegen der Umstellung auf eine neue Software-Version wird das HammWiki am Freitag und Samstag (22./23. August 2025) zeitweilig nur lesend zur Verfügung stehen.

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

Aus HammWiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(21 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 2: Zeile 2:
.infobar {
.infobar {
     max-width: 400px;
     max-width: 400px;
     background-color: #f4f4f4; /* Basis-Hintergrundfarbe als Fallback */
    overflow: hidden;
     background-color: #f4f4f4; /* Fallback Basisgrau */
     display: flex;
     display: flex;
     flex-direction: row;
     flex-direction: row;
     gap: 1.8em;
     gap: 1.3rem;
     border-radius: 6px;
     border-radius: 6px;
     padding: 1em;
     padding: 0.8rem;
     margin-bottom: 1.2em;
     margin-bottom: 1rem;
     color: #333; /* Basis-Textfarbe als Fallback */}
     color: #333; /* Fallback Basisgrau */}
 
.pagewide {
    gap: 0.8rem !important;
    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 {
.infobar-icon {
Zeile 23: Zeile 36:


.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.4em; /* 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 34: Zeile 47:
.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: 105%;}
     font-size: 0.9rem;}


.solo {
.solo {
Zeile 44: Zeile 57:


.infobar-text .item {
.infobar-text .item {
     line-height: 1.4 !important;
     line-height: 1.3;
     display: inline-flex; /* Verwendet inline-flex, damit .item-Elemente nebeneinander liegen können */
     display: inline-block;
     align-items: center; /* Zentriert den Inhalt der Items vertikal */
     align-items: center;
     height: max-content;
     height: max-content;
     padding: 0.05em 1em;
     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: 95%;}
     font-size: 0.75rem;}


.boxless {
.boxless {
Zeile 75: Zeile 88:


.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: 60px !important;
     max-width: 50px !important;
     max-height: 60px !important;
     max-height: 50px !important;
     border-radius: 6px;
     border-radius: 6px;
     object-fit: cover;}
     object-fit: cover;}


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

Aktuelle Version vom 16. Juli 2025, 21:02 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 {
    gap: 0.8rem !important;
    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;}
}