MediaWiki:Common.css: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
m standardish look
Removed lines 29-43: no longer necessary, per request Special:Diff/25864593
 
(169 intermediate revisions by 44 users not shown)
Line 1: Line 1:
/*
/*
* This is the common CSS for all desktop skins on Meta.
<pre>
* Styling inside .mw-parser-output should generally use TemplateStyles.
*/
*/


/* Redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */
/*****
.redirect-in-category,
** Minor tweaks
.allpagesredirect a {
*****/
color: gray;
/* [[Special:Allpages]] redirects */
}
.allpagesredirect {
font-style:italic;
color:gray;
}


/* To color the mention "updated since my last visit" in the history */
span.updatedmarker {
color: black;
background-color: #0f0;
}


/* T156351: Support for Parsoid's Cite implementation */
/* hide unneeded content when printing */
span[rel="mw:referencedBy"] {
@media print {
counter-reset: mw-ref-linkback 0;
#privacy, #about, #disclaimer {display:none;}
}
}


span[rel="mw:referencedBy"] > a::before {
font-weight: bold;
font-style: italic;
content: counter( mw-ref-linkback, lower-alpha );
}


/* Different font-family for Farsi (fa) */
/* hide arrows on selected external links */
:lang(fa) {
.plainlinksneverexpand a {
font-family: Tahoma, 'Iranian Sans', 'DejaVu Sans', 'Noto Sans', 'Droid Arabic Kufi', sans-serif;
background:none !important;
}
padding:0 !important;
}


/* Reset italic styling set by user agent */
cite,
dfn {
font-style: inherit;
}


/* Style for change tags */
/*****
.mw-tag-markers {
** Hide selected content
font-family: sans-serif;
*****/
font-style: italic;
.hiddenStructure {display: none}
font-size: 90%;
}


/**
.if {display: none}
* Can be removed after the deployment of
* https://gerrit.wikimedia.org/r/#/c/286128/
*/
/* @noflip */
.rtl a.external.free,
.rtl a.external.autonumber {
direction: ltr;
unicode-bidi: -moz-isolate;
unicode-bidi: -webkit-isolate;
unicode-bidi: isolate;
display: inline-block; /* Fake bidi isolation for Microsoft browsers. */
}


/**
* Div based "warning" style fmbox messages for those
* which are not part of [[Module:Message box]]
* and its TemplateStyles subpages.
* From [[:mw:MediaWiki:Gadget-enwp-boxes.css]]
* @see [[Special:Permalink/24680955#en-wp-boxes]]
* @source <https://www.mediawiki.org/?oldid=4789734#L-283>
*/
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: #ffdbdb;
padding: 0.25em 0.9em;
box-sizing: border-box;
}


/* Hide "accept rename" button next time renames are stuck */
/*****
/*
** Table formatting
#mw-renamequeue-approve{
*****/
display: none;
table.wikitable,
}
table.prettytable {
*/
margin:1em 1em 1em 0;
background:#F9F9F9;
border:1px #AAA solid;
border-collapse:collapse;
}


/**
table.wikitable th, table.wikitable td,
* Hide Special:Log/renameuser log entries in Special:RecentChanges
table.prettytable th, table.prettytable td {
* Discussion: [[Special:Permalink/15455880#Hiding Special:Log/renameuser from RecentChanges]]
border:1px #AAA solid;
*/
padding:0.2em;
.mw-changeslist-log-renameuser,
}
/**
* Hide Special:Log/translationreview log entries in Special:RecentChanges
* Discussion: none
*/
.mw-changeslist-log-translationreview,
/**
* Hide save page button for anons on [[Wikimedia_Foundation_nomail_list]].
* Shown for users thru [[MediaWiki:Group-user.css]]
*/
.page-Wikimedia_Foundation_nomail_list #wpSave,
/**
* Hide stuff meant for registered users. Overridden in [[Mediawiki:Group-user.css]].
* We should eventually do the same for other user groups.
*/
.user-show,
/* Hide mobile-only things on desktop (overridden in MediaWiki:Mobile.css) */
.mobile-only {
display: none;
}


/* Hide unneeded content when printing */
table.wikitable th,
@media print {
table.prettytable th {
#privacy,
background:#F2F2F2;
#about,
text-align:center;
#disclaimer {
}
display: none;

}
table.wikitable caption,
}
table.prettytable caption {
margin-left:inherit;
margin-right:inherit;
}


