Difference between revisions of "MediaWiki:Common.css"

From FansubWiki
(styling for collapsible tables)
 
(+wikitable class)
Line 2: Line 2:
  
 
/*<pre>*/
 
/*<pre>*/
 +
 +
 +
/* wikitable class for skinning normal tables */
 +
table.wikitable {
 +
  margin: 0.5em 0.5em 0.5em 0;
 +
  background: #f9f9f9;
 +
  border: 1px #aaa solid;
 +
  border-collapse: collapse;
 +
}
 +
.wikitable th, .wikitable td {
 +
  border: 1px #aaa solid;
 +
  padding: 0.2em 1em 0.2em 1em;
 +
  vertical-align: top;
 +
}
 +
.wikitable th {
 +
  text-align: center;
 +
  background: #f2f2ff;
 +
}
 +
.wikitable caption {
 +
  font-weight: bold;
 +
}
 +
  
 
/** Collapsible tables *********************************************************
 
/** Collapsible tables *********************************************************

Revision as of 03:37, 29 February 2012

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

/*<pre>*/


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


/** Collapsible tables *********************************************************
 *
 *  Description: Allows tables to be collapsed, showing only the header. See
 *		   http://www.mediawiki.org/wiki/Manual:Collapsible_tables.
 *  Maintainers: [[en:User:R. Koot]]
 */

table.collapsed tr.collapsible {
	display: none;
}

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

/*</pre>*/