Jump to content

Editing Module:Infobox/styles.css

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
/* {{pp|small=y}} */
/*
* This TemplateStyles sheet deliberately does NOT include the full set of
* infobox styles. We are still working to migrate all of the manual
* infoboxes. See [[MediaWiki talk:Common.css/to do#Infobox]]
* DO NOT ADD THEM HERE
*/
/*
* not strictly certain these styles are necessary since the modules now
* exclusively output infobox-subbox or infobox, not both
* just replicating the module faithfully
*/
.infobox-subbox {
.infobox-subbox {
padding: 0;
padding: 0;
Line 30: Line 42:
}
}


/* Infobox template style */
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
width: 22em;
}


.infobox-header,
/* Dark theme: [[William_Wragg]], [[Coral_Castle]] */
.infobox-label,
html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) > div:not(.notheme)[style] {
.infobox-above,
    background: #1f1f23 !important;
.infobox-full-data,
      /* switch with var( --color-base ) when supported. */
.infobox-data,
      color: #f8f9fa;
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
vertical-align: top;
}
}


.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
}


/* Remove .infobox when element selectors above are removed */
    html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) div:not(.notheme) {
.infobox .infobox-above,
      background: #1f1f23 !important;
.infobox .infobox-title,
      /* switch with var( --color-base ) when supported. */
/* Remove element selector when every .infobox thing is using the standard module/templates  */
      color: #f8f9fa;
.infobox caption {
    }
font-size: 125%;
font-weight: bold;
text-align: center;
}


.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
padding: 0.2em;
}


/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
text-align: center;
}


/* Remove .infobox when element selectors above are removed */
/* 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
.infobox .infobox-navbar {
Currently in use on: [[Module:Infobox3cols]]
/* @noflip */
Fixes issue described in https://phabricator.wikimedia.org/F55300125 on Vector 2022.
text-align: right;
*/
@media (min-width: 640px) {
  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;
  }
}
}
Please note that all contributions to Micro Pedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Micro Pedia:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)