MediaWiki:Common.css: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 314: | Line 314: | ||
#content { overflow-x: clip; } | #content { overflow-x: clip; } | ||
table, .thumbinner { max-width: 100%; } | table, .thumbinner { max-width: 100%; } | ||
@media all and (max-width: | @media all and (max-width: 1350px) { | ||
table.wikitable { | table.wikitable { | ||
width: auto !important; | width: auto !important; | ||
Line 323: | Line 323: | ||
border: 0 !important; | border: 0 !important; | ||
} | } | ||
} | |||
@media all and (max-width: 1250px) { | |||
table.wikitable img { | table.wikitable img { | ||
min-width: 15px !important; | min-width: 15px !important; |
Revision as of 14:49, June 5, 2023
/* CSS placed here will be applied to all skins on desktop */
/* Navbox style
Edit here: https://www.mariowiki.com/MediaWiki:Gadget-NavboxStyle.css
Staff highlights
Edit here: https://www.mariowiki.com/MediaWiki:Gadget-StaffHighlights.css */
/* <h3> Shared interface </h3> */
#toc, .toc {
margin-bottom: 3px;
}
div.tleft, div.tright {
margin-top: 0.2em;
margin-bottom: 0.8em;
}
.ns-104 div.thumb {
border-color: transparent;
}
ul.gallery, li.gallerybox div.thumb {
margin-bottom: 0;
padding-bottom: 0;
}
#bodyContent ul.gallery {
margin: 2px;
padding: 2px;
}
li.gallerycaption {
text-align: unset;
}
.mw_metadata {
margin-top: 5px;
}
.catlinks {
background: #f9f9f9 url(https://mario.wiki.gallery/images/papermariohead.jpg) no-repeat bottom right;
margin-top: 10px;
}
#catlinks li {
margin: 0.28em 0;
line-height: 1em;
}
blockquote {
border-left: 3px solid #06f;
margin-left: 2em;
padding-left: 1em;
}
.mw-collapsible-toggle {
padding-right: 0.3em;
}
.infobox .mw-collapsible-toggle {
min-width: 39px;
text-align: right;
}
/* Mark redirects on Special:AllPages and Special:EditWatchlist */
.allpagesredirect a.mw-redirect, .watchlistredir a.mw-redirect {
color: #888 !important;
}
/* References */
ol.references {
margin-top: 0;
font-size: 90%;
}
ol.references div {
display: inline;
}
ol.references span {
line-height: 1;
}
/* User pages */
.ns-2 #mw-content-text p > img {
max-width: 100% !important;
height: auto !important;
}
/* User talk pages */
.ns-3 [style*="position:fixed"],
.ns-3 [style*="position: fixed"] {
display: none;
}
/* <h3> All pages </h3> */
/* Infobox templates */
.infobox {
float: right;
margin: 0 0 1em 1.15em;
}
.infobox, .infobox-wide {
padding: 4px;
font-size: 88%;
}
.infobox-wide {
width: 100%;
}
.infobox tr {
vertical-align: top;
}
.infobox td, .infobox th,
.infobox-wide td, .infobox-wide th {
padding: 2px;
}
/* Notice templates */
body:not(.ns-6) .notice-template + .notice-template {
margin-top: -0.375em !important;
}
.notice-template.talk,
body:not(.ns-6) .notice-template.maintenance {
max-width: max-content !important;
}
.notice-template p {
margin: 0.6em 0;
}
/* Upload form */
#mw-htmlform-description .mw-editTools {
display: none;
}
/* Edit box */
.wikiEditor-ui-toolbar .section-main,
.wikiEditor-ui-toolbar .tabs {
height: auto;
}
.wikiEditor-ui textarea#wpTextbox1 {
height: 474px;
line-height: 1.4em;
}
.mw-summary-preview {
margin-bottom: 0.5em;
}
#wpSummaryLabel .oo-ui-textInputWidget textarea,
#wpSummaryLabel .oo-ui-textInputWidget input {
padding-bottom: 0.5em;
}
#wpSummaryWidget .oo-ui-labelElement-label {
margin-right: 3px;
}
/* Watchlist expiry */
#wpWatchlistExpiry, #wpWatchlistExpiryWidget .oo-ui-dropdownWidget-handle {
height: auto;
min-height: 0;
padding-top: 4px;
padding-left: 7px;
padding-bottom: 3px;
}
/* Edit section */
.client-js .mw-content-ltr .mw-editsection-bracket:first-of-type,
.client-js .mw-content-rtl .mw-editsection-bracket:first-of-type,
.client-js .mw-content-rtl .mw-editsection-bracket:not(:first-of-type),
.client-js .mw-content-ltr .mw-editsection-bracket:not(:first-of-type) {
margin: 0;
color: unset;
}
/* Diff text */
.diffchange { font-weight: normal; }
.diff-addedline, .diff-deletedline, .diff-context {
font-size: 92%;
}
/* OOUI fix */
.oo-ui-optionWidget.oo-ui-labelElement > .oo-ui-labelElement-label {
overflow: visible;
}
/* Video widget */
.infobox .videoWidget,
.infobox .videoWidget iframe {
display: block !important;
}
.infobox .autoResize {
margin: 0 auto !important;
}
.autoResize:not(.thumbinner) .thumbcaption {
margin: 0;
padding: 0;
}
.videoWidget + p {
margin: 0;
}
/* Dismissable site notice */
.sitedir-ltr .mw-dismissable-notice-body {
margin: 0 60px 0 0;
}
.sitedir-rtl .mw-dismissable-notice-body {
margin: 0 0 0 60px;
}
/* Captcha spacing */
#editform #wpCaptchaWord {
margin-top: 2.5px;
}
#userloginForm label:not([for]) + .mw-input {
margin-top: 10px;
}
#userloginForm .mw-ui-vform-field:nth-of-type(7) {
margin-bottom: 5px;
}
.mw-htmlform-field-HTMLReCaptchaNoCaptchaField .mw-input {
margin-top: 1px;
}
.editOptions .g-recaptcha {
margin-bottom: 10px;
}
.mw-ui-vform {
width: 302px;
}
/* Keep create account benefits up top */
.mw-special-CreateAccount #userloginForm {
margin-right: 90px;
}
/* Adjust inputbox button padding in Firefox */
@-moz-document url-prefix() {
.bodySearchWrap .mw-ui-button, .createboxButton {
padding-top: 4px;
padding-bottom: 5px;
}
}
/* <h3> [[Main Page]] </h3> */
body.page-Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-view #contentSub,
body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-view #catlinks,
body.page-Main_Page.action-view #lastmod {
display: none !important;
}
/* <h3> [[List of games]] </h3> */
.games {
background: silver;
border: 1px solid #000;
margin-bottom: 7px;
}
.games tbody tr {
background: #fff;
}
/* <h3> Miscellaneous pages </h3> */
/* MarioWiki:BJAODN */
.rootpage-MarioWiki_BJAODN .mw-wiki-logo {
background-image: url(https://mario.wiki.gallery/images/thumb/f/f1/Super_Mario_Wiki_Logo.png/150px-Super_Mario_Wiki_Logo.png);
}
/* April Fool's */
body[class*="page-MarioWiki_BJAODN_April_Fool_s_2017"] .mw-wiki-logo {
background-image: url(https://mario.wiki.gallery/images/archive/4/4c/20170402024126!Mariowiki.png);
}
body[class*="page-MarioWiki_BJAODN_April_Fool_s_2018"] .mw-wiki-logo {
background-image: url(https://mario.wiki.gallery/images/c/cd/Funky_wiki_logo.png);
}
body[class*="page-MarioWiki_BJAODN_April_Fool_s_2019"] .mw-wiki-logo {
background-image: url(https://mario.wiki.gallery/images/archive/4/4c/20190402014317!Mariowiki.png);
}
body[class*="page-MarioWiki_BJAODN_April_Fool_s_2021"] .mw-wiki-logo {
background-image: url(https://mario.wiki.gallery/images/archive/4/4c/20210402135134!Mariowiki.png);
}
body[class*="page-MarioWiki_BJAODN_April_Fool_s_2023"] .mw-wiki-logo {
background-image: url(https://mario.wiki.gallery/images/archive/4/4c/20230402112604!Mariowiki.png);
}
/* <h3> Misc / Unsorted </h2> */
.special li {
line-height: 19px;
}
#preftoc a:active {
color: #00c;
}
.easywrap {
width: 100%;
table-layout: fixed;
word-wrap: break-word;
overflow: hidden;
}
.right {
text-align: right;
}
/* Indicator icons */
.mw-indicators,
#mw-indicator-shortcut {
position: relative;
}
.mw-indicator {
margin: 0 2px;
}
/* New user message box */
.usermessage {
margin-top: 1em;
}
/* Width fixes */
td, th { overflow: hidden; }
#content { overflow-x: clip; }
table, .thumbinner { max-width: 100%; }
@media all and (max-width: 1350px) {
table.wikitable {
width: auto !important;
display: block !important;
overflow: auto !important;
max-width: max-content !important;
min-width: 100px !important;
border: 0 !important;
}
}
@media all and (max-width: 1250px) {
table.wikitable img {
min-width: 15px !important;
max-width: 100% !important;
height: auto !important;
}
.mw-parser-output table:not(.wikitable) {
min-width: 0 !important;
}
}
/* Multimedia viewer */
.mw-mmv-image img {
background: #fff !important;
}
.mw-mmv-filepage-buttons,
.mw-mmv-reuse-pane .oo-ui-widget-disabled {
display: none !important;
}
.mw-mmv-overlay {
z-index: 10000000000;
}
.mw-mmv-wrapper {
z-index: 10000000001;
font-size: medium;
}
/* Mobile only */
.mobileonly {
display: none;
}
/* Who's online */
#whosonline {
margin-bottom: 1px;
}