MediaWiki:Common.css: Difference between revisions
No edit summary |
Main Page box colors from original mainpagestyles.css |
||
| Line 1: | Line 1: | ||
/* HR Wiki | /* HR Wiki original mainpagestyles.css — mapped to 2024 class names | ||
Colors from archived hrwiki.org/temporary_files/mainpagestyles.css */ | |||
/* Browse the knowledge base | /* ---- Browse the knowledge base (green) ---- */ | ||
td.MainPageKnowledgeBaseBox, | td.MainPageKnowledgeBaseBox, | ||
. | .mp-browse { | ||
background: #DEF0CF !important; | background: #DEF0CF !important; | ||
border: 1px solid #608050 !important; | border: 1px solid #608050 !important; | ||
vertical-align: top; | vertical-align: top; | ||
padding: | padding: 0 !important; | ||
} | } | ||
td.MainPageKnowledgeBaseBox > h3, | td.MainPageKnowledgeBaseBox > h3, | ||
.MainPageKnowledgeBaseBox | td.MainPageKnowledgeBaseBox h3, | ||
. | .mp-browse-header { | ||
background: #608050 !important; | background: #608050 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
margin: | margin: 0 !important; | ||
padding: | padding: 4px 8px !important; | ||
font-size: 125% !important; | font-size: 125% !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
border: none !important; | border: none !important; | ||
border-bottom: none !important; | |||
} | } | ||
td.MainPageKnowledgeBaseBox h3, | |||
td.MainPageKnowledgeBaseBox h3 .mw-headline, | td.MainPageKnowledgeBaseBox h3 .mw-headline, | ||
td.MainPageKnowledgeBaseBox h3 span { | |||
td | |||
.MainPageKnowledgeBaseBox h3 span { | |||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
/* What's new | /* ---- What's new (blue) ---- */ | ||
td.MainPageWhatsNewBox, | td.MainPageWhatsNewBox, | ||
.MainPageWhatsNewBox { | .MainPageWhatsNewBox, | ||
background: # | .mp-whatsnew { | ||
background: #E3E8F2 !important; | |||
border: 1px solid #1C58A3 !important; | border: 1px solid #1C58A3 !important; | ||
vertical-align: top; | vertical-align: top; | ||
padding: | padding: 0 !important; | ||
} | } | ||
td.MainPageWhatsNewBox > h3, | td.MainPageWhatsNewBox > h3, | ||
td.MainPageWhatsNewBox h3, | |||
.MainPageWhatsNewBox > h3, | .MainPageWhatsNewBox > h3, | ||
.MainPageWhatsNewBox h3 { | .MainPageWhatsNewBox h3, | ||
.mp-whatsnew-header { | |||
background: #1C58A3 !important; | background: #1C58A3 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
margin: | margin: 0 !important; | ||
padding: | padding: 4px 8px !important; | ||
font-size: 125% !important; | font-size: 125% !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
| Line 50: | Line 54: | ||
} | } | ||
td.MainPageWhatsNewBox h3, | |||
td.MainPageWhatsNewBox h3 .mw-headline, | td.MainPageWhatsNewBox h3 .mw-headline, | ||
td.MainPageWhatsNewBox h3 span, | |||
.MainPageWhatsNewBox h3, | |||
.MainPageWhatsNewBox h3 .mw-headline, | .MainPageWhatsNewBox h3 .mw-headline, | ||
.MainPageWhatsNewBox h3 span { | .MainPageWhatsNewBox h3 span { | ||
color: #ffffff !important; | color: #ffffff !important; | ||
} | } | ||
/* | /* ---- Featured content (pink/red) — only the full-width DIV uses this class ---- */ | ||
.MainPageKnowledgeBaseBox | div.MainPageKnowledgeBaseBox, | ||
. | .mp-featured { | ||
.MainPageKnowledgeBaseBox | background: #FFE9E5 !important; | ||
. | border: 1px solid #A50901 !important; | ||
padding- | margin: 0 0 0.5em 0 !important; | ||
padding: 0 !important; | |||
overflow: hidden; | |||
} | |||
div.MainPageKnowledgeBaseBox > h3, | |||
div.MainPageKnowledgeBaseBox h3, | |||
.mp-featured-header { | |||
background: #A50901 !important; | |||
color: #ffffff !important; | |||
margin: 0 !important; | |||
padding: 4px 8px !important; | |||
font-size: 125% !important; | |||
font-weight: bold !important; | |||
border: none !important; | |||
} | } | ||
.MainPageKnowledgeBaseBox | div.MainPageKnowledgeBaseBox h3, | ||
. | div.MainPageKnowledgeBaseBox h3 .mw-headline, | ||
. | div.MainPageKnowledgeBaseBox h3 span { | ||
color: #ffffff !important; | |||
} | } | ||
/* | /* Body padding inside colored boxes */ | ||
.MainPageKnowledgeBaseBox | td.MainPageKnowledgeBaseBox > div, | ||
td.MainPageKnowledgeBaseBox > p, | |||
td.MainPageWhatsNewBox > div, | |||
td.MainPageWhatsNewBox > p, | |||
div.MainPageKnowledgeBaseBox > div, | |||
div.MainPageKnowledgeBaseBox > p, | |||
.mp-content { | |||
padding-left: 8px !important; | |||
padding-right: 8px !important; | |||
padding-bottom: 4px; | |||
} | } | ||
/* What's-new | td.MainPageWhatsNewBox > p:first-of-type, | ||
td.MainPageWhatsNewBox h3 + p { | |||
padding-top: 4px; | |||
} | |||
/* Date headers inside What's new */ | |||
td.MainPageWhatsNewBox h4, | |||
.MainPageWhatsNewBox h4 { | |||
margin: 0.6em 8px 0.2em 8px !important; | |||
padding: 0 !important; | |||
border: none !important; | |||
font-size: 110% !important; | |||
background: transparent !important; | |||
color: #000 !important; | |||
} | |||
td.MainPageWhatsNewBox ul, | |||
.MainPageWhatsNewBox ul { | |||
margin: 0.2em 8px 0.4em 1.5em !important; | |||
} | |||
/* Thumbnail frames in What's new */ | |||
.iconlist { | .iconlist { | ||
line-height: 1.4; | line-height: 1.4; | ||
| Line 83: | Line 131: | ||
.iconlist a { | .iconlist a { | ||
text-decoration: none; | text-decoration: none; | ||
} | |||
.mp-whatsnewimage { | |||
float: right; | |||
border: 1px solid #1C58A3; | |||
margin: 4px 0 4px 6px; | |||
} | } | ||
/* "view" / "watch" | /* "view" / "watch" chips */ | ||
.hovul { | .hovul { | ||
font-size: smaller; | font-size: smaller; | ||
| Line 100: | Line 153: | ||
} | } | ||
/* Main page table | /* Main page two-column table */ | ||
#bodyContent table[cellspacing="8"], | #bodyContent table[cellspacing="8"], | ||
.mw-parser-output table[cellspacing="8"] { | .mw-parser-output table[cellspacing="8"] { | ||
width: 100%; | width: 100%; | ||
border-collapse: separate; | border-collapse: separate !important; | ||
border-spacing: 8px; | border-spacing: 8px !important; | ||
} | } | ||
/* | /* Hide edit section links on main boxes */ | ||
.MainPageKnowledgeBaseBox .mw-editsection, | .MainPageKnowledgeBaseBox .mw-editsection, | ||
.MainPageWhatsNewBox .mw-editsection { | .MainPageWhatsNewBox .mw-editsection { | ||
| Line 115: | Line 167: | ||
} | } | ||
/* | /* Legacy mp-* helpers (older snapshots) */ | ||
. | .mp-table { margin-top: 8px; } | ||
.mp-header { background: #FFF; padding: 0 8px 4px; text-align: center; } | |||
.mp-languages { | |||
background: #FFC; | |||
border: 2px solid #FC0; | |||
padding: 0 8px; | |||
text-align: center; | |||
font-size: smaller; | |||
} | |||
.mp-donations { | |||
background: #FFF7CB; | |||
border: 1px solid #FFAD80; | |||
padding: 0 8px 4px; | |||
} | } | ||
.mp-welcome { font-size: 160%; margin-top: 8px; } | |||
.mp-browsetext { font-size: 90%; line-height: 100%; } | |||
.mp-featuredimage { float: left; padding: 8px 12px 0 0; } | |||
/* also ensure interwiki links readable */ | |||
.mw-parser-output a.extiw { color: #3366bb; } | |||
Latest revision as of 02:46, 14 July 2026
/* HR Wiki original mainpagestyles.css — mapped to 2024 class names
Colors from archived hrwiki.org/temporary_files/mainpagestyles.css */
/* ---- Browse the knowledge base (green) ---- */
td.MainPageKnowledgeBaseBox,
.mp-browse {
background: #DEF0CF !important;
border: 1px solid #608050 !important;
vertical-align: top;
padding: 0 !important;
}
td.MainPageKnowledgeBaseBox > h3,
td.MainPageKnowledgeBaseBox h3,
.mp-browse-header {
background: #608050 !important;
color: #ffffff !important;
margin: 0 !important;
padding: 4px 8px !important;
font-size: 125% !important;
font-weight: bold !important;
border: none !important;
border-bottom: none !important;
}
td.MainPageKnowledgeBaseBox h3,
td.MainPageKnowledgeBaseBox h3 .mw-headline,
td.MainPageKnowledgeBaseBox h3 span {
color: #ffffff !important;
}
/* ---- What's new (blue) ---- */
td.MainPageWhatsNewBox,
.MainPageWhatsNewBox,
.mp-whatsnew {
background: #E3E8F2 !important;
border: 1px solid #1C58A3 !important;
vertical-align: top;
padding: 0 !important;
}
td.MainPageWhatsNewBox > h3,
td.MainPageWhatsNewBox h3,
.MainPageWhatsNewBox > h3,
.MainPageWhatsNewBox h3,
.mp-whatsnew-header {
background: #1C58A3 !important;
color: #ffffff !important;
margin: 0 !important;
padding: 4px 8px !important;
font-size: 125% !important;
font-weight: bold !important;
border: none !important;
}
td.MainPageWhatsNewBox h3,
td.MainPageWhatsNewBox h3 .mw-headline,
td.MainPageWhatsNewBox h3 span,
.MainPageWhatsNewBox h3,
.MainPageWhatsNewBox h3 .mw-headline,
.MainPageWhatsNewBox h3 span {
color: #ffffff !important;
}
/* ---- Featured content (pink/red) — only the full-width DIV uses this class ---- */
div.MainPageKnowledgeBaseBox,
.mp-featured {
background: #FFE9E5 !important;
border: 1px solid #A50901 !important;
margin: 0 0 0.5em 0 !important;
padding: 0 !important;
overflow: hidden;
}
div.MainPageKnowledgeBaseBox > h3,
div.MainPageKnowledgeBaseBox h3,
.mp-featured-header {
background: #A50901 !important;
color: #ffffff !important;
margin: 0 !important;
padding: 4px 8px !important;
font-size: 125% !important;
font-weight: bold !important;
border: none !important;
}
div.MainPageKnowledgeBaseBox h3,
div.MainPageKnowledgeBaseBox h3 .mw-headline,
div.MainPageKnowledgeBaseBox h3 span {
color: #ffffff !important;
}
/* Body padding inside colored boxes */
td.MainPageKnowledgeBaseBox > div,
td.MainPageKnowledgeBaseBox > p,
td.MainPageWhatsNewBox > div,
td.MainPageWhatsNewBox > p,
div.MainPageKnowledgeBaseBox > div,
div.MainPageKnowledgeBaseBox > p,
.mp-content {
padding-left: 8px !important;
padding-right: 8px !important;
padding-bottom: 4px;
}
td.MainPageWhatsNewBox > p:first-of-type,
td.MainPageWhatsNewBox h3 + p {
padding-top: 4px;
}
/* Date headers inside What's new */
td.MainPageWhatsNewBox h4,
.MainPageWhatsNewBox h4 {
margin: 0.6em 8px 0.2em 8px !important;
padding: 0 !important;
border: none !important;
font-size: 110% !important;
background: transparent !important;
color: #000 !important;
}
td.MainPageWhatsNewBox ul,
.MainPageWhatsNewBox ul {
margin: 0.2em 8px 0.4em 1.5em !important;
}
/* Thumbnail frames in What's new */
.iconlist {
line-height: 1.4;
}
.iconlist a {
text-decoration: none;
}
.mp-whatsnewimage {
float: right;
border: 1px solid #1C58A3;
margin: 4px 0 4px 6px;
}
/* "view" / "watch" chips */
.hovul {
font-size: smaller;
background: #EEE;
border: 1px solid #999;
padding: 2px 0.5em;
white-space: nowrap;
}
.hovul a {
text-decoration: none;
}
.hovul a:hover {
text-decoration: underline;
}
/* Main page two-column table */
#bodyContent table[cellspacing="8"],
.mw-parser-output table[cellspacing="8"] {
width: 100%;
border-collapse: separate !important;
border-spacing: 8px !important;
}
/* Hide edit section links on main boxes */
.MainPageKnowledgeBaseBox .mw-editsection,
.MainPageWhatsNewBox .mw-editsection {
display: none !important;
}
/* Legacy mp-* helpers (older snapshots) */
.mp-table { margin-top: 8px; }
.mp-header { background: #FFF; padding: 0 8px 4px; text-align: center; }
.mp-languages {
background: #FFC;
border: 2px solid #FC0;
padding: 0 8px;
text-align: center;
font-size: smaller;
}
.mp-donations {
background: #FFF7CB;
border: 1px solid #FFAD80;
padding: 0 8px 4px;
}
.mp-welcome { font-size: 160%; margin-top: 8px; }
.mp-browsetext { font-size: 90%; line-height: 100%; }
.mp-featuredimage { float: left; padding: 8px 12px 0 0; }
/* also ensure interwiki links readable */
.mw-parser-output a.extiw { color: #3366bb; }