Difference between revisions of "MediaWiki:Common.css"

From WikiVet English
Jump to navigation Jump to search
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
  
 +
/* Collapsible Tables */
 
.collapseButton { /* 'show'/'hide' buttons created dynamically by the        */
 
.collapseButton { /* 'show'/'hide' buttons created dynamically by the        */
 
float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
 
float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
Line 29: Line 30:
 
.prettytable caption {
 
.prettytable caption {
 
     font-weight: bold;
 
     font-weight: bold;
 +
}
 +
 +
/* extra buttons for edit dialog (from commons:MediaWiki:Common.css) */
 +
.my-buttons { padding: 0.5em; }
 +
.my-buttons a {
 +
color: black;
 +
background-color: #ccddee !important;
 +
font-weight: bold;
 +
font-size: 0.9em;
 +
text-decoration: none;
 +
border: thin #006699 outset;
 +
padding: 0 0.1em 0.1em 0.1em;
 +
}
 +
.my-buttons a:hover, .my-buttons a:active {
 +
background-color: #bbccdd;
 +
border-style: inset;
 
}
 
}

Revision as of 21:25, 1 March 2010

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

/* Collapsible Tables */
.collapseButton {		/* 'show'/'hide' buttons created dynamically by the        */
	float: right;		/* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
	font-weight: normal;	/* are styled here so they can be customised.              */
	text-align: right;
	width: auto;
}

/* wikitable/prettytable class for skinning normal tables */
table.wikitable,
table.prettytable {
    margin: 1em 1em 1em 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}
.wikitable th, .wikitable td,
.prettytable th, .prettytable td {
    border: 1px #aaa solid;
    padding: 0.2em;
}
.wikitable th,
.prettytable th {
    background: #f2f2f2;
    text-align: center;
}
.wikitable caption,
.prettytable caption {
    font-weight: bold;
}

/* extra buttons for edit dialog (from commons:MediaWiki:Common.css) */
.my-buttons { padding: 0.5em; }
.my-buttons a {
	color: black;
	background-color: #ccddee !important;
	font-weight: bold;
	font-size: 0.9em;
	text-decoration: none;
	border: thin #006699 outset;
	padding: 0 0.1em 0.1em 0.1em;
}
.my-buttons a:hover, .my-buttons a:active {
	background-color: #bbccdd;
	border-style: inset;
}