Jump to content

MediaWiki:Common.css

From Wikiversity

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here applies to all skins */

/* Load Wikipedia.css first */
@import url("/w/index.php?title=MediaWiki:Common.css/Wikipedia.css&action=raw&ctype=text/css") screen;

/* Then override Wikipedia styles with locally defined styles */
@import url("/w/index.php?title=MediaWiki:Common.css/Collapse.css&action=raw&ctype=text/css") screen;
@import url("/w/index.php?title=MediaWiki:Common.css/Navigation.css&action=raw&ctype=text/css") screen;
@import url("/w/index.php?title=MediaWiki:Common.css/Colors.css&action=raw&ctype=text/css") screen;
@import url("/w/index.php?title=MediaWiki:Common.css/Infobox.css&action=raw&ctype=text/css") screen;
@import url("/w/index.php?title=MediaWiki:Common.css/Fonts.css&action=raw&ctype=text/css") screen;
@import url("/w/index.php?title=MediaWiki:Common.css/Glam.css&action=raw&ctype=text/css") screen;
@import url("/w/index.php?title=MediaWiki:Common.css/MediaIcons.css&action=raw&ctype=text/css") screen;
@import url("/w/index.php?title=MediaWiki:Common.css/Messages.css&action=raw&ctype=text/css") screen;
@import url("/w/index.php?title=MediaWiki:Common.css/Slideshows.css&action=raw&ctype=text/css") screen;
@import url("/w/index.php?title=MediaWiki:Common.css/addin-mooc.css&action=raw&ctype=text/css") screen;

.same-bg { background: none }

/* for Chinese, Japanese and Korean text words are not broken. Otherwise this is the same as normal */
.mw-body-content { word-break: keep-all; }

/* References */
.references { font-size:90%; }
.references li:target, .reference:target, .citation:target { background-color: #DDEEFF }
.reference, .citation, cite { font-weight: normal; font-style: normal; word-wrap: break-word; }


/* Category tree */
#mw-subcategories ul { list-style: none none; margin-left: 0.25em; }
.CategoryTreeChildren { margin-left: 1.25em; }

/* Style for "notices" */
.notice { text-align: justify; margin:1em; padding:0.2em; }

/* Choose whether to have AD/BC dates or CE/BCE dates */
/* First, the default : display both : See templates ADCE and BCEBC for how these are used*/
.Use_Default_Date_Convention { display: inline; }
.Use_AD_and_BC  { display: none; } /* display:inline; in your skin for AD and BC. */
.Use_BCE_and_CE { display: none; } /* display:inline; in your skin for CE and BCE. */

/* Content in columns with CSS instead of tables [[Template:Columns]] */
div.columns-2 div.column { float:left; width:50%; min-width:300px; }
div.columns-3 div.column { float:left; width:33%; min-width:200px; }
div.columns-4 div.column { float:left; width:25%; min-width:150px; }
div.columns-5 div.column { float:left; width:20%; min-width:120px; }

/* Put a checker background at the image description page only visible if the image has transparent background */
#file img { background: url("//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat; }

/* Show only when printing */
@media screen, projection, handheld {
  .printonly { display: none !important; }
}

/* Start copied from enwiki */
/* 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 {
	clear: both;
	margin: 0.2em 0;
	border: 1px solid #bb7070;
	background-color: var(--background-color-error-subtle, #ffdbdb);
	padding: 0.25em 0.9em;
	box-sizing: border-box;
}

/* 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 {
	border-color: #ab7f2a;
	background-color: var(--background-color-warning-subtle, #fef6e7);
}
/* End copied from enwiki */

/* Pie chart test: Transparent borders */
.transborder {
    border: solid transparent;
}
* html .transborder {  /* IE6 */
    border: solid #000001;
    filter: chroma(color=#000001);
}

/* "system" messages. Used in [[MediaWiki:Noarticletext]] and [[MediaWiki:Readonly lag]]. */
div.mw-lag-warn-normal, div.noarticletext, div.fmbox-system {
  clear:both; margin:0.2em 0em; border:1px solid var(--border-color-base, #a2a9b1); background:var(--background-color-neutral-subtle, #f8f9fa); padding:0.25em 0.9em;
}

tt, code, pre, .mw-geshi { font-family: monospace, "DejaVu Sans Mono", "Courier New" !important; font-size:100%; }

/* Prevent line breaks in silly places:
   1) Where desired
   2) Links when we don't want them to
   3) Bold "links" to the page itself */
.nowrap,
.nowraplinks a,
.nowraplinks .selflink {
  white-space: nowrap;
}
.nowrap pre {
  white-space: pre;
}

/* Selectively hide table of contents auto-numbering, per https://www.mediawiki.org/wiki/Manual:Table_of_contents#Auto-numbering */
.noautonum .tocnumber { 
  display: none; 
}

/* Table of contents alternative formatting */
.tocplain #toc {
    border: none;
    background: none;
}

.tocplain .toctitle {
    text-align: left;
}

/* Opposite of nomobile class. Paired with definition in MediaWiki:Mobile.css */
.onlymobile {
    display: none;
}

.sysop-show {
	display: none;
}

/*
 * The .error, .warning, and .success styles are being removed from core, put a copy here until
 * we can double check and make sure that these really are not needed. See T280766
 */
.error,
.warning,
.success {
	font-size: larger;
}

.error {
	color: #d33;
}

.warning {
	color: #ac6600;
}

.success {
	color: #14866d;
}