MediaWiki:Common.css
From Joomla! Documentation
(Difference between revisions)
(added some style ;)) |
m |
||
| Line 95: | Line 95: | ||
margin-right:inherit; | margin-right:inherit; | ||
} | } | ||
| + | /***** | ||
| + | ** box formatting | ||
| + | *****/ | ||
| + | .infobox { | ||
| + | float:right; | ||
| + | clear:right; | ||
| + | margin-bottom:0.5em; | ||
| + | margin-left:1em; | ||
| + | padding:0.2em; | ||
| + | border:1px solid #AAA; | ||
| + | background:#F9F9F9; | ||
| + | color:black; | ||
| + | } | ||
| + | |||
| + | .infobox td, | ||
| + | .infobox th { | ||
| + | vertical-align:top; | ||
| + | } | ||
| + | |||
| + | .infobox caption { | ||
| + | font-size:larger; | ||
| + | margin-left:inherit; | ||
| + | } | ||
| + | |||
| + | .infobox.bordered { | ||
| + | border-collapse:collapse; | ||
| + | } | ||
| + | |||
| + | .infobox.bordered td, | ||
| + | .infobox.bordered th { | ||
| + | border:1px solid #AAA; | ||
| + | } | ||
| + | |||
| + | .infobox.bordered .borderless td, | ||
| + | .infobox.bordered .borderless th { | ||
| + | border:0; | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | * Messagebox templates | ||
| + | * Imported from [[en:MediaWiki:Common.css]] on 2007-07-13 | ||
| + | */ | ||
| + | .messagebox { | ||
| + | border: 1px solid #aaa; | ||
| + | background-color: #f9f9f9; | ||
| + | width: 80%; | ||
| + | margin: 0 auto 1em auto; | ||
| + | padding: .2em; | ||
| + | } | ||
| + | .messagebox.merge { | ||
| + | border: 1px solid #c0b8cc; | ||
| + | background-color: #f0e5ff; | ||
| + | text-align: center; | ||
| + | } | ||
| + | .messagebox.cleanup { | ||
| + | border: 1px solid #9f9fff; | ||
| + | background-color: #efefff; | ||
| + | text-align: center; | ||
| + | } | ||
| + | .messagebox.standard-talk { | ||
| + | border: 1px solid #c0c090; | ||
| + | background-color: #f8eaba; | ||
| + | } | ||
| + | .messagebox.nested-talk { | ||
| + | border: 1px solid #c0c090; | ||
| + | background-color: #f8eaba; | ||
| + | width: 100%; | ||
| + | margin: 2px 4px 2px 4px; | ||
| + | } | ||
| + | .messagebox.small { | ||
| + | width: 238px; | ||
| + | font-size: 85%; | ||
| + | float: right; | ||
| + | clear: both; | ||
| + | margin: 0 0 1em 1em; | ||
| + | line-height: 1.25em; | ||
| + | } | ||
Revision as of 10:35, 20 January 2008
/** 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; } /***** ** box formatting *****/ .infobox { float:right; clear:right; margin-bottom:0.5em; margin-left:1em; padding:0.2em; border:1px solid #AAA; background:#F9F9F9; color:black; } .infobox td, .infobox th { vertical-align:top; } .infobox caption { font-size:larger; margin-left:inherit; } .infobox.bordered { border-collapse:collapse; } .infobox.bordered td, .infobox.bordered th { border:1px solid #AAA; } .infobox.bordered .borderless td, .infobox.bordered .borderless th { border:0; } /* * Messagebox templates * Imported from [[en:MediaWiki:Common.css]] on 2007-07-13 */ .messagebox { border: 1px solid #aaa; background-color: #f9f9f9; width: 80%; margin: 0 auto 1em auto; padding: .2em; } .messagebox.merge { border: 1px solid #c0b8cc; background-color: #f0e5ff; text-align: center; } .messagebox.cleanup { border: 1px solid #9f9fff; background-color: #efefff; text-align: center; } .messagebox.standard-talk { border: 1px solid #c0c090; background-color: #f8eaba; } .messagebox.nested-talk { border: 1px solid #c0c090; background-color: #f8eaba; width: 100%; margin: 2px 4px 2px 4px; } .messagebox.small { width: 238px; font-size: 85%; float: right; clear: both; margin: 0 0 1em 1em; line-height: 1.25em; }