Difference between revisions of "MediaWiki:Monobook.css"

From collectd Wiki
Jump to: navigation, search
(Added styles for tables.)
 
(Put the "nice" tables into an own class.)
 
Line 1: Line 1:
 
/* CSS placed here will affect users of the Monobook skin */
 
/* CSS placed here will affect users of the Monobook skin */
  
table
+
table.with_background
 
{
 
{
 
   border-collapse: collapse;
 
   border-collapse: collapse;
 
}
 
}
  
td
+
table.with_background td
 
{
 
{
 
   color: black;
 
   color: black;
 
   background-color: #f9f9f9;
 
   background-color: #f9f9f9;
 +
  border: 1px solid #aaaaaa;
 +
  padding-left: .5ex;
 +
  padding-right: .5ex;
 
}
 
}
  
th
+
table.with_background th
 
{
 
{
 
   color: black;
 
   color: black;
 
   background-color: #e9e9e9;
 
   background-color: #e9e9e9;
 
   vertical-align: top;
 
   vertical-align: top;
}
 
 
td, th
 
{
 
 
   border: 1px solid #aaaaaa;
 
   border: 1px solid #aaaaaa;
 +
  padding-left: .5ex;
 +
  padding-right: .5ex;
 
}
 
}

Latest revision as of 15:13, 26 February 2009

/* CSS placed here will affect users of the Monobook skin */

table.with_background
{
  border-collapse: collapse;
}

table.with_background td
{
  color: black;
  background-color: #f9f9f9;
  border: 1px solid #aaaaaa;
  padding-left: .5ex;
  padding-right: .5ex;
}

table.with_background th
{
  color: black;
  background-color: #e9e9e9;
  vertical-align: top;
  border: 1px solid #aaaaaa;
  padding-left: .5ex;
  padding-right: .5ex;
}