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.

Difference between revisions of "MediaWiki:Common.css"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
(style infobox sprites)
 
(65 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
/** CSS placed here will be applied to all skins */
 
/** CSS placed here will be applied to all skins */
div#content {
+
div#norate{
  color: #333;
+
display:none;
 
}
 
}
h1, h2, h3, h4, h5, h6 {
+
 
  color: #333;
+
#bottom{
 +
width:730px;
 +
margin: 0 auto;
 +
margin-top: 10px;
 
}
 
}
  
table {
+
#ca-rater{
color: #333;
+
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 {
 
a.new, #p-personal a.new {
color: #B16B02;
+
color: #9D1212;
 
}
 
}
a.new, #quickbar a.new { color: #B16B02; }
+
a.new, #quickbar a.new { color: #9D1212; }
  
 
a.new:visited, #p-personal a.new:visited {
 
a.new:visited, #p-personal a.new:visited {
color: #CA7A02;
+
color: #9D1212;
 
}
 
}
 
#p-cactions .new a {
 
#p-cactions .new a {
color: #B16B02;
+
color: #9D1212;
 
}
 
}
  
Line 29: Line 57:
 
}
 
}
 
a:visited {
 
a:visited {
color: #2B549C;
+
color: #322588;
 
}
 
}
 
a:active {
 
a:active {
Line 44: Line 72:
  
 
body.page-Main_Page h1.firstHeading { display: none !important; }
 
body.page-Main_Page h1.firstHeading { display: none !important; }
 +
 +
pre, .mw-code {
 +
    overflow-x: auto;
 +
}
  
 
/* Pad Google AdSense box in portlet in sidebar */
 
/* Pad Google AdSense box in portlet in sidebar */
#p-googleadsense .pBody {
+
#mw-panel.collapsible-nav .portal.persistent#p-googleadsense .body {
 
     padding-top: 5px;
 
     padding-top: 5px;
     text-align: center;
+
     margin-left: -3px;
 
}
 
}
  
 +
#mw-panel.collapsible-nav .portal.persistent#p-googleadsense {
 +
    margin-left: 2px;
 +
}
  
 
#f-poweredbyico { display: none; }
 
#f-poweredbyico { display: none; }
Line 61: Line 96:
 
}
 
}
  
div#bodyContent{
+
.text-anchor > a, .text-anchor > a:visited {
position:relative;
+
  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;
 
}
 
}

Latest revision as of 01:53, 10 January 2023

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