Difference between revisions of "MediaWiki:Common.css"

From FollowTheScore
Jump to: navigation, search
Line 8: Line 8:
 
#n-Test { background-color: #ccffcc; }
 
#n-Test { background-color: #ccffcc; }
 
#n-Type { background-color: #dedede; }
 
#n-Type { background-color: #dedede; }
 
/* set default for all tables */
 
 
table tr {
 
  vertical-align:top;
 
}
 
  
 
/* Demo for a special DPL table which can be assigned via rowcolformat */
 
/* Demo for a special DPL table which can be assigned via rowcolformat */

Revision as of 23:52, 24 July 2009

/* disable navigation sidebar */
#p-navigation { display:none }

/* color settings for article types */

#n-Manual { background-color: #ffddaa; }
#n-Source { background-color: #ccccff; }
#n-Test { background-color: #ccffcc; }
#n-Type { background-color: #dedede; }

/* Demo for a special DPL table which can be assigned via rowcolformat */

table.dpl3columns td {
  background: #f2f2f2;
  padding: 0.5em;
  border:3px;
  width:33%;
}

/* Demo for a special DPL table which is used by dplmatrix */

table.dplmatrix {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #aaaaaa solid;
  border-collapse: collapse;
}
table.dplmatrix th {
  background: #f2f2f2;
  border: 1px #aaaaaa solid;
  padding: 0.5em;
  font-size: 80%;
}
table.dplmatrix td {
  text-align: center;
  border: 1px #aaaaaa solid;
  padding: 0.5em;
}


/* wikitable, sortable, and prettytable class definitions
** based on meta.wikimedia.org MediaWiki:Common.css 
*/

table.wikitable, table.sortable, table.prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #aaaaaa solid;
  border-collapse: collapse;
}

table.wikitable td, table.sortable td, table.prettytable td {
  border: 1px #aaaaaa solid;
  padding: 0.2em;
}

table.wikitable th, table.sortable th, table.prettytable th {
  background: #E6E6FA; /* lavender; wikimedia: #f2f2f2 */
  border: 1px #aaaaaa solid;
  text-align: center;
}

table.wikitable caption, table.sortable caption, table.prettytable caption {
  margin-left: inherit;
  margin-right: inherit;
}