MediaWiki:Common.css

From Knotter
Revision as of 19:47, 6 June 2013 by Mattia Basaglia (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* CSS placed here will be applied to all skins */

/*Tables*/
td.na { 
  background-color:#ececec;
  color: grey; 
}
table.release-table td {
  text-align: center;
  line-height: 1em;
}

/* Article message box template styles */
table.ambox {
  width: 80%; 
  margin: 0 auto;
  border-collapse: collapse; 
  background: #fbfbfb; 
  border: 1px solid #aaa; 
  border-left: 10px solid #1e90ff;       /* Default "notice" blue */
}
table.ambox th, table.ambox td {      /* The message body cell(s) */
  padding: 0.25em 0.5em;              /* 0.5em left/right */
}
table.ambox td.mbox-image {          /* The left image cell */
  width: 52px; 
  padding: 2px 0px 2px 0.5em;         /* 0.5em left, 0px right */
  text-align: center; 
}
table.ambox td.mbox-imageright {     /* The right image cell */
  width: 52px; 
  padding: 2px 4px 2px 0px;           /* 0px left, 4px right */
  text-align: center; 
}
table.ambox-info {
  border-left: 10px solid #1e90ff;       /* Blue */
}
table.ambox-tip {
  border-left: 10px solid #8fd8ff;       /* Light Blue */
}
table.ambox-warning {
  border-left: 10px solid #b22222;       /* Red */
}
table.ambox-note {
  border-left: 10px solid #f28500;       /* Orange */
}
table.ambox-default {
  border-left: 10px solid #bba;          /* Gray */
}
table.ambox.ambox-mini {                 /* small floating box variant */
    float: right;
    clear: right;
    margin: 0 0 0 1em;
    width: 25%;
}

/* Code */
.code-example {
    border: 1px solid #CCC;
    padding: 1em;
}
.code-example pre {
    margin: 0;
}