MediaWiki

Common.css

From Joomla! Documentation

Revision as of 11:27, 17 January 2008 by CirTap (talk | contribs) (added some style ;))

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 / Edge: 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 */

#disambig {
  border:2px solid silver;
  border-width: 1px 0px;
  background:white;
  margin-left:20px;
}

/* template-documentation */
.template-documentation {
  border:1px solid #001450; background:#f1f2f7; padding:1ex; margin-top:1em;
}

#template_doc_page_transcluded {
  text-align:center;
  width: 95%;
  margin:0 auto;
  border:1px solid #d0d0d0;
  background:white;
  color:#666;
}

/* Article message box template styles */
table.ambox {
    margin: 0 10%;                       /* Will not overlap with other elements */
    border-collapse: collapse; 
    background: #fbfbfb; 
    border: 1px solid #aaa; 
    border-left: 10px solid #1e90ff;     /* Default "notice" blue */
}
table.ambox th.ambox-text, table.ambox td.ambox-text {      /* The message body cell(s) */
    padding: 0.25em 0.5em;            /* 0.5em left/right */
    width: 100%;                      /* Make all templates the same width regardless of text size */
}
table.ambox td.ambox-image {          /* The left image cell */
    padding: 2px 0px 2px 0.5em;       /* 0.5em left, 0px right */
    text-align: center; 
}
table.ambox td.ambox-imageright {     /* The right image cell */
    padding: 2px 4px 2px 0px;         /* 0px left, 4px right */
    text-align: center; 
}
table.ambox-notice {
    border-left: 10px solid #1e90ff;     /* Blue */
/* border-right: 10px solid #1e90ff; */  /* If you want two blue bars */
}
table.ambox-delete,
table.ambox-serious {
    border-left: 10px solid #b22222;     /* Red */
}
table.ambox-content {
    border-left: 10px solid #f28500;     /* Orange */
}
table.ambox-style {
    border-left: 10px solid #f4c430;     /* Yellow */
}
table.ambox-merge {
    border-left: 10px solid #9932cc;     /* Purple */
}
table.ambox-protection {
    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%;
}

/** Table formatting **/
table.wikitable,
table.prettytable {
  margin:1em 1em 1em 0;
  background:#F9F9F9;
  border:1px #AAA solid;
  border-collapse:collapse;
  }

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

table.wikitable th,
table.prettytable th {
  background:#F2F2F2;
  text-align:center;
  }

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