MediaWiki:Common.css

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/**
 * Stylesheets placed here will be applied to all skins.
 */

/******************************
 * Global styles
 ******************************/

/* Default fonts like locale Wikipedia */
html[lang=ckb] body,
[lang=ckb] {
	font-family: Tahoma, 'DejaVu Sans', sans-serif;
}

/******************************
 * Styles for certain pages
 ******************************/

/* Hide title on project chats */
.page-Wikidata_Bar.action-view .firstHeading,
.page-Wikidata_Café.action-view .firstHeading,
.page-Wikidata_قهوهخانه.action-view .firstHeading,
.page-Wikidata_دیوەخان.action-view .firstHeading,
.page-Wikidata_دیوان_عام.action-view .firstHeading {
	display: none;
}


/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
th.mbox-text, td.mbox-text { /* The message body cell(s) */
	border: none;
	/* @noflip */
	padding: 0.25em 0.9em; /* 0.9em left/right */
	width: 100%; /* Make all mboxes the same width regardless of text length */
}
td.mbox-image { /* The left image cell */
	border: none;
	/* @noflip */
	padding: 2px 3px 2px 0.9em; /* 0.9em left, 0px right */
	text-align: center;
}
td.mbox-imageright { /* The right image cell */
	border: none;
	/* @noflip */
	padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */
	text-align: center;
}
td.mbox-empty-cell { /* An empty narrow cell */
	border: none;
	padding: 0px;
	width: 1px;
}



/* Div based "warning" style fmbox messages. */
div.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: #ffdbdb;
	padding: 0.25em 0.9em;
}

.mbox-image img {
	max-width: none;
}

/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.navbox .mw-collapsible-toggle {
	width: 6em;
}

/* Highlight the mention "updated since my last visit" in pages' history */
span.updatedmarker {
	font-weight: bold;
	color: #080;
}

/**
 * Style for horizontal lists (separator following item).
 * @source mediawiki.org/wiki/Snippets/Horizontal_lists
 * @revision 3.1 (2013-01-16)
 * @author [[User:Edokter]]
 * imported by [[User:Billinghurst]] 2013-01-27
 */
.skin-monobook .hlist dl,
.skin-modern .hlist dl,
.skin-vector .hlist dl {
	line-height: 1.5em;
}
.hlist dl,
.hlist ol,
.hlist ul {
	margin: 0;
	padding: 0;
}
/* Display list items inline and make them nowrap */
.hlist dd,
.hlist dt,
.hlist li {
	margin: 0;
	display: inline;
	white-space: nowrap;
}
/* Allow wrapping for list items (in tight spaces) */
.hlist.hwrap dd,
.hlist.hwrap dt,
.hlist.hwrap li {
	white-space: normal;
}
/* Display nested lists inline and allow them to wrap */
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
	display: inline;
	white-space: normal;
}
/* Generate interpuncts */
.hlist dt:after {
	content: ':';
}
.hlist dd:after,
.hlist li:after {
	content: ' ·';
	font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
	content: none;
}
/* For IE8 */
.hlist dd.hlist-last-child:after,
.hlist dt.hlist-last-child:after,
.hlist li.hlist-last-child:after {
	content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
	content: '(';
	font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
	content: ')';
	font-weight: normal;
}
/* For IE8 */
.hlist dd dd.hlist-last-child:after, .hlist dd dt.hlist-last-child:after, .hlist dd li.hlist-last-child:after,
.hlist dt dd.hlist-last-child:after, .hlist dt dt.hlist-last-child:after, .hlist dt li.hlist-last-child:after,
.hlist li dd.hlist-last-child:after, .hlist li dt.hlist-last-child:after, .hlist li li.hlist-last-child:after {
	content: ')';
	font-weight: normal;
}
/* Put numbers in front of ordered list items */
.hlist.hnum ol {
	counter-reset: list-item;
}
.hlist.hnum ol > li {
	counter-increment: list-item;
}
.hlist.hnum ol > li:before {
	content: counter( list-item ) ' ';
}
.hlist.hnum dd ol > li:first-child:before,
.hlist.hnum dt ol > li:first-child:before,
.hlist.hnum li ol > li:first-child:before {
	content: '(' counter( list-item ) ' ';
}
/* end hlist */

/* Hatnotes */
.rellink,
.dablink {
	font-style: italic;
	/* @noflip */
	padding-left: 1.6em;
	margin-bottom: 0.5em;
}
.rellink i,
.dablink i {
	font-style: normal;
}

/* Allow limiting of which header levels are shown in a TOC;
   <div class="toclimit-3">, for instance, will limit to
   showing ==headings== and ===headings=== but no further */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
	display: none;
}

/* Partially support HTML5 bdi tag on old browsers that don't support
   it and reassign its default value on modern browsers,
   needed for better i18n even on old browsers
   isolation on signature-talk will resolve mix of RTL/LTR on RTL UI */
bdi,
.signature-talk {
	unicode-bidi: embed; /* fallback, it is not completely same but will work on most cases */
	unicode-bidi: isolate;
}

/* Used by [[MediaWiki:Sharedupload-desc-here]] on file pages from Commons */
.sharedUploadNotice {
	background-color: #eeefff;
	background-image: url( //upload.wikimedia.org/wikipedia/commons/9/9d/Commons-logo-31px.png );
	background-position: 2% 50%;
	background-repeat: no-repeat;
	border: 1px solid #a2a9b1;
	border-radius: 5px;
	margin: 1em auto;
	padding: 8px 1% 8px 8%;
	width: 60%;
}

/* Used by [[Template:Shortcut]] */
#mw-indicator-shortcut {
	white-space: nowrap;
}

/* Used by [[Module:Chart]] and [[Module:Plotter]] */
.transborder {
	border: solid transparent;
}

/* Hide print/export section of sidebar (unnecessary/broken, see T204912) */
#minerva-download,
#p-coll-print_export,
#p-electronpdfservice-sidebar-portlet-heading {
	display: none;
}

/* Make ranks more visible (see T198907) */
.wb-deprecated .wikibase-statementview-mainsnak {
	 /* red-ish background for deprecated statements */
	background-color: #FFF0F0;
}
.wb-preferred .wikibase-statementview-mainsnak {
	/* green-ish background for preferred statements  */
	background-color: #F0FFF0;
}

/*** Bug fixes ***/

.wb-monolingualtext-language-name {
	/* Use inline-block so that the block wraps onto a new line before text
	   within the block breaks into multiple lines (see T322151) */
	display: inline-block;
}

#mw-content-text a[href] {
	/* Apply bidi isolation to links so that the text direction of the link
	   doesn't leak into the surrounding text (see T220256) */
	unicode-bidi: isolate;
}

/* @noflip */
.rtl .ui-inputextender-extension-close {
	/* Position the close button for the popup that appears when editing dates,
	   coordinates, etc, in the left corner (see T187443) */
	left: 0;
	right: auto;
}

#wb-setlabeldescriptionaliases-submit button {
	/* Remove nowrap because the button is too wide (see T165870) */
	white-space: initial;
}