Zuletzt bearbeitet vor 4 Monaten
von Xineohp1506

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

(Fixes phab:T369874 via automated script)
 
Keine Bearbeitungszusammenfassung
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* {{pp|small=y}} */
/* Grundlayout der Infobox beibehalten und Float-Einstellungen hinzufügen */
/*
.infobox {
* This TemplateStyles sheet deliberately does NOT include the full set of
    float: right;
* infobox styles. We are still working to migrate all of the manual
    clear: right;
* infoboxes. See [[MediaWiki talk:Common.css/to do#Infobox]]
    margin: 0.5em 0 0.5em 1em;
* DO NOT ADD THEM HERE
    width: 22em;
*/
    max-width: 100%;
/*
    border: 1px solid #a2a9b1;
* not strictly certain these styles are necessary since the modules now
    background-color: #f9f9fa;
* exclusively output infobox-subbox or infobox, not both
    color: black;
* just replicating the module faithfully
    padding: 0.2em;
*/
    font-size: 88%;
.infobox-subbox {
    line-height: 1.5em;
padding: 0;
    border-spacing: 3px;
border: none;
    border-radius: 8px;
margin: -3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: auto;
min-width: 100%;
font-size: 100%;
clear: none;
float: none;
background-color: transparent;
}
}


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


.infobox .navbar {
/* Mobilgerätanpassungen */
font-size: 100%;
@media (max-width: 640px) {
    .infobox {
        float: none;
        width: 100%;
        margin: 0.5em 0;
    }
}
 
/* Bildbereich */
.infobox .infobox-image {
    text-align: center;
    margin: 10px 0;
}
}


/* T281642 */
.infobox .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;
}
}


/* Bildunterschrift */
.infobox .infobox-caption {
    text-align: center;
    font-size: 0.85em;
    color: #555;
    margin-top: 5px;
}


/* Dark theme: [[William_Wragg]], [[Coral_Castle]] */
/* Kopfzeilen */
.infobox .header, .infobox .infobox-subheader {
    font-weight: bold;
    font-size: 1.1em;
    color: #666;
    border-bottom: 1px solid #ddd;
    padding: 0.2em;
}


@media screen {
/* Label- und Datenfelder */
    html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) > div:not(.notheme)[style] {
.infobox .infobox-label {
    background: #1f1f23 !important;
    font-weight: bold;
      /* switch with var( --color-base ) when supported. */
    color: #555;
      color: #f8f9fa;
    padding: 0.2em;
}
}
}


.infobox .infobox-data {
    padding: 0.2em;
    color: #333;
}


@media screen and ( prefers-color-scheme: dark) {
/* Symbole und Hinweise */
    html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) div:not(.notheme) {
.infobox .infobox-hints {
      background: #1f1f23 !important;
    display: flex;
      /* switch with var( --color-base ) when supported. */
    flex-wrap: wrap;
      color: #f8f9fa;
    gap: 5px;
     }
     margin-top: 10px;
}
}


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


/* 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
/* Kategorie */
Currently in use on: [[Module:Infobox3cols]]
.infobox .category {
Fixes issue described in https://phabricator.wikimedia.org/F55300125 on Vector 2022.
     font-size: 0.9em;
*/
     color: #777;
@media (min-width: 640px) {
     margin-top: 8px;
  body.skin--responsive .infobox-table {
     padding-top: 8px;
     display: table !important;
     border-top: 1px solid #ddd;
  }
  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;
  }
}
}

Aktuelle Version vom 11. November 2024, 00:28 Uhr

/* Grundlayout der Infobox beibehalten und Float-Einstellungen hinzufügen */
.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);
}

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

/* Mobilgerätanpassungen */
@media (max-width: 640px) {
    .infobox {
        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;
    color: #555;
    padding: 0.2em;
}

.infobox .infobox-data {
    padding: 0.2em;
    color: #333;
}

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

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

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