MediaWiki:Common.css

From Dark Omen Wiki

Revision as of 01:08, 29 December 2008 by Ghabry (Talk | contribs)
Jump to: navigation, search

Note - After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Command-R on a Macintosh); Konqueror: click Reload or press F5; Opera: clear the cache in Tools → Preferences; Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5.

/* 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;
   font-family: monospace;
   color: black;
   white-space: pre;
 }
 
 .codetable th, .codetable td {}
 
 table.codetable tr:nth-child(2n) {color: black; background: rgb(180,190,180)}
 table.codetable tr:nth-child(2n+1) {color: black; background: rgb(190,200,190)}
 
 
 .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; 
 }
 
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
th.mbox-text, td.mbox-text {     /* The message body cell(s) */
    border: none; 
    padding: 0.25em 0.9em;       /* 0.9em left/right */
    width: 100%;    /* Make all mboxes the same width regardless of text length */
}
td.mbox-image {                  /* The left image cell */
    border: none; 
    padding: 2px 0 2px 0.9em;    /* 0.9em left, 0px right */
    text-align: center; 
}
td.mbox-imageright {             /* The right image cell */
    border: none;
    padding: 2px 0.9em 2px 0;    /* 0px left, 0.9em right */
    text-align: center; 
}
.mediawiki table.tmbox-small,
.mediawiki table.ombox-small,
.mediawiki table.mbox-small {    /* For the "small=yes" option (also used elsewhere).   */
    clear: right;                /* The "mediawiki" class ensures that this declaration */
    float: right;                /* overrides styles set in "tmbox"/"ombox"/etc below   */
    margin: 4px 0 4px 1em;
    width: 238px;
    font-size: 88%;
    line-height: 1.25em;
}
Personal tools
communication