Zuletzt bearbeitet vor 4 Monaten
von Xineohp1506

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

K (1 Version von wpen:Module:Infobox/styles.css importiert)
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* {{pp|small=y}} */
/* Grundlayout für die Infobox */
/*
.infobox {
* This TemplateStyles sheet deliberately does NOT include the full set of
    width: 100%; /* Passt sich mobil an */
* infobox styles. We are still working to migrate all of the manual
    max-width: 300px; /* Maximale Breite der Infobox */
* infoboxes. See [[MediaWiki talk:Common.css/to do#Infobox]]
    border: 1px solid #ddd; /* Umrandung der Infobox */
* DO NOT ADD THEM HERE
    background-color: #f9f9f9; /* Hintergrundfarbe */
*/
    padding: 10px;
/*
    border-radius: 8px; /* Abgerundete Ecken */
* not strictly certain these styles are necessary since the modules now
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
* exclusively output infobox-subbox or infobox, not both
    font-family: Arial, sans-serif;
* just replicating the module faithfully
    color: #333;
*/
.infobox-subbox {
padding: 0;
border: none;
margin: -3px;
width: auto;
min-width: 100%;
font-size: 100%;
clear: none;
float: none;
background-color: transparent;
}
}


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


.infobox .navbar {
/* Bildbereich */
font-size: 100%;
.infobox .image {
    text-align: center;
    margin: 10px 0;
}
}


/* T281642 */
.infobox .image img {
body.skin-minerva .infobox-header,
    max-width: 100%;
body.skin-minerva .infobox-subheader,
    border-radius: 5px;
body.skin-minerva  .infobox-above,
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
body.skin-minerva .infobox-title,
body.skin-minerva  .infobox-image,
body.skin-minerva  .infobox-full-data,
body.skin-minerva .infobox-below {
text-align: center;
}
}


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


/* Dark theme: [[William_Wragg]], [[Coral_Castle]] */
/* Label- und Datenfelder */
.infobox .label {
    font-weight: bold;
    color: #555;
    padding: 5px 0;
    width: 40%;
}


@media screen {
.infobox .data {
    html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) > div:not(.notheme)[style] {
    padding: 5px 0;
    background: #1f1f23 !important;
    width: 60%;
      /* switch with var( --color-base ) when supported. */
      color: #f8f9fa;
}
}
}


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


@media screen and ( prefers-color-scheme: dark) {
.infobox .hints img {
    html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) div:not(.notheme) {
    width: 24px;
      background: #1f1f23 !important;
    height: 24px;
      /* switch with var( --color-base ) when supported. */
      color: #f8f9fa;
    }
}
}


 
.infobox .category {
/* Since infobox is a table, many infobox templates take advantage of this to add columns and rows to the infobox itself rather than as part of a new table inside them. This class should be discouraged and removed on the long term, but allows us to at least identify these tables going forward
    font-size: 0.9em;
Currently in use on: [[Module:Infobox3cols]]
     color: #777;
Fixes issue described in https://phabricator.wikimedia.org/F55300125 on Vector 2022.
     margin-top: 8px;
*/
     padding-top: 8px;
@media (min-width: 640px) {
     border-top: 1px solid #ddd;
  body.skin--responsive .infobox-table {
    display: table !important;
  }
  body.skin--responsive .infobox-table > caption {
     display: table-caption !important;
  }
  body.skin--responsive .infobox-table > tbody {
     display: table-row-group;
  }
  body.skin--responsive .infobox-table tr {
    display: table-row !important;
  }
  body.skin--responsive .infobox-table th,
  body.skin--responsive .infobox-table td {
     padding-left: inherit;
     padding-right: inherit;
  }
}
}

Version vom 11. November 2024, 00:06 Uhr

/* Grundlayout für die Infobox */
.infobox {
    width: 100%; /* Passt sich mobil an */
    max-width: 300px; /* Maximale Breite der Infobox */
    border: 1px solid #ddd; /* Umrandung der Infobox */
    background-color: #f9f9f9; /* Hintergrundfarbe */
    padding: 10px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
    font-family: Arial, sans-serif;
    color: #333;
}

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

/* Bildbereich */
.infobox .image {
    text-align: center;
    margin: 10px 0;
}

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

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

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

.infobox .data {
    padding: 5px 0;
    width: 60%;
}

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

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

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