MediaWiki:Common.css

From NWN Lexicon
Jump to: navigation, 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.
/* General paragraph style to spread the lines out a bit more. */
 
#mw-content-text p
{
    margin: 1em 0;
}
 
/* General blockquote style */
blockquote {
    border-left: 2px solid #2f6fab;
    padding-left: 10px;
}
 
 
/* The padding-5 class can be added to a table to increase the cell padding to
 * 5 pixels. This is preferred to the cellpadding attribute because it will work
 * with the wikitable class. */
 
table.padding-5 td
{
    padding: 5px !important;
}
 
table.padding-5 th
{
    padding: 5px !important;
}
 
 
/* The below styles are mainly used by the A Simple Quest tutorials, but may be useful elsewhere.
 * These styles differ somewhat from the ones used in the original Lexicon, but they look nicer, IMO. */
 
div.hint
{
    border: 1px dashed #2f6fab;
    background-color: #f9f9f9;
    color: #f9f9f9;
}
 
span.code
{
    font-family: Consolas, monospace;
    font-size: 13px;
}
 
span.help
{
    text-decoration: none;
    border-bottom: 1px dashed #2f6fab;
}
 
span.node
{
    border: 1px solid #2f6fab;
    background-color: #f9f9f9;
    padding: 0 3px;
}
 
span.plot
{
    font-family: Consolas, monospace;
    font-size: 14px;
    font-weight: bold;
}
 
/* For template documentation */
.template-documentation
{
    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa; 
    background-color: #ecfcf4;
    padding: 1em;
}
 
 
/* Begin Messagebox template styles ----------------------------------------- */
 
.messagebox
{
    border: thin solid #aaa;
    margin: .5em 10%;
    background-color: #f9f9f9;
}
 
/*
prevent inheriting border from wikitable/prettytable
the next two rules override padding
*/
table.messagebox td, table.messagebox th
{
    border: none;
}
 
td.mb-image
{
    padding: 2px 0 2px 0.9em;
    white-space: nowrap;
}
 
td.mb-text
{
    padding: 0.25em 0.9em;
    width:100%;
}
 
.mb-warning,
.mb-warning-orange
{
    border:medium solid orange;
}
.mb-warning-red
{
    border:medium solid red;
}
 
.mb-info,
.mb-question
{
    border:thin solid DodgerBlue;
}
 
.mb-error
{
    border:medium solid red;
}
 
.mb-copyright
{
    border:thin solid red;
}
 
.mb-copyleft
{
    border:thin solid green;
}
 
.mb-stop
{
    border:medium dashed red;
}
 
#fileinfotpl td .messagebox,
.messagebox.fullwidth,
.mb-fullwidth
{
    margin-left:0;
    margin-right:0;
}
 
.mb-autowidth
{
    width:auto;
    margin-left:auto;
    margin-right:auto;
}
 
.mb-autowidth .mb-text
{
    width:auto;
}
 
.mb-nomargin
{
    margin-left:0;
    margin-right:0;
}
 
.mb-delete .messagebox
{
    color:white;
}
.mb-centered .mb-text
{
    text-align: center;
}
 
.messagebox.m0
{
    background-color:#7535CB;
}
 
.messagebox.m1
{
    background-color:#65CF31;
}
 
.messagebox.m2
{
    background-color:#CBCF00;
}
 
.messagebox.m3
{
    background-color:#bb0000;
}
 
.messagebox.mEd
{
    background-color:#d0e0e0;
}
 
/* 
Messagebox nesting 
Don't add anything messagebox-related below this,
because the nesting overrides will not work!
*/
 
.messagebox .messagebox
{
    background-color: transparent;
    font-size: smaller;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-width: thin;
    border-color: #aaaaaa;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    width:100%;
}
 
.messagebox .messagebox .mb-image img
{
    width: 24px !important;
    height: auto !important;
}
 
/* End Messagebox template styles --------------------------------------------*/
 
/* [[Template:Hatnote]] */
 
.hatnote
{
    font-style: italic;
    padding-left: 2em;
    margin-bottom: 0.5em;
}
 
/* override italics with '' */
.hatnote i
{
    font-style: normal;
}