/*****
** box formatting
*****/
.infobox {
float:right;
clear:right;
margin-bottom:0.5em;
margin-left:1em;
padding:0.2em;
border:1px solid #AAA;
background:#F9F9F9;
color:black;

}

.infobox td,
.infobox th {
vertical-align:top;
}

.infobox caption {
font-size:larger;
margin-left:inherit;
}

.infobox.bordered {
border-collapse:collapse;
}

.infobox.bordered td,
.infobox.bordered th {
border:1px solid #AAA;
}

.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border:0;
}

.infobox.sisterproject {
width:20em;
font-size:90%;
}


/*****
** Specific pages (keep to a minimum)
*****/
/* Spam blacklist */
body.page-Talk_Spam_blacklist #ca-addsection {display:none;}


/* Spam blacklist/log */
.logtable pre {
margin:0;
padding:0;
border:0;
}

/*****
** Bytecounter colours
*****/
strong.mw-plusminus-neg
{
color: #c00;
}

span.mw-plusminus-neg
{
color: #900;
}

span.mw-plusminus-pos
{
color: #060;
}

/*
</pre>
*/

Latest revision as of 19:22, 13 November 2023

/*
 * This is the common CSS for all desktop skins on Meta.
 * Styling inside .mw-parser-output should generally use TemplateStyles.
 */

/* Redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */
.redirect-in-category,
.allpagesredirect a {
	color: gray;
}

/* To color the mention "updated since my last visit" in the history */
span.updatedmarker {
	color: black;
	background-color: #0f0;
}

/* T156351: Support for Parsoid's Cite implementation */
span[rel="mw:referencedBy"] {
	counter-reset: mw-ref-linkback 0;
}

span[rel="mw:referencedBy"] > a::before {
	font-weight: bold;
	font-style: italic;
	content: counter( mw-ref-linkback, lower-alpha );
}

/* Different font-family for Farsi (fa) */
:lang(fa) {
	font-family: Tahoma, 'Iranian Sans', 'DejaVu Sans', 'Noto Sans', 'Droid Arabic Kufi', sans-serif;
}

/* Reset italic styling set by user agent */
cite,
dfn {
	font-style: inherit;
}

/* Style for change tags */
.mw-tag-markers {
	font-family: sans-serif;
	font-style: italic;
	font-size: 90%;
}

/**
 * Can be removed after the deployment of
 * https://gerrit.wikimedia.org/r/#/c/286128/
 */
/* @noflip */
.rtl a.external.free,
.rtl a.external.autonumber {
	direction: ltr;
	unicode-bidi: -moz-isolate;
	unicode-bidi: -webkit-isolate;
	unicode-bidi: isolate;
	display: inline-block; /* Fake bidi isolation for Microsoft browsers. */
}

/**
 * Div based "warning" style fmbox messages for those
 * which are not part of [[Module:Message box]]
 * and its TemplateStyles subpages.
 * From [[:mw:MediaWiki:Gadget-enwp-boxes.css]]
 * @see [[Special:Permalink/24680955#en-wp-boxes]]
 * @source <https://www.mediawiki.org/?oldid=4789734#L-283>
 */
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning {
	clear: both;
	margin: 0.2em 0;
	border: 1px solid #bb7070;
	background-color: #ffdbdb;
	padding: 0.25em 0.9em;
	box-sizing: border-box;
}

/* Hide "accept rename" button next time renames are stuck */
/*
#mw-renamequeue-approve{
	display: none;
}
*/

/**
 * Hide Special:Log/renameuser log entries in Special:RecentChanges
 * Discussion: [[Special:Permalink/15455880#Hiding Special:Log/renameuser from RecentChanges]]
 */
.mw-changeslist-log-renameuser,
/**
 * Hide Special:Log/translationreview log entries in Special:RecentChanges
 * Discussion: none
 */
.mw-changeslist-log-translationreview,
/**
 * Hide save page button for anons on [[Wikimedia_Foundation_nomail_list]].
 * Shown for users thru [[MediaWiki:Group-user.css]]
 */
.page-Wikimedia_Foundation_nomail_list #wpSave,
/**
 * Hide stuff meant for registered users. Overridden in [[Mediawiki:Group-user.css]].
 * We should eventually do the same for other user groups.
 */
.user-show,
/* Hide mobile-only things on desktop (overridden in MediaWiki:Mobile.css) */
.mobile-only {
	display: none;
}

/* Hide unneeded content when printing */
@media print {
	#privacy,
	#about,
	#disclaimer {
		display: none;
	}
}