MediaWiki:Common.css
Line 76: | Line 76: | ||
text-align:left; | text-align:left; | ||
} | } | ||
+ | |||
+ | /* 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%; | ||
+ | } |
Revision as of 05:02, 16 January 2008
/** CSS placed here will be applied to all skins */ /*<pre>*/ /***** ** Table formatting *****/ table.wikitable { margin:1em 1em 1em 0; background:#F9F9F9; border:1px #AAA solid; border-collapse:collapse; } table.wikitable th, table.wikitable td { border:1px #AAA solid; padding:0.2em; } table.wikitable th{ background:#F2F2F2; text-align:center; } table.wikitable caption { margin-left:inherit; margin-right:inherit; } /***** ** Private CFV Table *****/ table.privcfv { margin:1em 1em 1em 0; background:#FFCCCC; border:1px #990000 solid; border-collapse:collapse; } table.privcfv th, table.privcfv td { border:1px #990000 solid; padding:0.2em; } table.privcfv th{ background:#F2F2F2; text-align:center; } table.privcfv caption { margin-left:inherit; margin-right:inherit; } /***** ** Table formatting (2) *****/ table.lefttable { margin:1em 1em 1em 0; background:#CCFF99; border:1px #AAA solid; border-collapse:collapse; text-align:left; } table.lefttable th, table.lefttable td { text-align:left; border:1px #AAA solid; padding:0.2em; } table.lefttable th{ background:#F2F2F2; text-align:left; } table.lefttable caption { margin-left:inherit; margin-right:inherit; text-align:left; } /* 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%; }