Difference between revisions of "MediaWiki:Common.css"
 (Created page with '→CSS placed here will be applied to all skins:   div.userspace { 	padding-left: 130px; 	background: url(images/4/42/Userportal.png) top left no-repeat; 	height: 140px; }  div.…')  | 
				|||
| Line 11: | Line 11: | ||
	background: url(images/4/41/Developers.png) top left no-repeat;  | 	background: url(images/4/41/Developers.png) top left no-repeat;  | ||
	height: 140px;  | 	height: 140px;  | ||
| + | }  | ||
| + | |||
| + | /* hide unneeded content when printing */  | ||
| + | @media print {  | ||
| + | #privacy, #about, #disclaimer { display:none; }  | ||
| + | }  | ||
| + | |||
| + | /* hide arrows on selected external links */  | ||
| + | .plainlinksneverexpand a {  | ||
| + | 	background:none !important;  | ||
| + | 	padding:0 !important;  | ||
| + | }  | ||
| + | |||
| + | /* highlight page protection */  | ||
| + | .mw-textarea-protected {  | ||
| + | 	border:2px solid #F00;  | ||
| + | 	color:gray;  | ||
| + | }  | ||
| + | |||
| + | /*******************  | ||
| + | ** Hide selected content (should rarely be used, accessibility issues)  | ||
| + | *******************/  | ||
| + | .hiddenStructure { display:none; }  | ||
| + | .if { display:none; }  | ||
| + | |||
| + | /*******************  | ||
| + | ** Table formatting  | ||
| + | *******************/  | ||
| + | table.wikitable,  | ||
| + | table.prettytable {  | ||
| + | 	margin:1em 1em 1em 0;  | ||
| + | 	border:1px solid #AAA;  | ||
| + | 	border-collapse:collapse;  | ||
| + | 	background:#F9F9F9;  | ||
| + | }  | ||
| + | |||
| + | table.wikitable th, table.wikitable td,  | ||
| + | table.prettytable th, table.prettytable td {  | ||
| + | 	padding:0.2em;  | ||
| + | 	border:1px solid #AAA;  | ||
| + | }  | ||
| + | |||
| + | table.wikitable th,  | ||
| + | table.prettytable th {  | ||
| + | 	background:#F2F2F2;  | ||
| + | 	text-align:center;  | ||
| + | }  | ||
| + | |||
| + | table.wikitable caption,  | ||
| + | table.prettytable caption {  | ||
| + | 	margin-left:inherit;  | ||
| + | 	margin-right:inherit;  | ||
| + | }  | ||
| + | |||
| + | /*******************  | ||
| + | ** Infoboxes  | ||
| + | *******************/  | ||
| + | .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 {  | ||
| + | 	margin-left:inherit;  | ||
| + | 	font-size:larger;  | ||
| + | }  | ||
| + | |||
| + | .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;  | ||
}  | }  | ||
Revision as of 11:51, 18 December 2009
/* CSS placed here will be applied to all skins */
div.userspace {
	padding-left: 130px;
	background: url(images/4/42/Userportal.png) top left no-repeat;
	height: 140px;
}
div.devspace {
	padding-left: 130px;
	background: url(images/4/41/Developers.png) top left no-repeat;
	height: 140px;
}
/* hide unneeded content when printing */
@media print {
#privacy, #about, #disclaimer { display:none; }
}
 
/* hide arrows on selected external links */
.plainlinksneverexpand a {
	background:none !important;
	padding:0 !important;
}
 
/* highlight page protection */
.mw-textarea-protected {
	border:2px solid #F00;
	color:gray;
}
 
/*******************
** Hide selected content (should rarely be used, accessibility issues)
*******************/
.hiddenStructure { display:none; }
.if { display:none; }
 
/*******************
** Table formatting
*******************/
table.wikitable,
table.prettytable {
	margin:1em 1em 1em 0;
	border:1px solid #AAA;
	border-collapse:collapse;
	background:#F9F9F9;
}
 
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
	padding:0.2em;
	border:1px solid #AAA;
}
 
table.wikitable th,
table.prettytable th {
	background:#F2F2F2;
	text-align:center;
}
 
table.wikitable caption,
table.prettytable caption {
	margin-left:inherit;
	margin-right:inherit;
}
/*******************
** Infoboxes
*******************/
.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 {
	margin-left:inherit;
	font-size:larger;
}
 
.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;
}