MediaWiki talk:Common.css

From AcaDec Scores and Information Center
Jump to navigationJump to search

Requesting this be added to common.css. Why? is how Ambox is added to other wikis. Of course, go check the source before copying (duuh)

/* Article message box template styles */ table.ambox {

 width: 80%; 
 margin: 0 auto;
 border-collapse: collapse; 
 background: #fbfbfb; 
 border: 1px solid #aaa; 
 border-left: 10px solid #1e90ff;       /* Default "notice" blue */

} table.ambox th, table.ambox td { /* The message body cell(s) */

 padding: 0.25em 0.5em;              /* 0.5em left/right */

} table.ambox td.ambox-image { /* The left image cell */

 width: 52px; 
 padding: 2px 0px 2px 0.5em;         /* 0.5em left, 0px right */
 text-align: center; 

} table.ambox td.ambox-imageright { /* The right image cell */

 width: 52px; 
 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%;

}

Adam 00:49, 7 December 2007 (PST)[edit]

Changed the color of table headers because the lack of color in wikitables is SERIOUSLY depressing. Anyone can change the color if they so please, just please don't go back to the grey or something hideous like hot pink.

That is all.