MediaWiki:Common.css

From SSB Universes Wiki
Jump to navigationJump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* <h3> Shared interface </h3> */

body.mediawiki table.mainpage { border-collapse: unset !important; }

.rcoptions td.mw-input, .rcoptions select, .rcoptions input {
   width:auto;
}

#toc, .toc {
	margin-bottom: 3px;
}

div.tleft, div.tright {
	margin-top: 0.2em;
	margin-bottom: 0.8em;
}

div#mw-upload-thumbnail {
    float: right;
}

.thumb .mediaContainer {
	margin: 4px auto 2px;
}
.thumb .multiVert .mediaContainer {
	margin: 3px auto -1px;
}
.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 li {
	margin: 0.28em 0;
	line-height: 1em;
}

ol.references > li {
  margin: 0px !important;
}

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;
}
.contentbox > .mw-collapsible-toggle {
	float: none !important;
}

/* Mark redirects on Special:AllPages and Special:EditWatchlist */
.allpagesredirect a.mw-redirect, .watchlistredir a.mw-redirect {
	color: #888 !important;
}

/* 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;
}

/* revision info */
.mw-revision.warningbox, div.mw-message-box-warning.mw-revision.mw-message-box {
    margin-top:0px;
    padding:0px;
    border:0px;
    background:none;
}

#mw-revision-info, #mw-revision-info-current, #mw-revision-nav {
    color: #54595d;
}

/* 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> */

#bodyContent {
	position: relative;
}

/* 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;
}

/* 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;
}

.client-js .editButtons .editHelp {
    display: none;
}

/* 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;
}
/* 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;
}

/* Diff text */
.diffchange { font-weight: normal; }
.diff-addedline, .diff-deletedline, .diff-context {
	font-size: 92%;
}
.diff .diff-context {
  min-width: 50%;
}

