MediaWiki:Common.css
From Assassin Wiki
(Difference between revisions)
(Created page with "/* CSS placed here will be applied to all skins */ - →* reduced subset of the mbox styles from enwiki, mainly for the nice boxflow *: table.mbox { margin: 4px 10%; border-coll...") |
|||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
+ | |||
+ | /* Major warning - used on the main page template to warn against editing carelessly, but can be used elsewhere as well */ | ||
+ | .majorwarning { | ||
+ | background: yellow; | ||
+ | padding: 0.3em; | ||
+ | text-align: center; | ||
+ | font-size: 125%; | ||
+ | border: 2px solid red; | ||
+ | } | ||
+ | |||
+ | /* Page headings used throughout the wiki (though not very much at the time of writing…) */ | ||
+ | .page-notice, .page-warning { | ||
+ | border-width: 1px; | ||
+ | border-style: solid; | ||
+ | padding: 0.3em 0.5em; | ||
+ | margin-bottom: 1em; | ||
+ | width: 95%; | ||
+ | margin-left: auto; | ||
+ | margin-right: auto; | ||
+ | text-align: center; | ||
+ | } | ||
+ | |||
+ | /* Informative notices at the top of pages (blue) */ | ||
+ | .page-notice { | ||
+ | background-color: #f9f9f9; | ||
+ | border-color: #025e9d; | ||
+ | text-align: left; | ||
+ | } | ||
+ | |||
+ | /* Warning information at the top of pages (red) */ | ||
+ | .page-warning { | ||
+ | background-color: #ffffff; | ||
+ | border-color: #c51919; | ||
+ | border-width: 2px; | ||
+ | } | ||
/** reduced subset of the mbox styles from enwiki, mainly for the nice boxflow **/ | /** reduced subset of the mbox styles from enwiki, mainly for the nice boxflow **/ |
Revision as of 06:44, 31 January 2012
/* CSS placed here will be applied to all skins */ /* Major warning - used on the main page template to warn against editing carelessly, but can be used elsewhere as well */ .majorwarning { background: yellow; padding: 0.3em; text-align: center; font-size: 125%; border: 2px solid red; } /* Page headings used throughout the wiki (though not very much at the time of writing…) */ .page-notice, .page-warning { border-width: 1px; border-style: solid; padding: 0.3em 0.5em; margin-bottom: 1em; width: 95%; margin-left: auto; margin-right: auto; text-align: center; } /* Informative notices at the top of pages (blue) */ .page-notice { background-color: #f9f9f9; border-color: #025e9d; text-align: left; } /* Warning information at the top of pages (red) */ .page-warning { background-color: #ffffff; border-color: #c51919; border-width: 2px; } /** reduced subset of the mbox styles from enwiki, mainly for the nice boxflow **/ table.mbox { margin: 4px 10%; border-collapse: collapse; border: 1px solid #aaa; /* Default "notice" gray */ background: #f9f9f9; } table.mbox-wide { margin: 4px 0; } 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; } td.mbox-empty-cell { /* An empty narrow cell */ border: none; padding: 0px; width: 1px; }