MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
layout |
layout/expansions |
||
| Line 1: | Line 1: | ||
/* | /* Compact Vector 2010: logo in top bar, search after Discussion, no wasted gap. */ | ||
body.mediawiki { | body.mediawiki { | ||
background: #f6f6f6 !important; | background: #f6f6f6 !important; | ||
font-size: 0. | font-size: 0.92em; | ||
} | } | ||
body.mediawiki .swccg-header, | body.mediawiki .swccg-header, | ||
body.mediawiki .swccg-footer, | body.mediawiki .swccg-footer, | ||
body.mediawiki #siteNotice { | body.mediawiki #siteNotice, | ||
#mw-indicator-mw-helplink { | |||
display: none !important; | display: none !important; | ||
} | } | ||
# | #footer-icons, | ||
#mw- | #footer-poweredbyico, | ||
li#footer-poweredbyico, | |||
.mw-wiki-poweredbyico { | |||
display: none !important; | |||
} | } | ||
#mw- | /* Collapse the 5em Vector header stack into one 44px bar */ | ||
#mw-page-base { | |||
height: 44px !important; | |||
background: #ffffff !important; | background: #ffffff !important; | ||
border-bottom: 1px solid #a7d7f9; | |||
margin: 0 !important; | |||
} | } | ||
#mw-head-base { | |||
#mw- | height: 0 !important; | ||
margin: 0 !important; | |||
margin-left: 10em !important; | |||
background: transparent !important; | |||
} | } | ||
#mw-head { | |||
#mw- | height: 44px; | ||
} | } | ||
#p-logo { | /* Logo sits in the top-left of the top bar (JS also moves #p-logo into #mw-head) */ | ||
height: | #p-logo, | ||
margin- | #mw-head #p-logo, | ||
#mw-panel #p-logo { | |||
position: absolute !important; | |||
top: 0 !important; | |||
left: 0 !important; | |||
width: 11.5em !important; | |||
height: 44px !important; | |||
margin: 0 !important; | |||
z-index: 40; | |||
} | } | ||
#p-logo a.mw-wiki-logo { | #p-logo a.mw-wiki-logo { | ||
background-image: url(/resources/assets/swccg-wiki-logo.png?v= | background-image: url(/resources/assets/swccg-wiki-logo.png?v=6) !important; | ||
background-size: contain !important; | background-size: contain !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
background-position: center | background-position: left center !important; | ||
width: | width: 11.5em !important; | ||
height: | height: 42px !important; | ||
margin: 1px 0 0 6px !important; | |||
} | } | ||
#left-navigation { | |||
#left-navigation | margin-left: 11.5em !important; | ||
margin-top: 8px !important; | |||
float: left; | |||
} | |||
#right-navigation { | #right-navigation { | ||
margin-top: 0. | margin-top: 8px !important; | ||
} | |||
#p-personal { | |||
top: 2px !important; | |||
font-size: 0.85em; | |||
} | |||
/* Search lives immediately after Discussion (JS moves #p-search) */ | |||
#left-navigation #p-search, | |||
#p-namespaces + #p-search { | |||
float: left !important; | |||
margin: 0 0 0 0.55em !important; | |||
padding: 0 !important; | |||
} | |||
#p-search #simpleSearch, | |||
#p-search form, | |||
#simpleSearch { | |||
margin: 0 !important; | |||
height: 1.7em !important; | |||
} | |||
#simpleSearch input { | |||
height: 1.55em !important; | |||
font-size: 0.9em !important; | |||
} | } | ||
.vector-menu-tabs, | .vector-menu-tabs, | ||
.vector-menu-tabs-legacy { | .vector-menu-tabs-legacy { | ||
| Line 58: | Line 95: | ||
padding-top: 0 !important; | padding-top: 0 !important; | ||
height: auto !important; | height: auto !important; | ||
background-image: none !important; | |||
} | } | ||
.vector-menu-tabs ul { | .vector-menu-tabs ul { | ||
height: auto !important; | height: auto !important; | ||
background-image: none !important; | |||
} | } | ||
.vector-menu-tabs li { | .vector-menu-tabs li { | ||
| Line 67: | Line 106: | ||
padding: 0 !important; | padding: 0 !important; | ||
background: #f3f3f3 !important; | background: #f3f3f3 !important; | ||
background-image: none !important; | |||
font-size: 0.8em !important; | font-size: 0.8em !important; | ||
line-height: 1.15 !important; | line-height: 1.15 !important; | ||
} | |||
.vector-menu-tabs li.selected { | |||
background: #ffffff !important; | |||
} | } | ||
.vector-menu-tabs li a, | .vector-menu-tabs li a, | ||
.vector-menu-tabs li a span { | .vector-menu-tabs li a span { | ||
padding: 0. | padding: 0.18em 0.55em !important; | ||
line-height: 1.15 !important; | line-height: 1.15 !important; | ||
background-image: none !important; | |||
} | } | ||
#p-namespaces .vector-menu-heading, | #p-namespaces .vector-menu-heading, | ||
#p-views .vector-menu-heading { | #p-views .vector-menu-heading, | ||
#p-search .vector-menu-heading { | |||
display: none; | display: none; | ||
} | |||
/* Sidebar starts under the 44px bar — Main Page / Recent changes / Random sit up top */ | |||
#mw-panel, | |||
.vector-legacy-sidebar { | |||
background: #ffffff !important; | |||
top: 44px !important; | |||
padding-top: 0.35em; | |||
} | |||
#mw-panel #p-logo { | |||
/* when JS has not yet moved it, still pin to the top bar */ | |||
top: -44px !important; | |||
} | |||
#mw-panel .vector-menu-heading, | |||
#mw-panel .vector-menu-heading-label { | |||
color: #54595d; | |||
font-size: 0.8em; | |||
} | |||
#mw-panel a { | |||
color: #0645ad; | |||
} | } | ||
#content { | #content { | ||
margin-top: 0. | margin-top: 0 !important; | ||
padding-top: 0.45em; | |||
background: #fff; | background: #fff; | ||
border: 1px solid #a7d7f9; | border: 1px solid #a7d7f9; | ||
padding: | border-top: none; | ||
padding-left: 1em; | |||
padding-right: 1em; | |||
padding-bottom: 1.2em; | |||
} | } | ||
#firstHeading { | #firstHeading { | ||
margin-top: 0. | margin-top: 0.1em; | ||
margin-bottom: 0. | margin-bottom: 0.2em; | ||
font-size: 1. | font-size: 1.55em; | ||
border-bottom: 1px solid #a2a9b1; | border-bottom: 1px solid #a2a9b1; | ||
padding-bottom: 0. | padding-bottom: 0.08em; | ||
} | } | ||
#siteSub { | #siteSub, | ||
#contentSub, | |||
#contentSub2 { | |||
display: none; | display: none; | ||
} | } | ||
| Line 117: | Line 188: | ||
.set-tile { | .set-tile { | ||
display: inline-block; | display: inline-block; | ||
width: | width: 148px; | ||
margin: 0. | margin: 0.25em 0.4em 0.7em; | ||
text-align: center; | text-align: center; | ||
vertical-align: top; | vertical-align: top; | ||
font-size: 0. | font-size: 0.8em; | ||
line-height: 1.25; | |||
} | } | ||
.set-tile img { | .set-tile img { | ||
width: | width: 142px; | ||
height: | height: 92px; | ||
object-fit: | object-fit: contain; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
background: # | background: #1a1a1a; | ||
} | } | ||
.set-tile .set-name { | .set-tile .set-name { | ||
display: block; | display: block; | ||
margin-top: 0. | margin-top: 0.2em; | ||
} | |||
.set-tile .set-meta { | |||
display: block; | |||
color: #54595d; | |||
font-size: 0.92em; | |||
} | |||
.expansion-infobox { | |||
float: right; | |||
clear: right; | |||
width: 280px; | |||
margin: 0 0 1em 1em; | |||
} | } | ||
Revision as of 23:19, 20 September 2026
/* Compact Vector 2010: logo in top bar, search after Discussion, no wasted gap. */
body.mediawiki {
background: #f6f6f6 !important;
font-size: 0.92em;
}
body.mediawiki .swccg-header,
body.mediawiki .swccg-footer,
body.mediawiki #siteNotice,
#mw-indicator-mw-helplink {
display: none !important;
}
#footer-icons,
#footer-poweredbyico,
li#footer-poweredbyico,
.mw-wiki-poweredbyico {
display: none !important;
}
/* Collapse the 5em Vector header stack into one 44px bar */
#mw-page-base {
height: 44px !important;
background: #ffffff !important;
border-bottom: 1px solid #a7d7f9;
margin: 0 !important;
}
#mw-head-base {
height: 0 !important;
margin: 0 !important;
margin-left: 10em !important;
background: transparent !important;
}
#mw-head {
height: 44px;
}
/* Logo sits in the top-left of the top bar (JS also moves #p-logo into #mw-head) */
#p-logo,
#mw-head #p-logo,
#mw-panel #p-logo {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 11.5em !important;
height: 44px !important;
margin: 0 !important;
z-index: 40;
}
#p-logo a.mw-wiki-logo {
background-image: url(/resources/assets/swccg-wiki-logo.png?v=6) !important;
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: left center !important;
width: 11.5em !important;
height: 42px !important;
margin: 1px 0 0 6px !important;
}
#left-navigation {
margin-left: 11.5em !important;
margin-top: 8px !important;
float: left;
}
#right-navigation {
margin-top: 8px !important;
}
#p-personal {
top: 2px !important;
font-size: 0.85em;
}
/* Search lives immediately after Discussion (JS moves #p-search) */
#left-navigation #p-search,
#p-namespaces + #p-search {
float: left !important;
margin: 0 0 0 0.55em !important;
padding: 0 !important;
}
#p-search #simpleSearch,
#p-search form,
#simpleSearch {
margin: 0 !important;
height: 1.7em !important;
}
#simpleSearch input {
height: 1.55em !important;
font-size: 0.9em !important;
}
.vector-menu-tabs,
.vector-menu-tabs-legacy {
background: transparent !important;
padding-top: 0 !important;
height: auto !important;
background-image: none !important;
}
.vector-menu-tabs ul {
height: auto !important;
background-image: none !important;
}
.vector-menu-tabs li {
height: auto !important;
margin: 0 1px 0 0 !important;
padding: 0 !important;
background: #f3f3f3 !important;
background-image: none !important;
font-size: 0.8em !important;
line-height: 1.15 !important;
}
.vector-menu-tabs li.selected {
background: #ffffff !important;
}
.vector-menu-tabs li a,
.vector-menu-tabs li a span {
padding: 0.18em 0.55em !important;
line-height: 1.15 !important;
background-image: none !important;
}
#p-namespaces .vector-menu-heading,
#p-views .vector-menu-heading,
#p-search .vector-menu-heading {
display: none;
}
/* Sidebar starts under the 44px bar — Main Page / Recent changes / Random sit up top */
#mw-panel,
.vector-legacy-sidebar {
background: #ffffff !important;
top: 44px !important;
padding-top: 0.35em;
}
#mw-panel #p-logo {
/* when JS has not yet moved it, still pin to the top bar */
top: -44px !important;
}
#mw-panel .vector-menu-heading,
#mw-panel .vector-menu-heading-label {
color: #54595d;
font-size: 0.8em;
}
#mw-panel a {
color: #0645ad;
}
#content {
margin-top: 0 !important;
padding-top: 0.45em;
background: #fff;
border: 1px solid #a7d7f9;
border-top: none;
padding-left: 1em;
padding-right: 1em;
padding-bottom: 1.2em;
}
#firstHeading {
margin-top: 0.1em;
margin-bottom: 0.2em;
font-size: 1.55em;
border-bottom: 1px solid #a2a9b1;
padding-bottom: 0.08em;
}
#siteSub,
#contentSub,
#contentSub2 {
display: none;
}
.page-Main_Page #toc,
.page-Main_Page .toc,
.page-Main_Page .flaggedrevs_short,
.page-Main_Page #mw-fr-revision-details,
.page-Main_Page .mw-fr-revision-details,
.page-Main_Page .mw-fr-reviewNotice {
display: none !important;
}
.page-Main_Page .mw-parser-output .wikitable {
margin-left: auto;
margin-right: auto;
}
.page-Main_Page .mw-parser-output .wikitable th,
.page-Main_Page .mw-parser-output .wikitable td {
vertical-align: top;
}
.set-tile {
display: inline-block;
width: 148px;
margin: 0.25em 0.4em 0.7em;
text-align: center;
vertical-align: top;
font-size: 0.8em;
line-height: 1.25;
}
.set-tile img {
width: 142px;
height: 92px;
object-fit: contain;
border: 1px solid #ccc;
background: #1a1a1a;
}
.set-tile .set-name {
display: block;
margin-top: 0.2em;
}
.set-tile .set-meta {
display: block;
color: #54595d;
font-size: 0.92em;
}
.expansion-infobox {
float: right;
clear: right;
width: 280px;
margin: 0 0 1em 1em;
}