MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
header/premiere thumbs |
logo/search/main h1 |
||
| Line 1: | Line 1: | ||
/* | /* Logo centered over the left sidebar; search in the header to its right. */ | ||
body.mediawiki { | body.mediawiki { | ||
| Line 20: | Line 20: | ||
} | } | ||
#mw-page-base { | #mw-page-base { | ||
height: | height: 72px !important; | ||
background: #ffffff !important; | background: #ffffff !important; | ||
border-bottom: 1px solid #a7d7f9; | border-bottom: 1px solid #a7d7f9; | ||
margin: 0 !important; | margin: 0 !important; | ||
margin-left: 11em !important; | |||
} | } | ||
#mw-head-base { | #mw-head-base { | ||
height: 0 !important; | height: 0 !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
margin-left: | margin-left: 11em !important; | ||
background: transparent !important; | background: transparent !important; | ||
} | } | ||
/* Header starts AFTER the sidebar so it never covers the logo */ | |||
#mw-head { | #mw-head { | ||
height: | left: 11em !important; | ||
right: 0 !important; | |||
width: auto !important; | |||
height: 72px; | |||
} | } | ||
/* Bigger logo, centered in the sidebar column */ | |||
#p-logo, | #p-logo, | ||
#mw-panel #p-logo { | #mw-panel #p-logo { | ||
position: | position: relative !important; | ||
top: 0 !important; | top: 0 !important; | ||
left: 0 !important; | left: 0 !important; | ||
width: | width: 11em !important; | ||
height: | height: 130px !important; | ||
margin: 0 !important; | margin: 0 auto !important; | ||
z-index: | z-index: 20; | ||
} | } | ||
#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=8) !important; | ||
background-size: contain !important; | background-size: contain !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
background-position: | background-position: center center !important; | ||
width: | width: 11em !important; | ||
height: | height: 124px !important; | ||
margin: | margin: 4px auto 0 !important; | ||
} | } | ||
/* Search | /* Search immediately right of the logo column — text field only, no overlay buttons */ | ||
#p-search { | #p-search { | ||
position: absolute !important; | position: absolute !important; | ||
left: | left: 8px !important; | ||
top: | top: 10px !important; | ||
width: 24em !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
float: none !important; | float: none !important; | ||
z-index: 20; | z-index: 20; | ||
background: transparent !important; | |||
} | } | ||
#p-search h3, | #p-search h3, | ||
| Line 73: | Line 78: | ||
display: none !important; | display: none !important; | ||
} | } | ||
# | #searchform, | ||
#simpleSearch, | #simpleSearch, | ||
.vector-search-box- | .vector-search-box-inner { | ||
position: relative !important; | |||
width: 24em !important; | |||
height: 2.1em !important; | |||
background: transparent !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
height: | } | ||
width: | #searchInput { | ||
position: relative !important; | |||
z-index: 3 !important; | |||
height: 2.1em !important; | |||
width: 24em !important; | |||
max-width: 100% !important; | max-width: 100% !important; | ||
font-size: 0.95em !important; | font-size: 0.95em !important; | ||
background: #fff !important; | background: #fff !important; | ||
border: 1px solid #a2a9b1 !important; | border: 1px solid #a2a9b1 !important; | ||
padding: 0 2.2em 0 0.5em !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
/* Hide the giant white Search/Go buttons that sat on top of the field */ | |||
#searchButton, | |||
#mw-searchButton, | |||
.searchButton { | |||
position: absolute !important; | |||
top: 2px !important; | |||
right: 2px !important; | |||
width: 1.9em !important; | |||
height: 1.9em !important; | |||
min-width: 0 !important; | |||
padding: 0 !important; | |||
text-indent: -9999px !important; | |||
overflow: hidden !important; | |||
border: 0 !important; | |||
background: transparent url(/resources/assets/swccg-wiki-logo.png?v=8) no-repeat !important; | |||
background-size: 0 !important; | |||
cursor: pointer !important; | |||
z-index: 4; | |||
} | |||
#mw-searchButton { | |||
display: none !important; | |||
} | |||
#searchButton { | |||
background: #f8f9fa !important; | |||
border: 1px solid #a2a9b1 !important; | |||
text-indent: 0 !important; | |||
font-size: 0.75em !important; | |||
color: #202122 !important; | |||
width: auto !important; | |||
padding: 0 0.45em !important; | |||
} | |||
.vector-search-box-auto-expand-width, | .vector-search-box-auto-expand-width, | ||
.vector-search-box-show-thumbnail { | .vector-search-box-show-thumbnail { | ||
width: | width: 24em !important; | ||
max-width: | max-width: 24em !important; | ||
} | |||
.vector-search-box-show-thumbnail .vector-search-box-input { | |||
padding-left: 0.5em !important; | |||
background-image: none !important; | |||
} | } | ||
#p-personal { | #p-personal { | ||
position: absolute !important; | position: absolute !important; | ||
top: | top: 10px !important; | ||
right: 10px !important; | right: 10px !important; | ||
left: auto !important; | left: auto !important; | ||
| Line 108: | Line 151: | ||
font-size: 0.85em; | font-size: 0.85em; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
#left-navigation { | #left-navigation { | ||
margin-left: | margin-left: 0 !important; | ||
margin-top: | margin-top: 42px !important; | ||
float: left; | float: left; | ||
} | } | ||
#right-navigation { | #right-navigation { | ||
margin-top: | margin-top: 42px !important; | ||
} | } | ||
| Line 160: | Line 200: | ||
.vector-legacy-sidebar { | .vector-legacy-sidebar { | ||
background: #ffffff !important; | background: #ffffff !important; | ||
top: | top: 0 !important; | ||
width: 11em !important; | |||
z-index: 12; | |||
padding-top: 0; | |||
top: | |||
} | } | ||
#mw-panel .vector-menu-heading, | #mw-panel .vector-menu-heading, | ||
| Line 177: | Line 216: | ||
#content { | #content { | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
margin-left: 11em !important; | |||
padding-top: 0.45em; | padding-top: 0.45em; | ||
background: #fff; | background: #fff; | ||
| Line 187: | Line 227: | ||
#firstHeading { | #firstHeading { | ||
margin-top: 0.1em; | margin-top: 0.1em; | ||
margin-bottom: 0. | margin-bottom: 0.25em; | ||
font-size: 1.55em; | font-size: 1.55em; | ||
border-bottom: 1px solid #a2a9b1; | border-bottom: 1px solid #a2a9b1; | ||
padding-bottom: 0.08em; | padding-bottom: 0.08em; | ||
} | |||
.page-Main_Page #firstHeading { | |||
display: none !important; | |||
} | } | ||
#siteSub, | #siteSub, | ||
| Line 205: | Line 248: | ||
.page-Main_Page .mw-fr-reviewNotice { | .page-Main_Page .mw-fr-reviewNotice { | ||
display: none !important; | display: none !important; | ||
} | } | ||
| Line 247: | Line 285: | ||
table.card-thumbs { | table.card-thumbs { | ||
width: 100%; | width: 100%; | ||
overflow: visible; | |||
} | } | ||
table.card-thumbs td, | table.card-thumbs td, | ||
| Line 252: | Line 291: | ||
vertical-align: top; | vertical-align: top; | ||
font-size: 0.88em; | font-size: 0.88em; | ||
overflow: visible; | |||
} | |||
table.card-thumbs td:first-child { | |||
width: 100px; | |||
overflow: visible; | |||
} | } | ||
table.card-thumbs img { | table.card-thumbs img { | ||
width: 88px; | width: 88px; | ||
height: auto; | height: auto; | ||
vertical-align: top; | |||
transition: transform 0.12s ease; | |||
} | |||
table.card-thumbs a { | |||
display: inline-block; | |||
} | |||
table.card-thumbs a:hover { | |||
position: relative; | |||
z-index: 60; | |||
} | |||
table.card-thumbs a:hover img { | |||
transform: scale(3.1); | |||
transform-origin: left top; | |||
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); | |||
background: #111; | |||
outline: 2px solid #fff; | |||
} | } | ||
Revision as of 00:34, 21 September 2026
/* Logo centered over the left sidebar; search in the header to its 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;
}
#mw-page-base {
height: 72px !important;
background: #ffffff !important;
border-bottom: 1px solid #a7d7f9;
margin: 0 !important;
margin-left: 11em !important;
}
#mw-head-base {
height: 0 !important;
margin: 0 !important;
margin-left: 11em !important;
background: transparent !important;
}
/* Header starts AFTER the sidebar so it never covers the logo */
#mw-head {
left: 11em !important;
right: 0 !important;
width: auto !important;
height: 72px;
}
/* Bigger logo, centered in the sidebar column */
#p-logo,
#mw-panel #p-logo {
position: relative !important;
top: 0 !important;
left: 0 !important;
width: 11em !important;
height: 130px !important;
margin: 0 auto !important;
z-index: 20;
}
#p-logo a.mw-wiki-logo {
background-image: url(/resources/assets/swccg-wiki-logo.png?v=8) !important;
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: center center !important;
width: 11em !important;
height: 124px !important;
margin: 4px auto 0 !important;
}
/* Search immediately right of the logo column — text field only, no overlay buttons */
#p-search {
position: absolute !important;
left: 8px !important;
top: 10px !important;
width: 24em !important;
margin: 0 !important;
float: none !important;
z-index: 20;
background: transparent !important;
}
#p-search h3,
.vector-search-box h3 {
display: none !important;
}
#searchform,
#simpleSearch,
.vector-search-box-inner {
position: relative !important;
width: 24em !important;
height: 2.1em !important;
background: transparent !important;
margin: 0 !important;
}
#searchInput {
position: relative !important;
z-index: 3 !important;
height: 2.1em !important;
width: 24em !important;
max-width: 100% !important;
font-size: 0.95em !important;
background: #fff !important;
border: 1px solid #a2a9b1 !important;
padding: 0 2.2em 0 0.5em !important;
box-sizing: border-box !important;
}
/* Hide the giant white Search/Go buttons that sat on top of the field */
#searchButton,
#mw-searchButton,
.searchButton {
position: absolute !important;
top: 2px !important;
right: 2px !important;
width: 1.9em !important;
height: 1.9em !important;
min-width: 0 !important;
padding: 0 !important;
text-indent: -9999px !important;
overflow: hidden !important;
border: 0 !important;
background: transparent url(/resources/assets/swccg-wiki-logo.png?v=8) no-repeat !important;
background-size: 0 !important;
cursor: pointer !important;
z-index: 4;
}
#mw-searchButton {
display: none !important;
}
#searchButton {
background: #f8f9fa !important;
border: 1px solid #a2a9b1 !important;
text-indent: 0 !important;
font-size: 0.75em !important;
color: #202122 !important;
width: auto !important;
padding: 0 0.45em !important;
}
.vector-search-box-auto-expand-width,
.vector-search-box-show-thumbnail {
width: 24em !important;
max-width: 24em !important;
}
.vector-search-box-show-thumbnail .vector-search-box-input {
padding-left: 0.5em !important;
background-image: none !important;
}
#p-personal {
position: absolute !important;
top: 10px !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;
}
#left-navigation {
margin-left: 0 !important;
margin-top: 42px !important;
float: left;
}
#right-navigation {
margin-top: 42px !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: 0 !important;
width: 11em !important;
z-index: 12;
padding-top: 0;
}
#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;
margin-left: 11em !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.25em;
font-size: 1.55em;
border-bottom: 1px solid #a2a9b1;
padding-bottom: 0.08em;
}
.page-Main_Page #firstHeading {
display: none !important;
}
#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;
}
.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%;
overflow: visible;
}
table.card-thumbs td,
table.card-thumbs th {
vertical-align: top;
font-size: 0.88em;
overflow: visible;
}
table.card-thumbs td:first-child {
width: 100px;
overflow: visible;
}
table.card-thumbs img {
width: 88px;
height: auto;
vertical-align: top;
transition: transform 0.12s ease;
}
table.card-thumbs a {
display: inline-block;
}
table.card-thumbs a:hover {
position: relative;
z-index: 60;
}
table.card-thumbs a:hover img {
transform: scale(3.1);
transform-origin: left top;
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
background: #111;
outline: 2px solid #fff;
}