MediaWiki:Common.css: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Fulfilling edit requests per talk page by Izno
Removed lines 29-43: no longer necessary, per request Special:Diff/25864593
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/*
/* <nowiki> */
* 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]] */
/* Redirects in categories, on [[Special:Allpages]], and [[Special:Prefixindex]] */
.redirect-in-category, .allpagesredirect a {
.redirect-in-category,
.allpagesredirect a {
color: gray;
color: gray;
}

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

/**
** Infoboxes
**/
.infobox {
float: right;
clear: right;
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
border: 1px solid #a2a9b1;
background: #f8f9fa;
color: black;
}

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

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


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


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

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


/* Different font-family for Farsi (fa) */
/**
** Adding icon to messages in the translate extension that have explanations.
**/

fieldset.mw-sp-translate-edit-info > div {
min-height:40px;
background:url(//upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Infobox_info_icon.svg/40px-Infobox_info_icon.svg.png) no-repeat;
}
fieldset.mw-sp-translate-edit-info div.mw-content-ltr {
background-position:left center;
padding-left:45px;
}
fieldset.mw-sp-translate-edit-info div.mw-centent-rtl {
background-position:right center;
padding-right:45px;
}

/**
** Permits the use of div tags to suppress auto-numbering in TOC, for instance on [[Terms of use]] where sections are manually numbered.
**/

#hideTOCnumbers .tocnumber { display: none; }

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

/**
* Style for horizontal lists (separator following item).
* @source mediawiki.org/wiki/Snippets/Horizontal_lists
* @revision 4 (2013-11-17)
* @author [[User:Edokter]]
*/
.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 */
.hlist dd,
.hlist dt,
.hlist li {
margin: 0;
display: inline;
}
/* Display nested lists inline */
.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;
}
/* 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 ordinals in front of ordered list items */
.hlist ol {
counter-reset: list-item;
}
.hlist ol > li {
counter-increment: list-item;
}
.hlist ol > li:before {
content: counter(list-item) " ";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
content: "(" counter(list-item) " ";
}
/* end hlist */


/**
** Unbulleted lists
**/
.plainlist ul {
line-height: inherit;
list-style: none none;
margin: 0;
}
.plainlist ul li {
margin-bottom: 0;
}


/* Default style for navigation boxes */
.navbox { /* Navbox container style */
border: 1px solid #a2a9b1;
width: 100%;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
}
.navbox-inner,
.navbox-subgroup {
width: 100%;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
padding: 0.25em 1em; /* Title, group and above/below styles */
line-height: 1.5em;
text-align: center;
}
th.navbox-group { /* Group style */
white-space: nowrap;
/* @noflip */
text-align: right;
}
.navbox,
.navbox-subgroup {
background: #fdfdfd; /* Background color */
}
.navbox-list {
line-height: 1.8em;
border-color: #fdfdfd; /* Must match background color */
}
.navbox th,
.navbox-title {
background: #ccccff; /* Level 1 color */
}
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
background: #ddddff; /* Level 2 color */
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background: #e6e6ff; /* Level 3 color */
}
.navbox-even {
background: #f7f7f7; /* Even row striping */
}
.navbox-odd {
background: transparent; /* Odd row striping */
}
table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */
margin-top: -1px; /* (doesn't work for IE6, but that's okay) */
}
.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 0.125em 0; /* Adjust hlist padding in navboxes */
}
ol + table.navbox,
ul + table.navbox {
margin-top: 0.5em; /* Prevent lists from clinging to navboxes */
}
/* Default styling for Navbar template */
.navbar {
display: inline;
font-size: 88%;
font-weight: normal;
}
.navbar ul {
display: inline;
white-space: nowrap;
}
.navbar li {
word-spacing: -0.125em;
}
.navbar.mini li span {
font-variant: small-caps;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
font-size: 100%;
}
.navbox .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
width: 6em;
}

