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
Zur Navigation springen
Zur Suche springen
RaWen (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
RaWen (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (44 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 2: | Zeile 2: | ||
.infobar { | .infobar { | ||
max-width: 400px; | max-width: 400px; | ||
background-color: #f4f4f4; /* | overflow: hidden; | ||
background-color: #f4f4f4; /* Fallback Basisgrau */ | |||
display: flex; | display: flex; | ||
flex-direction: row; | flex-direction: row; | ||
gap: 1. | gap: 1.3rem; | ||
border-radius: 6px; | border-radius: 6px; | ||
padding: | padding: 0.8rem; | ||
margin-bottom: | margin-bottom: 1rem; | ||
color: #333; /* | 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; | |||
} | } | ||
| Zeile 17: | Zeile 29: | ||
margin: auto 0; | margin: auto 0; | ||
display: flex; | display: flex; | ||
flex-shrink: 0 !important; | flex-shrink: 0 !important;} | ||
} | |||
.infobar-icon img { | .infobar-icon img { | ||
max-width: 100%; | max-width: 100%; | ||
max-height: 100%; | max-height: 100%;} | ||
} | |||
.infobar-text { | .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; | padding: 0; | ||
margin: 0; | |||
color: inherit;} | |||
color: inherit; | |||
} | |||
.infobar-text .head { | .infobar-text .head { | ||
line-height: 1; | line-height: 1; | ||
flex | flex: 0 0 100%; /* Kopf nimmt immer seine eigene Zeile einnimmt */ | ||
font-size: | font-size: 0.9rem;} | ||
} | |||
.solo { | |||
line-height: 1.4 !important;} | |||
.inline { | |||
flex-basis: max-content !important;} | |||
.infobar-text .item { | .infobar-text .item { | ||
line-height: 1.3; | |||
display: inline-block; | |||
align-items: center; | |||
height: max-content; | height: max-content; | ||
padding: 0.05rem 0.8rem; | |||
padding: 0. | background-color: #fff; /* Fallback Hintergrund der Pillen */ | ||
background-color: #fff; /* | border-radius: 12px; | ||
border-radius: | font-size: 0.75rem;} | ||
font-size: | |||
} | |||
. | .boxless { | ||
flex-basis: 100% !important; | flex-basis: 100% !important; | ||
height: max-content !important; | height: max-content !important; | ||
display: inline-block !important; | display: inline-block !important; | ||
padding: 0.05em 0 !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 { | .infobar-img { | ||
flex-shrink: 0; | flex-shrink: 0; | ||
padding: 0; | padding: 0; | ||
align-self: center; | align-self: center;} | ||
} | |||
.infobar-img img { | .infobar-img img { | ||
box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.15); | box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.15); | ||
width: | max-width: 50px !important; | ||
height: | 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 (max-width: 500px) { | |||
.infobar { | |||
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;}
}