Difference between revisions of "MediaWiki:Common.css"

From Ultronomicon
Jump to navigation Jump to search
(Stuff from Template:Planet_infobox#CSS so that Svip can make pretty infoboxes)
 
(tweaks, from svip)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
 +
 
.infobox {
 
.infobox {
 
float: right;
 
float: right;
Line 10: Line 11:
 
}
 
}
 
.infobox th {
 
.infobox th {
text-align: right;  
+
text-align: right;
 +
padding-right: 5px;
 
}
 
}
 
.infobox td {
 
.infobox td {
text-align: left;  
+
text-align: left;
 +
padding-left: 5px;
 
}
 
}
 
.infoboxCentre,
 
.infoboxCentre,
Line 19: Line 22:
 
.infoboxTitle {
 
.infoboxTitle {
 
text-align: center !important;  
 
text-align: center !important;  
 +
}
 +
.infoboxTitle,
 +
.infoboxHeader {
 +
background: #bbb;
 
}
 
}
 
.infoboxTitle {
 
.infoboxTitle {
background: #ccc;
 
 
font-size: 150%;
 
font-size: 150%;
 
padding: 4px;
 
padding: 4px;
 
}
 
}
 
.infoboxHeader {
 
.infoboxHeader {
background: #ccc;
 
 
font-size: 120%;
 
font-size: 120%;
 
}
 
}
Line 35: Line 40:
 
.infobox .odd td {
 
.infobox .odd td {
 
background: #ddd;  
 
background: #ddd;  
 +
}
 +
.infobox th,
 +
.infobox td {
 +
vertical-align: top;
 +
}
 +
 +
.template-documentation {
 +
background: #ccf;
 +
padding: 3px 5px;
 +
border: 1px solid #77a;
 +
}
 +
.template-documentation .fake-h2 {
 +
font-size: 18pt;
 +
border-bottom: 1px solid #77a;
 +
margin: 8px 0px 4px;
 +
font-weight: bold;
 
}
 
}

Latest revision as of 16:01, 28 August 2012

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

.infobox {
	float: right;
	width: 250px;
	margin: 0 0 10px 15px;
	text-align: center;
}
.infobox table {
	background: #eee;
}
.infobox th {
	text-align: right;
	padding-right: 5px;
}
.infobox td {
	text-align: left;
	padding-left: 5px;
}
.infoboxCentre,
.infoboxHeader,
.infoboxTitle {
	text-align: center !important; 
}
.infoboxTitle,
.infoboxHeader {
	background: #bbb;
}
.infoboxTitle {
	font-size: 150%;
	padding: 4px;
}
.infoboxHeader {
	font-size: 120%;
}
.infoboxCaption {
	font-size: 85%;
}
.infobox .odd th,
.infobox .odd td {
	background: #ddd; 
}
.infobox th,
.infobox td {
	vertical-align: top; 
}

.template-documentation {
	background: #ccf; 
	padding: 3px 5px;
	border: 1px solid #77a;
}
.template-documentation .fake-h2 {
	font-size: 18pt;
	border-bottom: 1px solid #77a;
	margin: 8px 0px 4px;
	font-weight: bold;
}