MediaWiki:Common.css

From DramaWiki
Jump to: navigation, search

Sponsored links

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Clear the cache in Tools → Preferences
/*<pre>*/
 
/* general message (for airing/upcoming/unconfirmed dramas) */
#notice {
  text-align: center;
  background: #efefff;		/* Blue */
  border: #9F9FFF 1px solid;
  margin: 1em 10%;
  padding: 0.25em;
}
 
/* editor maintenance messages */
#cleaning {
  text-align: left;
  background: #f8f0c0;		/* Orange */
  border: orange 1px solid;
  margin: 0 5%;
  padding: 0.5em;
}
 
/* sysop maintenance messages */
#delete {
  text-align: left;
  background: #fee;		/* Red */
  border: 1px solid #bb9999;
  margin: 0 5%;
  padding: 0.75em;
}
 
#spoiler {
  background: #ffcccc;		/* Red */
  border: 1px solid #a88;
  margin: 0 5%;
  padding: 0 0.5em;
}
 
#disambig {
  text-align: justify;
  background: #ccffcc;		/* Green */
  border: 1px solid #77ff77;
  margin: 0 5%;
  padding: 0 0.5em;
}
 
#stub {
  text-align: center;
  background: #f0f0f0;		/* Gray */
  padding: 0.5em;
  margin-top: 1em;
}
 
 
/* overrides for internal wikitable class */
table.wikitable {
  margin: 0.5em 1em;	/* vertical margin 1em->0.5em & horiz margin 0->1em */
}
table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
  padding: 0.2em 0.5em;		/* horizontal padding increased 0 -> 0.5em */
}
table.wikitable > tr > th,
table.wikitable > * > tr > th {
  background-color: #f2f2ff;	/* light blue header */
}
 
/* ratingtable is similar to Mediawiki's wikitable (diffs are commented) */
table.ratingtable {
  margin: 0.5em 0.5em;
  background: #f9f9f9;
  border: 1px #aaa solid;
  border-collapse: collapse;
  color: black;
}
table.ratingtable > tr > th,
table.ratingtable > tr > td,
table.ratingtable > * > tr > th,
table.ratingtable > * > tr > td {
  border: 1px #aaa solid;
  padding: 0.2em 1em;		/* horizontal padding is 1em, instead of 0 */
  text-align: center;		/* all cells centered, not just header cells */
  vertical-align: top;
}
table.ratingtable > tr > th,
table.ratingtable > * > tr > th {
  background-color: #ffdead;	/* orange header cells */
  vertical-align: middle;
}
table.ratingtable > caption {
  font-weight: bold;
}
 
 
/* for hilighting table rows (in drama tables) or text spans */
#airing {
  background: #ccffcc;		/* green */
}
 
 
/* customizable styles for the 'show'/'hide' buttons created dynamically
 * by the CollapsibleTables javascript in [[MediaWiki:Common.js]]
 */
.collapseButton {
  float: right;
  font-weight: normal;
  text-align: right;
  width: auto;
}
 
 
/* hatnote formatting */
.hatnote {
  font-style: italic;
  padding-left: 2em;
  margin-bottom: 0.5em;
}
.hatnote i {
  font-style: normal;
}
 
 
/* Removes underlines from certain links */
.nounderlines a {
  text-decoration: none !important;
}
 
 
/* For template documentation */
.template-documentation {
  clear: both;
  margin: 1em 0 0 0;
  border: 1px solid #aaa;
  background-color: #ecfcf4;
  padding: 1em;
}
 
 
/* keep reference superscript and subscript text from breaking the line-spacing */
sup, sub {
  line-height: 1em;	/* Reduce line-height for <sup> and <sub> */
}
 
 
/* fix for nested or successive unordered lists (e.g. cast lists)
 * sets top margin to zero
 */
.mw-content-ltr ul,
.mw-content-rtl .mw-content-ltr ul {
  margin: 0 0 0 1.6em;			/* default: 0.3em 0 0 1.6em */
}
 
/* fix for description list headers (e.g. in cast lists) */
dl {
  margin-top: .4em;		/* default: .2em */
  margin-bottom: .1em;		/* default: .5em */
}
 
 
/*</pre>*/

Advertisements