MediaWiki:Common.css explained

/* * This is the CSS common to all desktop skins on en.Wikipedia. * Styling inside .mw-parser-output should generally use TemplateStyles. *//* Reset italic styling set by user agent */cite,dfn

/* Straight quote marks for */q

/* Avoid collision of blockquote with floating elements by swapping margin and padding */blockquote

/* Consistent size for , and */small

.mw-body-content sub,.mw-body-content sup

/* Same spacing for indented and unindented paragraphs on talk pages */.ns-talk .mw-body-content dd

/* Reduce page jumps by hiding collapsed/dismissed content */.client-js .collapsible:not(.mw-made-collapsible).collapsed > tbody > tr:not(:first-child),

/* Avoid FOUC/reflows on collapsed elements. *//* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). *//* TODO: Use :is selector at some reasonable future when support is good for Most Clients *//* Reference: https://gerrit.wikimedia.org/g/mediawiki/core/+/ecda06cb2aef55b77c4b4d7ecda492d634419ead/resources/src/jquery/jquery.makeCollapsible.styles.less#75 */.client-js .outercollapse .innercollapse.mw-collapsible:not(.mw-made-collapsible) > p,.client-js .outercollapse .innercollapse.mw-collapsible:not(.mw-made-collapsible) > table,.client-js .outercollapse .innercollapse.mw-collapsible:not(.mw-made-collapsible) > thead + tbody,.client-js .outercollapse .innercollapse.mw-collapsible:not(.mw-made-collapsible) tr:not(:first-child),.client-js .outercollapse .innercollapse.mw-collapsible:not(.mw-made-collapsible) .mw-collapsible-content,

/* Hide charinsert base for those not using the gadget */

  1. editpage-specialchars

/* Different margin on references */.references

/* Cite customizations for Parsoid * Once everything uses the one true parser these are just customizations */span[rel="mw:referencedBy" ]

span[rel='mw:referencedBy' ] > a::before

a[rel="mw:referencedBy" ]::before

span[rel="mw:referencedBy" ]::before

/* These blocks need review after or related are complete */.mw-ref > a[style~="mw-Ref"][data-mw-group=lower-alpha]::after

.mw-ref > a[style~="mw-Ref"][data-mw-group=upper-alpha]::after

.mw-ref > a[style~="mw-Ref"][data-mw-group=decimal]::after

.mw-ref > a[style~="mw-Ref"][data-mw-group=lower-roman]::after

.mw-ref > a[style~="mw-Ref"][data-mw-group=upper-roman]::after

.mw-ref > a[style~="mw-Ref"][data-mw-group=lower-greek]::after

/* Styling for jQuery makeCollapsible, matching that of collapseButton */.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button)

.mw-collapsible-leftside-toggle .mw-collapsible-toggle

/* Lists in wikitable data cells are always left-aligned */.wikitable td ul,.wikitable td ol,.wikitable td dl

/* Change the external link icon to a PDF icon for all PDF files */.mw-parser-output a[href$=".pdf"].external,.mw-parser-output a[href*=".pdf?"].external,.mw-parser-output a[href*=".pdf#"].external,.mw-parser-output a[href$=".PDF"].external,.mw-parser-output a[href*=".PDF?"].external,.mw-parser-output a[href*=".PDF#"].external

/* System messages styled similarly to fmbox *//* for .mw-warning-with-logexcerpt, behavior of this line differs between * the edit-protected notice and the special:Contribs for blocked users * The latter has specificity of 3 classes so we have to triple up here. */.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt,div.mw-lag-warn-high,div.mw-cascadeprotectedwarning,div#mw-protect-cascadeon

/* default colors for partial block message *//* gotta get over the hump introduced by the triple class above */.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt.mw-warning-with-logexcerpt

/* Minimum thumb width */figure[typeof~='mw:File/Thumb'],figure[typeof~='mw:File/Frame'],.thumbinner

/* Prevent floating boxes from overlapping any category listings, file histories, edit previews, and edit [Show changes] views. */

  1. mw-subcategories,
  2. mw-pages,
  3. mw-category-media,
  4. filehistory,
  5. wikiPreview,
  6. wikiDiff

/* Styling for tags in changes pages */.mw-tag-markers

/* Hide stuff meant for accounts with special permissions. Made visible again in,,,,,,,, and . */.checkuser-show,.sysop-show,.abusefilter-show,.abusefilter-helper-show,.patroller-show,.templateeditor-show,.extendedmover-show,.extendedconfirmed-show,.autoconfirmed-show,.user-show

/* Hide the redlink generated by, this overrides the ".sysop-show " above that applies to the same link as well. See

Hide the images in editnotices to keep them readable in VE view. Long term, editnotices should become a core feature so that they can be designed responsive. */.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,.ve-ui-mwNoticesPopupTool-item .mbox-image,.ve-ui-mwNoticesPopupTool-item .mbox-imageright

/* Remove bullets when there are multiple edit page warnings */ul.permissions-errors

ul.permissions-errors > li

/* larger inline math */span.mwe-math-mathml-inline

/* Make be left aligned with one space indent for * compatibility with style conventions */.mwe-math-fallback-image-display,.mwe-math-mathml-display

.mwe-math-mathml-display math

@media screen

/* Hide FlaggedRevs notice UI when there are no pending changes */.flaggedrevs_draft_synced,.flaggedrevs_stable_synced,/* "Temporary" to remove links in sidebar T255381 */

  1. t-upload,

/* Hide broken download box on Special:Book pending T285400 */.mw-special-Book #coll-downloadbox

/* * BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS; * SEE */

/* Infobox template style */.infobox

.infobox-header,.infobox-label,.infobox-above,.infobox-full-data,.infobox-data,.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

.infobox-label,.infobox-data,/* Remove element selector when every .infobox thing is using the standard module/templates */.infobox th,.infobox td

/* Remove .infobox when element selectors above are removed */.infobox .infobox-above,.infobox .infobox-title,/* Remove element selector when every .infobox thing is using the standard module/templates */.infobox caption

.infobox-title,/* Remove element selector when every .infobox thing is using the standard module/templates */.infobox caption

/* Remove .infobox when element selectors above are removed */.infobox .infobox-header,.infobox .infobox-subheader,.infobox .infobox-image,.infobox .infobox-full-data,.infobox .infobox-below

/* Remove .infobox when element selectors above are removed */.infobox .infobox-navbar

/* Normal font styling for wikitable row headers with scope="row" tag */.wikitable.plainrowheaders th[scope=row],.wikitable.plainrowheaders th[scope=rowgroup]

/* Remove underlines from certain links */.nounderlines a,.IPA a:link,.IPA a:visited

/* Prevent line breaks in silly places where desired (nowrap) and links when we don't want them to (nowraplinks a) */.nowrap,.nowraplinks a

/* But allow wrapping where desired: */.wrap,.wraplinks a

/* texhtml class for inline math (based on generic times-serif class) */span.texhtml

span.texhtml span.texhtml

@media screen

/* Put anything you mean to be a sitewide addition above the TemplateStyles * comment above. */