.diff-addedline .diffchange { background: #D8ECFF; }
.diff-addedline { border-color: #D8ECFF; }
.diff-deletedline .diffchange { background: #FEEEC8; }
.diff-deletedline { border-color: #FEEEC8; }

/* OOUI fix */
.oo-ui-optionWidget.oo-ui-labelElement > .oo-ui-labelElement-label {
	overflow: visible;
}

/* 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;
	}
}

/* Media player fix */
.wikitable .mediaContainer {
	margin-top: 2px;
}

/* remove box-shadow from notifications */
#pt-notifications-alert .mw-echo-notifications-badge:focus, #pt-notifications-notice .mw-echo-notifications-badge:focus {
    box-shadow: none;
}

/* Tabber */
.infobox .tabbernav {
	font-size: 90%;
}
.tabber.info {
	display: block;
	float: right;
	margin: 0 0 0.5em 1em;
}
.tabber.info .nav {
	display: block !important;
}
.tabber.info .infobox > tbody > tr:nth-child(2) img {
	max-width: 100% !important;
	height: auto !important;
}
.tabber.info table {
	display: block !important;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	overflow-x: auto !important;
}
.tabber.info tbody {
	display: table !important;
	width: 100% !important;
}

/* Indicator icons */
.mw-indicators,
#mw-indicator-shortcut {
	position: relative;
}
.mw-indicator {
	margin: 0 2px;
}

/* Explain text */
.explain[title] {
	text-decoration: none;
	border-bottom: 1px dotted;
}

/* New user message box */
.usermessage {
	margin-top: 1em;
}

/* search feature fixes */
.searchresults {
  margin: 1em 0 1em 0.4em;
}

.searchresults .mw-search-exists {
  margin-bottom: 3px;
}

/* Width fixes */
table {
	max-width: 100%;
}
@media all and (max-width: 1100px) {
	.mw-parser-output table {
		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;
}

/* Ban notice */
.warningbox {border: 1px solid darkred;background: #ffcfcf;}


.mw-wiki-logo { background-size: 150px; }

.mw-special-Upload .noupload, .useronly,
.autoconfonly, .editprotected, .editinterface {
	display: none;
}

.oo-ui-icon-success, .mw-ui-icon-success { display: none !important; }

body.anon.ns-content.action-view.desktop .notice-template.show {
	margin-top: 0 !important;
}

form#editform { margin-top: 2px; }

.editHelp {
    display:none;
}

.mw-search-form-wrapper {
  margin-bottom: 0px;
}

.mediawiki table {
  border-collapse: collapse !important;
  font-size: 100% !important;
}

.wikitable {
  border-color:transparent;
}

body.mediawiki div.wideImage img {
	max-width: none !important;
}

.collapsible-bar .mw-collapsible-text {
    color: inherit !important;
}

.mw-search-profile-tabs { width:100%; }

.mw-body-content img.mw-file-element {
  max-width: inherit !important;
}

.mw-plusminus-pos { color: #006400; }
.mw-plusminus-neg { color: #8b0000; }

.mw-diff-table-prefix { display:none; }

body.skin--responsive #f-copyrightico > .cdx-button,
body.skin--responsive #f-poweredbyico > .cdx-button { display:contents; }

/* Site notice */
#localNotice a.external {
	padding: 0 !important;
	background: none !important;
}

/* Image/gallery classes */
img.blackbg, .gallery.blackbg .thumb { background: #000 !important; }
img.graybg, .gallery.graybg .thumb, img.greybg, .gallery.greybg .thumb {
	background: #808080 !important;
}

ul.gallery img, table.filehistory img, table.listfiles img, table.searchResultImage img {
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

.pixelated, .pixelart, .sprites, .sprite {
	image-rendering: crisp-edges; image-rendering: pixelated;
}

img {
	image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* Gallery classes */
.gallery.center {
	margin-left: auto !important;
	margin-right: auto !important;
}
.gallery.centertext .gallerytext {
	text-align: center !important;
}

/* Gallery slideshow */
.mw-gallery-slideshow .gallerybox + .gallerybox {
	display: none;
}
.mw-gallery-slideshow-thumbnails-toggled ~ .gallerybox {
	display: inline-block !important;
}

/* message box padding */
.messagebox, .errorbox, .warningbox, .successbox, .mw-message-box-warning, .mw-message-box-error {
    padding:12px;
}

/* revision info */

div#mw-content-subtitle > div.cdx-message.cdx-message--block.cdx-message--warning.mw-revision {
   background: #F9F9F9;
   border: 1px solid #AAA;
   color:#000 !important;
   font-size: 100%;
   margin: .5em 0 .5em;
   padding: .5em 1em;
   clear: both;
}

/* File pages */
#file img, .filehistory a img {
	background: url(https://www.ssbuniverses.com/w/images/Checker.png) repeat;
}

/* Media files */
.gallery audio {
	max-width: calc(100% - 30px) !important;
}
.gallery audio, .gallery video, .thumb audio, .thumb video {
	display: block;
	margin: auto;
}
.filehistory audio, .filehistory video {
	max-width: 120px !important;
}

/* Formatting fixes */
pre { overflow: auto; }
hr { overflow: hidden; }
div[style*="column-"] > p { margin: 0 !important; }
.mw-parser-output table sup { white-space: nowrap; }
span.comment, .mw-parser-output a.external.free, .filehistory.wikitable td[dir] {
	word-wrap: anywhere;
}

/** search results **/
.mw-search-result-data {
  color: #008000;
  font-size: 97%;
}

.mw-body .mw-search-nonefound {
  margin: 0;
  font-size: revert;
}

/* Margin fixes */
.ns-subject:not(.ns-110) #mw-content-text li > ul,
.ns-subject:not(.ns-110) #mw-content-text li > ol {
	margin-top: 0.1em !important;
}
.ns-subject:not(.ns-110) #mw-content-text dl + ul,
.ns-subject:not(.ns-110) #mw-content-text dl + ol {
	margin-top: -0.3em !important;
}
.ns-subject:not(.ns-110) #mw-content-text ul + dl,
.ns-subject:not(.ns-110) #mw-content-text ol + dl  {
	margin-top: 0.3em !important;
}

/* Scrollable tables */
table.scrollable {
	display: block;
	overflow: auto;
	max-width: max-content;
	border: 0;
}

/* Show/hide toggles */
.navbox .mw-collapsible-toggle {
	text-align: right;
	min-width: 3.729em;
}
.wikitable.mw-collapsed .mw-collapsible-toggle {
	margin-left: 10px;
}

/* Links */
a { color: #00f; }
a:active { color: orange; }
a:visited { color: #00c; }
.mw-parser-output a.extiw { color: #06f; }
.mw-parser-output a.extiw:visited { color: #3366BB; }
.mw-parser-output a.external { color: #06f; }
.mw-parser-output a.external:visited { color: #0044CC; }

/* Link fixes */
body.mediawiki a.mw-selflink {
	color: inherit !important;
	cursor: inherit !important;
	text-decoration: inherit !important;
	font-weight: bold !important;
}
a font:hover, a span:hover {
	text-decoration: inherit;
}
.autocomment a:hover {
	color: inherit;
}

/* Explain text */
.explain[title] {
	cursor: help;
	border-bottom: 1px dotted;
	text-decoration: none;
}

/* Hide help indicator */
#mw-indicator-mw-helplink { display: none; }

/* Special:Preferences */
#mw-htmlform-mobile .oo-ui-inline-help { display: none; }

/* Special:Contact */
.mw-special-Contact fieldset div[data-ooui*="wpSubject"] {
	display: none;
}
.mw-special-Contact #wpCaptchaWord,
.mw-special-Contact fieldset div[data-ooui*="HTMLInfoField"],
.mw-special-Contact.desktop fieldset div[data-ooui*="wpCCme"] {
	margin-top: 2px;
}
.mw-special-Contact fieldset div[data-ooui*="CAPTCHA"] {
	margin-top: 1em;
}

/* Watchlist expiry (icon fix) */
.oo-ui-icon-clock, .mw-ui-icon-clock::before {
	background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eclock%3C/title%3E%3Cpath d=%22M10 0a10 10 0 1010 10A10 10 0 0010 0zm2.5 14.5L9 11V4h2v6l3 3z%22/%3E%3C/svg%3E");
}
.mw-changesList-watchlistExpiry.oo-ui-iconElement-icon {
	height: 13px;
	min-height: 13px;
	position: relative;
	top: -1px;
	opacity: 0.51;
}

/* Pixelated gallery/interface image upscaling */
ul.gallery img, table.filehistory img, table.listfiles img, table.searchResultImage img {
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

/* notice templates */
body:not(.ns-6) .notice-template + .notice-template {
	margin-top: -0.375em !important;
}
#mw-imagepage-content .notice-template + #aboutfile {
	margin-top: 0.75em !important;
}
#mw-imagepage-content .notice-template:not(#aboutfile) {
	margin-top: 0.75em !important;
	margin-bottom: 2.5px !important;
}

.notice-template p {
	margin: 0.6em 0;
}

.notice-template {
        display: flex;
        background: #f1f1de;
        border: 2px solid #996;
        font-size: 100% !important;
        margin: 0 2% 0.75em !important;
        padding:0 1em;
        color: #000;
}

.notice-template.copyright {
	width: 90%;
	margin: 2.5px auto !important;
	padding: 5px;
	font-size: 95%;
	background: #FFF;
	border: 1px solid #000;
}

.notice-template.delete a:not(.new) {
  color: yellow;
}

/* forum formatting */
.forumheader {
    border: 1px solid #88A;
    background-color: #F8F8FF;
    margin-top: 1em;
    margin-bottom: 1em;
    padding: 8px;
}
.forumlist td.forum_edited a {
	color: #000;
	text-decoration: none;
}
.forumlist td.forum_title a {
	padding-left: 20px;
}
.forumlist td.forum_title a.forum_new {
	font-weight: bold;
	padding-left: 20px;
}
.forumlist td.forum_title a.forum_new:visited {
	background: none;
	font-weight: normal;
	padding-left: 20px;
}
.forumlist th.forum_title {
	padding-left: 20px;
}

/* button template */
span.longbutton {
	color: #000;
	font-size: smaller;
	font-variant: small-caps;
	white-space: nowrap;
	background: #fff;
	border: 1px solid #000;
	border-radius: 1em;
	padding: 0 0.5em;
	display: inline;
}

/* Infobox template style */
.infobox {
	float: right;
	clear: right;
	font-size: 90% !important;
	text-align: left;
	border: 1px solid #000;
	background-color: #f9f9f9;
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
}
.infobox td,
.infobox th {
	vertical-align: top;
}
.infobox caption {
	font-size: larger;
	margin-left: inherit;
}
.infobox.bordered {
	border-collapse: collapse !important;
}
.infobox.bordered td,
.infobox.bordered th {
	border: 1px solid #000;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
	border: 0;
}

/* Tabs fix */
.tabber { display: inline-block; }
.tabbertab:not(:first-of-type) { display: none; }
.tabbertab:first-child { padding: 6px; margin-top: 26px; }
.mw-parser-output > .tabber { display: table; margin-bottom: 0.5em; }
.infobox .tabbertab:first-child, .infobox p.mw-empty-elt:first-child + .tabbertab { padding: 6px; margin-top: 24px; }
.infobox .tabber:not(.tabberlive) { display: block; }
.tabbertab > p:first-child { margin-top: 0.2em; }
.tabbertab > p:last-child { margin-bottom: 0; }

.mobile .tabbertab:first-child { margin-top: 0; padding-top: 31.5px; }
.mobile.skin-timeless .tabbertab:first-child { padding-top: 33.6px; }
.mobile.skin-timeless .infobox .tabbertab:first-child { padding-top: 31px; }
.mobile .infobox .tabbertab:first-child { padding-top: 29px; }

/* Black border & cell tables */
table.table, table.table {background:#fff;margin:1em 0;border-collapse:collapse;color:black}
table.table > * > tr > td, table.table > * > tr > th, table.table > * > tr > td, table.table > * > tr > th {border:1pt solid #000;padding:0.2em 0.4em}

/* metadata table revert */

table#mw_metadata.mw_metadata {
   font-size: 0.8em !important;
   margin-bottom: 0.5em !important;
   margin-left: 0.5em !important;
}

/* message box */

.cdx-message {
    margin-bottom: 0.4em;
    margin-top: -0.4em;
}

/* thumb class */

html .thumbimage { background-color: #fff; border: 1px solid #c8ccd1; }

#mw-upload-thumbnail.thumb.tright > div.thumbinner {
    border: 1px solid #c8ccd1;
    background-color: #f8f9fa;
    font-size: 94%;
    padding: 3px;
    text-align: center;
    overflow: hidden;
}

#mw-upload-thumbnail.thumb.tright > div.thumbinner > div.filename,
#mw-upload-thumbnail.thumb.tright > div.thumbinner > div.fileinfo {
    text-align: left;
}

.thumbcaption {
  font-size: 94%;
  line-height: 1.4em;
  padding: 3px;
  text-align:left;
}

div.tleft, div.tright {
  margin-top: 0.25em;
  margin-bottom: 0.8em;
}

div.tleft { margin: 0.5em 1.4em 1.3em 0; float:left; clear:left;}

/* disable some stuff manually */
a.uls-trigger, li#pt-uls, li#ca-ve-edit, .imeselector, a.mw-editsection-visualeditor, span.mw-editsection > span.mw-editsection-divider, .tdg-editscreen-main, .mw-revslider-container, .ve-init-mw-diffPage-diffMode { display:none !important; }

/* <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;
}

#editpage-copywarn {
    margin: 0.6em 0 0.7em 0;
}

div.mw-translatenotice, div.mw-editinginterface, div.mw-translateinterface { 
    margin: 0.4em 0 0.5em 0;
}

div.tleft, div.floatleft, table.floatleft {
  float: left;
  clear: left;
}

div.tright, div.floatright, table.floatright {
  clear: right;
  float: right;
}

div.thumb.tnone > div.thumbinner.multiFloatContainer {
  margin: 0.5em 0 1.3em 0;
}

.usermessage {
  background-color: #ffce7b;
  border: 1px solid #ffa500;
}