/* ALTERNANCE */
/** Classes allowing alternating line colors
* in tables according to the number of header lines:
*.alternance if odd number
*.alternance2 if even number.
*
*.odd is to be kind to IE<9 which does not implement
* the selector :nth-child, applied via Common.js (?)
*
*.sortable: sortable tables require reversing
* the alternance.
*/
.alternance,
.alternance2 {
border-collapse: collapse;
}
table.alternance > * > tr > th,
table.alternance2 > * > tr > th {
background: #e6e6e6;
}
.alternance tr,
.alternance th[scope="row"] {
background: #fcfcfc;
}
.alternance:not(.sortable) tr:nth-child(odd),
.alternance.sortable tr:nth-child(even),
.alternance:not(.sortable) tr:nth-child(odd) th[scope="row"],
.alternance.sortable tr:nth-child(even) th[scope="row"] {
background: #eeeeee;
}
.alternance .odd,
.alternance .odd th[scope="row"] {
/* be kind to IE<9 */
background: #eeeeee;
}
.alternance2 tr,
.alternance2 th[scope="row"] {
background: #eeeeee;
}
.alternance2 tr:nth-child(odd),
.alternance2 tr:nth-child(odd) th[scope="row"] {
background: #fcfcfc;
}
.alternance2 .odd,
.alternance2 .odd th[scope="row"] {
/* be kind to IE<9 */
background: #fcfcfc;
}

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


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

/* </nowiki> */

/* 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{
display: none;
}
}


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


/**
/**
* Can be removed after the deployment of
* Hid Special:Log/renameuser log entries in Special:RecentChanges
* https://gerrit.wikimedia.org/r/#/c/286128/
* Discussion: [[Special:Permalink/15455880#Hiding Special:Log/renameuser from RecentChanges]]
*/
*/
/* @noflip */
.mw-changeslist-log-renameuser { display:none; }
.rtl a.external.free,

/**
* Hid Special:Log/translationreview log entries in Special:RecentChanges
* Discussion: none
*/
.mw-changeslist-log-translationreview { 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 {
.rtl a.external.autonumber {
direction: ltr;
direction: ltr;
Line 395: Line 57:
unicode-bidi: isolate;
unicode-bidi: isolate;
display: inline-block; /* Fake bidi isolation for Microsoft browsers. */
display: inline-block; /* Fake bidi isolation for Microsoft browsers. */
}

@media all and (min-width: 768px ) {
/* Banners e.g. WikiProject_UNESCO/African_World_Heritage_Day */
#mf-pagebanner .name { font-size: 5em !important; padding: 4px 4px !important; }
}
/*
hide "accept rename" button next time renames are stuck
#mw-renamequeue-approve{
display:none;
}*/

/**
* Hide stuff meant for registered users. Overridden in [[Mediawiki:Group-user.css]].
* We should eventually do the same for other user groups.
*/
.user-show {
display: none;
}


/*
* Styling for links generated by [[MediaWiki:Edittools]]
* @source www.mediawiki.org/wiki/Extension:CharInsert#Styling
* @updated 2012-02-29
*/
.mw-charinsert-buttons {
margin-top: 10px;
border: 1px solid #aaaaaa;
padding: 1px;
text-align: center;
font-size: 110%;
}
.mw-charinsert-buttons a {
color: black;
background-color: #cde !important;
font-weight: bold;
font-size: .9em;
text-decoration: none;
border: thin #069 outset;
padding: 0 .1em .1em;
}
.mw-charinsert-buttons a:hover,
.mw-charinsert-buttons a:active {
background-color: #bcd;
border-style: inset;
}
.client-js .mw-edittools-section {
display: inline;
}
.client-js .mw-edittools-section input[type="button"] {
font-size: 0.9em;
padding-left: 1px;
padding-right: 1px;
margin-left: 1px;
}

/* Hide mobile-only things on desktop (overridden in MediaWiki:Mobile.css) */
.mobile-only {
display: none;
}

/* Message box templates */
.messagebox {
border: 1px solid #a2a9b1;
background: #f8f9fa;
width: 80%;
margin: 0 auto 1em;
padding: 0.2em;
text-align: justify;
}
}


/**
/**
* Div based "warning" style fmbox messages.
* 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]]
* From [[:mw:MediaWiki:Gadget-enwp-boxes.css]]
* @see [[Special:Permalink/24680955#en-wp-boxes]]
* @see [[Special:Permalink/24680955#en-wp-boxes]]
Line 484: Line 78:
padding: 0.25em 0.9em;
padding: 0.25em 0.9em;
box-sizing: border-box;
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;
}
}
}

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;
	}
}