MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
compact-search |
header/premiere thumbs |
||
| Line 1: | Line 1: | ||
/* | /* Wikipedia-style header: logo top-left, search to its right, account links clear on the far right. */ | ||
body.mediawiki { | body.mediawiki { | ||
| Line 20: | Line 20: | ||
} | } | ||
/* | /* Two-row header: 48px logo/search/account, then compact tabs */ | ||
#mw-page-base { | #mw-page-base { | ||
height: | height: 76px !important; | ||
background: #ffffff !important; | background: #ffffff !important; | ||
border-bottom: 1px solid #a7d7f9; | border-bottom: 1px solid #a7d7f9; | ||
| Line 34: | Line 34: | ||
} | } | ||
#mw-head { | #mw-head { | ||
height: | height: 76px; | ||
} | } | ||
#p-logo, | #p-logo, | ||
#mw-head #p-logo, | #mw-head #p-logo, | ||
| Line 44: | Line 43: | ||
top: 0 !important; | top: 0 !important; | ||
left: 0 !important; | left: 0 !important; | ||
width: | width: 160px !important; | ||
height: | height: 48px !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
z-index: 40; | 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=7) !important; | ||
background-size: contain !important; | background-size: contain !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
background-position: left center !important; | background-position: left center !important; | ||
width: | width: 150px !important; | ||
height: | height: 44px !important; | ||
margin: | margin: 2px 0 0 8px !important; | ||
} | } | ||
# | /* Search sits immediately right of the logo — never over Create account / Log in */ | ||
#p-search { | |||
position: absolute !important; | |||
left: 160px !important; | |||
top: 8px !important; | |||
width: 22em !important; | |||
max-width: calc(100% - 160px - 20em) !important; | |||
margin: 0 !important; | |||
float: none !important; | |||
z-index: 20; | |||
margin: 0 | |||
} | } | ||
#p-search h3, | #p-search h3, | ||
| Line 83: | Line 73: | ||
display: none !important; | display: none !important; | ||
} | } | ||
#p-search form, | #p-search form, | ||
#simpleSearch, | #simpleSearch, | ||
.vector-search-box-input { | .vector-search-box-input { | ||
margin: 0 !important; | margin: 0 !important; | ||
height: | height: 2em !important; | ||
width: 22em !important; | |||
max-width: 100% !important; | |||
} | } | ||
#simpleSearch input, | #simpleSearch input, | ||
#searchInput, | #searchInput, | ||
.vector-search-box-input { | .vector-search-box-input { | ||
height: | height: 2em !important; | ||
font-size: 0. | font-size: 0.95em !important; | ||
width: | width: 22em !important; | ||
max-width: 100% !important; | |||
background: #fff !important; | |||
border: 1px solid #a2a9b1 !important; | |||
} | } | ||
.vector-search-box- | .vector-search-box-auto-expand-width, | ||
padding- | .vector-search-box-show-thumbnail { | ||
width: 22em !important; | |||
max-width: 22em !important; | |||
} | |||
/* Account links stay on the far right of the top row */ | |||
#p-personal { | |||
position: absolute !important; | |||
top: 8px !important; | |||
right: 10px !important; | |||
left: auto !important; | |||
z-index: 80 !important; | |||
background: #ffffff !important; | |||
padding: 2px 6px 2px 10px; | |||
font-size: 0.85em; | |||
white-space: nowrap; | |||
} | |||
#p-personal ul { | |||
padding: 0 !important; | |||
} | |||
#left-navigation { | |||
margin-left: 10em !important; | |||
margin-top: 48px !important; | |||
float: left; | |||
} | |||
#right-navigation { | |||
margin-top: 48px !important; | |||
} | } | ||
| Line 136: | Line 157: | ||
} | } | ||
#mw-panel, | #mw-panel, | ||
.vector-legacy-sidebar { | .vector-legacy-sidebar { | ||
background: #ffffff !important; | background: #ffffff !important; | ||
top: | top: 76px !important; | ||
padding-top: 0.35em; | padding-top: 0.35em; | ||
} | } | ||
#mw-panel #p-logo { | #mw-panel #p-logo { | ||
top: -76px !important; | |||
top: - | |||
} | } | ||
#mw-panel .vector-menu-heading, | #mw-panel .vector-menu-heading, | ||
| Line 191: | Line 210: | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
} | } | ||
.set-tile { | .set-tile { | ||
display: inline-block; | display: inline-block; | ||
width: | width: 168px; | ||
margin: 0. | margin: 0.3em 0.45em 0.85em; | ||
text-align: center; | text-align: center; | ||
vertical-align: top; | vertical-align: top; | ||
| Line 207: | Line 222: | ||
} | } | ||
.set-tile img { | .set-tile img { | ||
width: | width: 160px; | ||
height: | height: 110px; | ||
object-fit: contain; | object-fit: contain; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
background: # | background: #111; | ||
} | } | ||
.set-tile .set-name { | .set-tile .set-name { | ||
display: block; | display: block; | ||
margin-top: 0. | margin-top: 0.25em; | ||
} | } | ||
.set-tile .set-meta { | .set-tile .set-meta { | ||
| Line 228: | Line 243: | ||
width: 280px; | width: 280px; | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
} | |||
table.card-thumbs { | |||
width: 100%; | |||
} | |||
table.card-thumbs td, | |||
table.card-thumbs th { | |||
vertical-align: top; | |||
font-size: 0.88em; | |||
} | |||
table.card-thumbs img { | |||
width: 88px; | |||
height: auto; | |||
} | } | ||
Revision as of 00:00, 21 September 2026
/* Wikipedia-style header: logo top-left, search to its right, account links clear on the far right. */
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;
}
/* Two-row header: 48px logo/search/account, then compact tabs */
#mw-page-base {
height: 76px !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: 76px;
}
#p-logo,
#mw-head #p-logo,
#mw-panel #p-logo {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 160px !important;
height: 48px !important;
margin: 0 !important;
z-index: 40;
}
#p-logo a.mw-wiki-logo {
background-image: url(/resources/assets/swccg-wiki-logo.png?v=7) !important;
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: left center !important;
width: 150px !important;
height: 44px !important;
margin: 2px 0 0 8px !important;
}
/* Search sits immediately right of the logo — never over Create account / Log in */
#p-search {
position: absolute !important;
left: 160px !important;
top: 8px !important;
width: 22em !important;
max-width: calc(100% - 160px - 20em) !important;
margin: 0 !important;
float: none !important;
z-index: 20;
}
#p-search h3,
.vector-search-box h3 {
display: none !important;
}
#p-search form,
#simpleSearch,
.vector-search-box-input {
margin: 0 !important;
height: 2em !important;
width: 22em !important;
max-width: 100% !important;
}
#simpleSearch input,
#searchInput,
.vector-search-box-input {
height: 2em !important;
font-size: 0.95em !important;
width: 22em !important;
max-width: 100% !important;
background: #fff !important;
border: 1px solid #a2a9b1 !important;
}
.vector-search-box-auto-expand-width,
.vector-search-box-show-thumbnail {
width: 22em !important;
max-width: 22em !important;
}
/* Account links stay on the far right of the top row */
#p-personal {
position: absolute !important;
top: 8px !important;
right: 10px !important;
left: auto !important;
z-index: 80 !important;
background: #ffffff !important;
padding: 2px 6px 2px 10px;
font-size: 0.85em;
white-space: nowrap;
}
#p-personal ul {
padding: 0 !important;
}
#left-navigation {
margin-left: 10em !important;
margin-top: 48px !important;
float: left;
}
#right-navigation {
margin-top: 48px !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;
}
#mw-panel,
.vector-legacy-sidebar {
background: #ffffff !important;
top: 76px !important;
padding-top: 0.35em;
}
#mw-panel #p-logo {
top: -76px !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;
}
.set-tile {
display: inline-block;
width: 168px;
margin: 0.3em 0.45em 0.85em;
text-align: center;
vertical-align: top;
font-size: 0.8em;
line-height: 1.25;
}
.set-tile img {
width: 160px;
height: 110px;
object-fit: contain;
border: 1px solid #ccc;
background: #111;
}
.set-tile .set-name {
display: block;
margin-top: 0.25em;
}
.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;
}
table.card-thumbs {
width: 100%;
}
table.card-thumbs td,
table.card-thumbs th {
vertical-align: top;
font-size: 0.88em;
}
table.card-thumbs img {
width: 88px;
height: auto;
}