MediaWiki:Common.css: Difference between revisions

From devkitPro
Jump to navigation Jump to search
No edit summary
(add wikitable code)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<nowiki>/** 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 */
/* Major warning - used on the main page template to warn against editing carelessly, but can be used elsewhere as well */
.majorwarning {
.majorwarning {
   background: yellow;  
   background: yellow;  
Line 10: Line 11:
}
}


</nowiki>
 
/******* MAIN PAGE STYLING **********/
#mainpage_topbox {
  background: #f9f9f9;
  padding: 0px;
  border: 1px solid #aaaaaa;
  margin: 0.2em 10px 10px;
}
.mainpage_boxtitle, .mainpage_hubtitle, #mainpage_pagetitle {
  font-size: 105%;
  padding: 0.4em;
  background-color: #eeeeee;
  border-bottom: 1px solid #aaaaaa;
}
.mainpage_boxtitle {
  line-height: 120%;
}
#mainpage_pagetitle {
  color: #cf7606;
  font-size: 200% !important;
}
#mainpage_sitelinks {
  padding: 0.2em;
  text-align: center;
  background-color: white;
}
.mainpage_hubtitle {
  text-align: center;
}
.mainpage_boxcontents, .mainpage_boxcontents_small {
  background: #ffffff;
  padding:0.2em 0.4em;
}
.mainpage_boxcontents_small {
  font-size: 95%;
}
.mainpage_hubbox, #mainpage_newscell, #mainpage_downloadcell {
  padding: 0;
  border: 1px solid #aaaaaa;
}
.mainpage_hubbox {
  margin-bottom: 0;
}
/* The words 'MediaWiki.org' in the title.*/
#mainpage_mwtitle {
  color: #005288;
}
 
/* wikitable/prettytable class for skinning normal tables */
 
table.wikitable,
table.prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #aaaaaa solid;
  border-collapse: collapse;
}
 
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
  border: 1px #aaaaaa 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;
}
 
#external text {
  text-decoration: none;
}
 
/* Infobox template style */
.infobox {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    color: black;
    margin-bottom: 0.5em;
    margin-left: 1em;
    padding: 0.2em;
    float: right;
    clear: right;
}
.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;
}
.infobox.sisterproject {
    width: 20em;
    font-size: 90%;
}
@media print {
    .infobox.sisterproject {
        display: none;
    }
}
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
    border: 0;
    border-top: 1px solid #aaa;
    border-right: 1px solid #aaa;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
    border: 0;
    border-right: 1px solid #aaa;
}

Latest revision as of 19:08, 16 March 2008

/** 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;
}


/******* MAIN PAGE STYLING **********/
 
#mainpage_topbox {
  background: #f9f9f9; 
  padding: 0px; 
  border: 1px solid #aaaaaa; 
  margin: 0.2em 10px 10px;
}
 
.mainpage_boxtitle, .mainpage_hubtitle, #mainpage_pagetitle {
  font-size: 105%; 
  padding: 0.4em; 
  background-color: #eeeeee; 
  border-bottom: 1px solid #aaaaaa; 
 
}
 
.mainpage_boxtitle {
  line-height: 120%;
}
 
#mainpage_pagetitle {
  color: #cf7606; 
  font-size: 200% !important;
}
 
#mainpage_sitelinks {
  padding: 0.2em; 
  text-align: center;
  background-color: white;
}
.mainpage_hubtitle {
  text-align: center;
}
 
.mainpage_boxcontents, .mainpage_boxcontents_small {
  background: #ffffff;
  padding:0.2em 0.4em;
}
 
.mainpage_boxcontents_small {
  font-size: 95%;
}
 
.mainpage_hubbox, #mainpage_newscell, #mainpage_downloadcell {
  padding: 0;
  border: 1px solid #aaaaaa;
}
 
.mainpage_hubbox {
  margin-bottom: 0;
}
 
/* The words 'MediaWiki.org' in the title.*/
#mainpage_mwtitle {
  color: #005288;
}

/* wikitable/prettytable class for skinning normal tables */

table.wikitable,
table.prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #aaaaaa solid;
  border-collapse: collapse;
}

table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
  border: 1px #aaaaaa 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;
}

#external text {
  text-decoration: none;
}

/* Infobox template style */
.infobox {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    color: black;
    margin-bottom: 0.5em;
    margin-left: 1em;
    padding: 0.2em;
    float: right;
    clear: right;
}
.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;
}
 
.infobox.sisterproject {
    width: 20em;
    font-size: 90%;
}
 
@media print {
    .infobox.sisterproject {
        display: none;
    }
}
 
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
    border: 0;
    border-top: 1px solid #aaa;
    border-right: 1px solid #aaa;
}
 
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
    border: 0;
    border-right: 1px solid #aaa;
}