Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
 
No edit summary
 
Line 19: Line 19:
/* make links bold so they are more visible as links */
/* make links bold so they are more visible as links */
.mw-body-content a:link {font-weight:bold !IMPORTANT;}
.mw-body-content a:link {font-weight:bold !IMPORTANT;}
/**
* Common TemplateStyles used by [[Template:Tool]].
*/
.infobox {
box-sizing: border-box;
border: 2px solid #a2a9b1;
width: 280px;
border-collapse: collapse;
border-spacing: 0;
background-color: white;
color: #333;
/* these are overriden by .infobox-rtl on the templates of interest */
/* @noflip */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: 0 0 0.5em 0.5em;
}
.infobox-rtl {
/* @noflip */
clear: left;
/* @noflip */
float: left;
/* @noflip */
margin: 0 0.5em 0.5em 0;
}
.infobox th {
/* @noflip */
text-align: left;
padding: 0.2em 0.5em;
vertical-align: top;
}
.infobox-rtl th {
/* @noflip */
text-align: right;
}
@media (max-width: 719px) {
/* high specificity to ensure specific infoboxes won't override these
* properties with their own tstyles inadvertently */
body.mediawiki .infobox {
float: none;
clear: both;
width: 100%;
margin: 0 0 .5em 0;
}
}
.infobox td {
border: none;
padding: 0.2em 0.5em;
vertical-align: top;
}
.infobox-header {
background-color: #a2a9b1;
color: #FFF;
text-align: left;
}
.infobox-header a {
color: #FFF;
}
.infobox-header td,
.infobox-header th {
padding: 0.5em 0.5em;
}
.infobox-header img {
padding: 0 0.2em 0 0.5em;
}
html.skin-theme-clientpref-night .infobox {
background-color: inherit;
color: inherit;
}
@media (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .infobox {
background-color: inherit;
color: inherit;
  }
}

Latest revision as of 00:00, 2024 April 1

/* CSS placed here will be applied to all skins */

/* hide redirect message on Charleswood Historical Society so redirect there from Main Page is transparent -->
.page-Charleswood_Historical_Society.ns-0 .contentSub {display: none!important; color: purple;}

/*  hide talk links from watch pages and recent changes */
.mw-usertoollinks-talk { display : none; }
#ca-talk { display: none !important; }

/* hide various tabs, see https://www.mediawiki.org/wiki/Manual:Remove_Tabs */
#ca-nstab-main { display:none!important; } 
#ca-talk { display: none !important; }
#ca-view { display:none!important; } 
#ca-protect { display:none!important; } 
#ca-viewsource { display:none!important; } 
/* #ca-edit { display: none !important; } */


/* make links bold so they are more visible as links */
.mw-body-content a:link {font-weight:bold !IMPORTANT;}

/**
 * Common TemplateStyles used by [[Template:Tool]].
 */
.infobox {
	box-sizing: border-box;
	border: 2px solid #a2a9b1;
	width: 280px;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: white;
	color: #333;
	/* these are overriden by .infobox-rtl on the templates of interest */
	/* @noflip */
	clear: right;
	/* @noflip */
	float: right;
	/* @noflip */
	margin: 0 0 0.5em 0.5em;
}

.infobox-rtl {
	/* @noflip */
	clear: left;
	/* @noflip */
	float: left;
	/* @noflip */
	margin: 0 0.5em 0.5em 0;
}

.infobox th {
	/* @noflip */
	text-align: left;
	padding: 0.2em 0.5em;
	vertical-align: top;
}

.infobox-rtl th {
	/* @noflip */
	text-align: right;
}

@media (max-width: 719px) {
	/* high specificity to ensure specific infoboxes won't override these
	 * properties with their own tstyles inadvertently */
	body.mediawiki .infobox {
		float: none;
		clear: both;
		width: 100%;
		margin: 0 0 .5em 0;
	}
}

.infobox td {
	border: none;
	padding: 0.2em 0.5em;
	vertical-align: top;
}

.infobox-header {
	background-color: #a2a9b1;
	color: #FFF;
	text-align: left;
}

.infobox-header a {
	color: #FFF;
}

.infobox-header td,
.infobox-header th {
	padding: 0.5em 0.5em;
}

.infobox-header img {
	padding: 0 0.2em 0 0.5em;
}

html.skin-theme-clientpref-night .infobox {
	background-color: inherit;
	color: inherit;
}

@media (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .infobox {
	background-color: inherit;
	color: inherit;
  }
}