MediaWiki:Common.css: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(27 intermediate revisions by the same user not shown)
Line 8: Line 8:
   External link icons
   External link icons
       Edit here: https://www.ssbwiki.com/MediaWiki:Gadget-ExternalLinkIcons.css */
       Edit here: https://www.ssbwiki.com/MediaWiki:Gadget-ExternalLinkIcons.css */
/* Don't display some stuff on the main page */
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;
}
/* Mark redirects on Special:AllPages and Special:EditWatchlist */
.allpagesredirect a.mw-redirect, .watchlistredir a.mw-redirect {
color: #888 !important;
}


/* Forum formatting -Algorithm & -Splaka */
/* Forum formatting -Algorithm & -Splaka */
Line 50: Line 36:
}
}


/* References */
/* Infobox templates */
ol.references {
margin-top: 0;
font-size: 90%;
}
ol.references div {
display: inline;
}
ol.references span {
line-height: 1;
}
 
/* Infobox template style */
.infobox {
.infobox {
color: #000;
color: #000;
float: right;
clear: right;
font-size: 90%;
text-align: left;
border: 1px solid #aaa;
border: 1px solid #aaa;
background-color: #f9f9f9;
background-color: #f9f9f9;
margin: 0.5em 0 0.5em 1em;
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
padding: 0.2em;
float: right;
clear: right;
}
}
.infobox td,
.infobox td,
Line 149: Line 125:
float: right;
float: right;
clear: both;
clear: both;
}
/* wikitable class for skinning normal tables */
/* wikitable-nopad is for when you want a wikitable without padding */
table.wikitable, table.wikitable-nopad {
background: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
margin: 1em 1em 1em 0;
}
table.wikitable th, table.wikitable td {
border: 1px #aaa solid;
padding: 0.2em;
}
table.wikitable-nopad th, table.wikitable-nopad td {
border: 1px #aaa solid;
padding: 0;
}
table.wikitable th, table.wikitable-nopad th {
background: #f2f2f2;
text-align: center;
}
table.wikitable caption, table.wikitable-nopad caption {
font-weight: bold;
margin-left: inherit;
margin-right: inherit;
}
.tabber table.wikitable,
.tabber table.wikitable-nopad {
margin-right: 0;
}
/* Table of contents */
#toc, .toc {
margin-bottom: 3px;
}
/* Thumbs */
div.tleft, div.tright {
margin-top: 0.2em;
margin-bottom: 0.8em;
}
/* Galleries */
ul.gallery, li.gallerybox div.thumb {
margin-bottom: 0;
padding-bottom: 0;
}
#bodyContent ul.gallery {
margin: 2px;
padding: 2px;
}
li.gallerycaption {
text-align: unset;
}
}


Line 238: Line 160:
#ca-edit a {
#ca-edit a {
font-weight: bold !important;
font-weight: bold !important;
}
/* File pages */
.mw_metadata {
margin-top: 5px;
}
/* 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;
}
}


Line 323: Line 170:
width: 100%;
width: 100%;
display: table;
display: table;
}
/* 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;
}
}


Line 384: Line 223:
/* Hide pointless "your edit was saved" box */
/* Hide pointless "your edit was saved" box */
.postedit { display: none !important; }
.postedit { display: none !important; }
/* 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;
}


/* InputBox button */
/* InputBox button */
Line 409: Line 228:
padding-top: 6px;
padding-top: 6px;
padding-bottom: 6px;
padding-bottom: 6px;
}
/* Remove anon warning box style */
#mw-anon-edit-warning {
margin: 0;
padding: 0;
border: none;
background: none;
}
}


Line 423: Line 234:
padding: 0;
padding: 0;
border: none;
border: none;
}
/* Fix Special:PrefixIndex column alignment */
.mw-prefixindex-list > li:first-of-type {
margin-top: -4px;
}
/* Indicator icons */
.mw-indicators,
#mw-indicator-last {
position: relative;
}
/* New user message box */
.usermessage {
margin-top: 1em;
}
}


/* Width fixes */
/* Width fixes */
#content { overflow-x: clip; }
table, .thumbinner { max-width: 100%; }
@media all and (max-width: 1350px) {
table.wikitable {
display: block !important;
max-width: max-content !important;
overflow: auto !important;
border: 0 !important;
}
}
@media all and (max-width: 1250px) {
@media all and (max-width: 1250px) {
table.wikitable img {
min-width: 15px !important;
max-width: 100% !important;
height: auto !important;
}
.mw-parser-output table {
min-width: 0 !important;
}
table.wikitable.hitboxtable {
table.wikitable.hitboxtable {
clear: both;
clear: both;
}
}
}
/* 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;
}
}