v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

MediaWiki:Common.css

From Dwarf Fortress Wiki
Jump to navigation Jump to search

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: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files
/** CSS placed here will be applied to all skins */
div#norate{
display:none;
}

#bottom{
width:730px;
margin: 0 auto;
margin-top: 10px;
}

#ca-rater{
margin-left:1.7em !important;
}

.rater_red{
color:#A00;
}

.rater_green{
color:#0A0;
}

.rater_box{
border: 1px #AAA solid;
padding: 5px;
padding-top:0px;
margin-bottom:7px;
}

table.pre-table pre { 
	padding: 0; 
	margin: 0; 
	border: 0; 
	background: inherit;
}
table.prettytable td, table.prettytable th {
	position: relative; /* for {{text anchor}} */
}

a.new, #p-personal a.new {
	color: #9D1212;
}
a.new, #quickbar a.new { color: #9D1212; }

a.new:visited, #p-personal a.new:visited {
	color: #9D1212;
}
#p-cactions .new a {
	color: #9D1212;
}

a {
	text-decoration: none;
	color: #36b;
	background: none;
}
a:visited {
	color: #322588;
}
a:active {
	color: #CA7A02;
}
a:hover {
	text-decoration: underline;
}
a.stub {
	color: #772233;
}



body.page-Main_Page h1.firstHeading { display: none !important; }

pre, .mw-code {
    overflow-x: auto;
}

/* Pad Google AdSense box in portlet in sidebar */
#mw-panel.collapsible-nav .portal.persistent#p-googleadsense .body {
    padding-top: 5px;
    margin-left: -3px;
}

#mw-panel.collapsible-nav .portal.persistent#p-googleadsense {
    margin-left: 2px;
}

#f-poweredbyico { display: none; }

div.topicon {
    top: -3.2em;
    position: absolute; 
    z-index: 10; 
    display: block !important;
}

.text-anchor > a, .text-anchor > a:visited {
  color: #339;
}

/* Cell sizes for *mbox message boxes */
th.mbox-text, td.mbox-text {   /* The message body cell(s) */
    border: none;
    /* @noflip */
    padding: 0.25em 0.9em;     /* 0.9em left/right */
    width: 100%;               /* Make all mboxes the same width regardless of text length */
}
td.mbox-image {                /* The left image cell */
    border: none;
    /* @noflip */
    padding: 2px 0 2px 0.9em;  /* 0.9em left, 0px right */
    text-align: center;
}
td.mbox-imageright {           /* The right image cell */
    border: none;
    /* @noflip */
    padding: 2px 0.9em 2px 0;  /* 0px left, 0.9em right */
    text-align: center;
}
td.mbox-empty-cell {           /* An empty narrow cell */
    border: none;
    padding: 0px;
    width: 1px;
}
 
/* Article message box styles */
table.ambox {
    margin: 0px 10%;                  /* 10% = Will not overlap with other elements */
    border: 1px solid #aaa;
    /* @noflip */
    border-left: 10px solid #1e90ff;  /* Default "notice" blue */
    background: #fbfbfb;
}
table.ambox + table.ambox {      /* Single border between stacked boxes. */
    margin-top: -1px;
}
.ambox th.mbox-text,
.ambox td.mbox-text {            /* The message body cell(s) */
    padding: 0.25em 0.5em;       /* 0.5em left/right */
}
.ambox td.mbox-image {           /* The left image cell */
    /* @noflip */
    padding: 2px 0 2px 0.5em;    /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright {      /* The right image cell */
    /* @noflip */
    padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
}
 
table.ambox-notice {
    /* @noflip */
    border-left: 10px solid #1e90ff;    /* Blue */
}
table.ambox-speedy {
    /* @noflip */
    border-left: 10px solid #b22222;    /* Red */
    background: #fee;                   /* Pink */
}
table.ambox-delete {
    /* @noflip */
    border-left: 10px solid #b22222;    /* Red */
}
table.ambox-content {
    /* @noflip */
    border-left: 10px solid #f28500;    /* Orange */
}
table.ambox-style {
    /* @noflip */
    border-left: 10px solid #f4c430;    /* Yellow */
}
table.ambox-move {
    /* @noflip */
    border-left: 10px solid #9932cc;    /* Purple */
}
table.ambox-protection {
    /* @noflip */
    border-left: 10px solid #bba;       /* Gray-gold */
}


img.df-sprite-infobox {
    max-width: 100%;
    object-fit: contain;
}