MediaWiki:Common.css

From Dark Omen Wiki

(Difference between revisions)
Jump to: navigation, search
Line 10: Line 10:
  .prettytable {
  .prettytable {
   margin: 1em 1em 1em 0;
   margin: 1em 1em 1em 0;
-
   background: #D7E1D7; for the new Design
+
   background: #D7E1D7;
   border: 1px #AAA solid;
   border: 1px #AAA solid;
   border-collapse: collapse;
   border-collapse: collapse;
Line 17: Line 17:
  .wikitable th, .wikitable td,
  .wikitable th, .wikitable td,
-
.codetable th, .codetable td,
 
  .prettytable th, .prettytable td {
  .prettytable th, .prettytable td {
   border: 1px #AAA solid;
   border: 1px #AAA solid;
Line 33: Line 32:
  table.codetable { border: 0px; }
  table.codetable { border: 0px; }
 +
.codetable th, .codetable td {
 +
  padding: 0.3em;
 +
}
  table.codetable tr:nth-child(2n) {color: #000; background: #FFF}
  table.codetable tr:nth-child(2n) {color: #000; background: #FFF}
  table.codetable tr:nth-child(2n+1) {color: #000; background: #CCC}
  table.codetable tr:nth-child(2n+1) {color: #000; background: #CCC}
 +
  .nogrid th, .nogrid td {border: none;}
  .nogrid th, .nogrid td {border: none;}

Revision as of 23:21, 23 September 2008

/* CSS placed here will be applied to all skins */
 
 
table {border-spacing: 0}
table td, th {padding: 0 0.2em}
 
 
 .wikitable,
 .codetable
 .prettytable {
  margin: 1em 1em 1em 0;
  background: #D7E1D7;
  border: 1px #AAA solid;
  border-collapse: collapse;
  empty-cells:show;
 }
 
 .wikitable th, .wikitable td,
 .prettytable th, .prettytable td {
  border: 1px #AAA solid;
  padding: 0.3em;
 }
 
 .wikitable caption,
 .codetable caption,
 .prettytable caption {
  margin-left: inherit;
  margin-right: inherit;
  font-weight: bold;
 }
 
 table.codetable { border: 0px; }
 
 .codetable th, .codetable td {
  padding: 0.3em;
 }
 table.codetable tr:nth-child(2n) {color: #000; background: #FFF}
 table.codetable tr:nth-child(2n+1) {color: #000; background: #CCC}
 
 
 .nogrid th, .nogrid td {border: none;}
 .float-left { float: left; clear: left; }
 .float-right { float: right; clear: right; margin: 1em 0 1em 1em; }
 .centered { margin-left: auto; margin-right: auto; }
 
 table.boxes {
    margin: 4px 10%; 
    border-collapse: collapse; 
    border: 1px solid #aaa;       /* Default "notice" gray */
    background: #f9f9f9;
 }
 
 table.boxes-notice { border: 1px solid #aaa; }
 
 th.boxes-text, td.boxes-text {    /* The message body cell(s) */
    border: none; 
    padding: 0.25em 0.9em;        /* 0.9em left/right */
    width: 100%;
 }
 td.boxes-image {                  /* The left image cell */
    border: none; 
    padding: 2px 0 2px 0.9em;     /* 0.9em left, 0px right */
    text-align: center; 
 }
Personal tools
communication