MediaWiki:Common.css: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
No edit summary
(no peeking (AF2022 setup))
Line 518: Line 518:
.mobileonly {
.mobileonly {
display: none;
display: none;
}
.aprilfools-blur {
    text-shadow: 0px 0px 0px currentcolor;
    animation: blur 3s infinite linear;
}
.aprilfools-rainbow {
    color: red;
    animation: rainbow 3s infinite linear;
}
.aprilfools-flicker {
    animation: flicker 3s infinite linear;
}
.aprilfools-rise {
    animation: rise 3s infinite linear;
}
.aprilfools-fall {
    animation: fall 3s infinite linear;
}
.aprilfools-fade {
    animation: fade 3s infinite linear;
}
.aprilfools-spin {
    animation: spin 3s infinite linear;
}
.aprilfools-flipx {
    animation: flipx 3s infinite linear;
}
.aprilfools-flipy {
    animation: flipy 3s infinite linear;
}
.aprilfools-throb {
    animation: throb 3s infinite linear;
}
.aprilfools-shudder {
    animation: shudder 3s infinite linear;
}
.aprilfools-topple {
    animation: topple 3s infinite ease-in;
}
.aprilfools-deflate {
    animation: deflate 3s infinite linear;
}
.aprilfools-gnw {
    animation: gnw 3s infinite steps(1);
}
.aprilfools-ghost {
    transform: scale(1000%);
    animation: ghost 10s infinite linear;
}
@keyframes blur {
    0% {
        text-shadow: 0px 0px 0px currentcolor;
    }
    50% {
        text-shadow: 0px 0px 10px currentcolor;
    }
    100% {
        text-shadow: 0px 0px 0px currentcolor;
    }
}
@keyframes rainbow {
    0% {
        color: rgb(255, 0, 0);
    }
    17% {
        color: rgb(255, 255, 0);
    }
    33% {
        color: rgb(0, 255, 0);
    }
    50% {
        color: rgb(0, 255, 255);
    }
    67% {
        color: rgb(0, 0, 255);
    }
    83% {
        color: rgb(255, 0, 255);
    }
    100% {
        color: rgb(255, 0, 0);
    }
}
@keyframes flicker {
    0%,
    2%,
    13%,
    22%,
    74%,
    97% {
        opacity: 0;
    }
    1%,
    3%,
    14%,
    23%,
    75%,
    98% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes rise {
    0% {
        transform: translate(0%, 25%);
        opacity: 0;
    }
    25% {
        transform: translate(0%, 0%);
        opacity: 1;
    }
    75% {
        transform: translate(0%, 0%);
        opacity: 1;
    }
    100% {
        transform: translate(0%, -25%);
        opacity: 0;
    }
}
@keyframes fall {
    0% {
        transform: translate(0%, -25%);
        opacity: 0;
    }
    25% {
        transform: translate(0%, 0%);
        opacity: 1;
    }
    75% {
        transform: translate(0%, 0%);
        opacity: 1;
    }
    100% {
        transform: translate(0%, 25%);
        opacity: 0;
    }
}
@keyframes fade {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(35deg);
    }
    75% {
        transform: rotate(-35deg);
    }
    100% {
        transform: rotate(0deg);
    }
}
@keyframes flipx {
    0% {
        transform: scale(100%, 100%);
    }
    50% {
        transform: scale(-100%, 100%);
    }
    100% {
        transform: scale(100%, 100%);
    }
}
@keyframes flipy {
    0% {
        transform: scale(100%, 100%);
    }
    50% {
        transform: scale(100%, -100%);
    }
    100% {
        transform: scale(100%, 100%);
    }
}
@keyframes throb {
    0% {
        transform: scale(100%);
    }
    25% {
        transform: scale(80%);
    }
    50% {
        transform: scale(100%);
    }
    75% {
        transform: scale(120%);
    }
    100% {
        transform: scale(100%);
    }
}
@keyframes shudder {
    0% {
        transform: translate(0%, 0%);
    }
    2%,
    5%,
    7%,
    23%,
    30%,
    48%,
    53%,
    61%,
    72%,
    88% {
        transform: translate(-25%, 0%);
    }
    4%,
    6%,
    9%,
    28%,
    33%,
    49%,
    55%,
    67%,
    81%,
    92% {
        transform: translate(25%, 0%);
    }
    100% {
        transform: translate(0%, 0%);
    }
}
@keyframes topple {
    0% {
        transform: translate(0%, 0%);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    75% {
        transform: translate(0%, 1000%) rotate(140deg);
        opacity: 0;
    }
    76% {
        transform: translate(0%, 0%);
        opacity: 0;
    }
    80%,
    100% {
        transform: translate(0%, 0%);
        opacity: 1;
    }
}
@keyframes deflate {
    0% {
        transform: translate(0%, 0%) scale(100%, 100%);
    }
    70% {
        transform: translate(0%, 25%) scale(100%, 20%);
    }
    75% {
        transform: translate(0%, -10%) scale(100%, 120%);
    }
    80%,
    100% {
        transform: translate(0%, 0%) scale(100%, 100%);
    }
}
@keyframes gnw {
    0% {
        transform: rotate(20deg);
    }
    50% {
        transform: rotate(-20deg);
    }
}
@keyframes ghost {
    0% {
        opacity: 0;
    }
    79% {
        opacity: 0;
    }
    80% {
        opacity: 0.025;
    }
    100% {
        opacity: 0;
    }
}
}

Revision as of 19:51, March 31, 2022

/* CSS placed here will be applied to all skins on desktop */

/* Navbox style
       Edit here: https://www.ssbwiki.com/MediaWiki:Gadget-NavboxStyle.css
   Staff highlights
       Edit here: https://www.ssbwiki.com/MediaWiki:Gadget-StaffHighlights.css
       Also here: https://www.ssbwiki.com/MediaWiki:Gadget-StaffIcons.css
   External link icons
       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;
}

/* Main content */
#bodyContent {
	position: relative;
}

/* Forum formatting -Algorithm & -Splaka */
.forumheader {
	border: 1px solid #aaa;
	margin: 1em 0 15px;
	padding: 12px;
}
.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;
	background: url(https://ssb.wiki.gallery/images/forum_new.png) center left no-repeat;
	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;
}

/* References */
ol.references {
	margin-top: 0;
	font-size: 90%;
}
ol.references div {
	display: inline;
}
ol.references span {
	line-height: 1;
}

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

/* Messagebox templates */
.messagebox {
	width: 80%;
	border: 1px solid #aaa;
	background-color: #f9f9f9;
	margin: 0 auto 1em;
	padding: 0.2em;
}
.messagebox + .messagebox {
	margin-top: -0.5em;
}
.navbox + .messagebox {
	margin-top: 1em;
}
#mw-imagepage-content .messagebox {
	margin: 1em auto 0;
}
#mw-imagepage-content .messagebox + .messagebox {
	margin-top: 0.5em;
}
#siteNotice .messagebox {
	margin: 0.6em auto;
}
.ve-ui-mwNoticesPopupTool-item .messagebox {
	width: 100% !important;
	text-align: left !important;
}
.ve-ui-mwNoticesPopupTool-item .messagebox tr.plainlinks {
	text-align: center !important;
}
.messagebox.merge {
	text-align: center;
	border: 1px solid #c0b8cc;
	background-color: #f0e5ff;
}
.messagebox.cleanup {
	text-align: center;
	border: 1px solid #9f9fff;
	background-color: #efefff;
}
.messagebox.standard-talk {
	border: 1px solid #c0c090;
	background-color: #f8eaba;
}
.messagebox.nested-talk {
	width: 100%;
	border: 1px solid #c0c090;
	background-color: #f8eaba;
	margin: 2px 4px 2px 4px;
}
.messagebox.small {
	width: 238px;
	font-size: 85%;
	line-height: 1.25em;
	margin: 0 0 1em 1em;
	float: right;
	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;
}

/* Hitbox tables */
table.wikitable.hitboxtable {
	display: block;
	overflow: auto;
	background: none !important;
	border: 0;
}
table.wikitable.hitboxtable tbody {
	background: #f9f9f9;
}

/* Table of contents */
#toc, .toc {
	margin-bottom: 3px;
}

/* Thumbs */
div.tleft, div.tright {
	margin-top: 0.2em;
	margin-bottom: 0.8em;
}
.thumb .mediaContainer {
	margin: 4px auto 2px;
}

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

/* Special moves navigation */
.special-moves {
	margin-top: 25px !important;
}
.special-moves .special-moves {
	margin-top: 0 !important;
}
.special-moves + .navbox,
.special-moves + .special-moves {
	margin-top: 10px !important;
}

/* Prevents line breaks in links (navbox) */
.nowraplinks a {
	white-space: nowrap;
}

/* Light gray highlight on stuff */
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, .CodeMirror-focused,
#wpOldTitle:focus, #wpReason:focus, #wpSummary:focus, #searchInput:focus {
	background: #F9F9F9
}

/* Show site tagline, located at MediaWiki:Tagline */
#siteSub {
	font-size: 92%;
	display: inline;
	font-weight: normal;
}

/* Bold edit tab */
#ca-edit a {
	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;
}

/* Video table */
.videoTable {
	display: block;
	overflow: auto;
}
.videoTable tbody {
	width: 100%;
	display: table;
}

/* Dismissable site notice */
.sitedir-ltr .mw-dismissable-notice-body {
	margin: 0 60px 0.5em 0;
}
.sitedir-rtl .mw-dismissable-notice-body {
	margin: 0 0 0.5em 60px;
}

/* SW:1226 stuff */
.blockquote {
	display:       block;
	margin-top:    1em;
	margin-bottom: 1em;
	margin-left:   40px;
	margin-right:  40px;
}
/* the borders should be #d4d0c8 outset/inset, but the outset/inset behaviour has changed, so need to fake it */
table.border-1 {
	border-collapse:separate;
	border-top: 1px solid #d4d0c8;
	border-left: 1px solid #d4d0c8;
	border-right: 1px solid #84827d;
	border-bottom: 1px solid #84827d;
}
table.border-2 {
	border-collapse:separate;
	border-top: 2px solid #d4d0c8;
	border-left: 2px solid #d4d0c8;
	border-right: 2px solid #84827d;
	border-bottom: 2px solid #84827d;
}
table.border-1 th, table.border-1 td, table.border-2 th, table.border-2 td {
	border-collapse:separate;
	border-top: 1px solid #84827d;
	border-left: 1px solid #84827d;
	border-right: 1px solid #d4d0c8;
	border-bottom: 1px solid #d4d0c8;
}
.ssb64-site-img-1px {
	border: 1px solid #000;
}
.ssb64-site-img-2px {
	border: 2px solid #000;
}
.ssb64-site-img-3px {
	border: 3px solid #000;
}
.ssb64-site-img-4px {
	border: 4px solid #000;
}
.ssb64-site-img-5px {
	border: 5px solid #000;
}
.ssb64-site-img-6px {
	border: 6px solid #000;
}

/* Hide pointless "your edit was saved" box */
.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 */
.bodySearchWrap .mw-ui-button, .createboxButton {
	padding-top: 6px;
	padding-bottom: 6px;
}

/* Remove anon warning box style */
#mw-anon-edit-warning {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
}

/* Fix code tag formatting */
code {
	padding: 0;
	border: none;
}

/* Fix Special:PrefixIndex column alignment */
.mw-prefixindex-list > li:first-of-type {
	margin-top: -4px;
}

/* MediaWiki collapsible buttons */
.mw-collapsible-toggle {
	font-weight: normal;
}
.contentbox > .mw-collapsible-toggle {
	float: none !important;
}

/* Indicator icons */
.mw-indicators,
#mw-indicator-last {
	position: relative;
}

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

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

/* Width fixes */
table {
	max-width: 100%;
}
@media all and (max-width: 1250px) {
	table.wikitable img {
		max-width: 100% !important;
		height: auto !important;
	}
	table.wikitable.hitboxtable {
		clear: both;
	}
}

/* Media player fix */
.wikitable .mediaContainer {
	margin-top: 2px;
}
#crowd.wikitable .mediaContainer {
	margin-top: 4px;
}
.wikitable .mediaContainer + .mediaContainer {
	margin-top: 5px;
}

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

.aprilfools-blur {
    text-shadow: 0px 0px 0px currentcolor;
    animation: blur 3s infinite linear;
}

.aprilfools-rainbow {
    color: red;
    animation: rainbow 3s infinite linear;
}

.aprilfools-flicker {
    animation: flicker 3s infinite linear;
}

.aprilfools-rise {
    animation: rise 3s infinite linear;
}

.aprilfools-fall {
    animation: fall 3s infinite linear;
}

.aprilfools-fade {
    animation: fade 3s infinite linear;
}

.aprilfools-spin {
    animation: spin 3s infinite linear;
}

.aprilfools-flipx {
    animation: flipx 3s infinite linear;
}

.aprilfools-flipy {
    animation: flipy 3s infinite linear;
}

.aprilfools-throb {
    animation: throb 3s infinite linear;
}

.aprilfools-shudder {
    animation: shudder 3s infinite linear;
}

.aprilfools-topple {
    animation: topple 3s infinite ease-in;
}

.aprilfools-deflate {
    animation: deflate 3s infinite linear;
}

.aprilfools-gnw {
    animation: gnw 3s infinite steps(1);
}

.aprilfools-ghost {
    transform: scale(1000%);
    animation: ghost 10s infinite linear;
}

@keyframes blur {
    0% {
        text-shadow: 0px 0px 0px currentcolor;
    }

    50% {
        text-shadow: 0px 0px 10px currentcolor;
    }

    100% {
        text-shadow: 0px 0px 0px currentcolor;
    }
}

@keyframes rainbow {
    0% {
        color: rgb(255, 0, 0);
    }

    17% {
        color: rgb(255, 255, 0);
    }

    33% {
        color: rgb(0, 255, 0);
    }

    50% {
        color: rgb(0, 255, 255);
    }

    67% {
        color: rgb(0, 0, 255);
    }

    83% {
        color: rgb(255, 0, 255);
    }

    100% {
        color: rgb(255, 0, 0);
    }
}

@keyframes flicker {

    0%,
    2%,
    13%,
    22%,
    74%,
    97% {
        opacity: 0;
    }

    1%,
    3%,
    14%,
    23%,
    75%,
    98% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes rise {
    0% {
        transform: translate(0%, 25%);
        opacity: 0;
    }

    25% {
        transform: translate(0%, 0%);
        opacity: 1;
    }

    75% {
        transform: translate(0%, 0%);
        opacity: 1;
    }

    100% {
        transform: translate(0%, -25%);
        opacity: 0;
    }
}

@keyframes fall {
    0% {
        transform: translate(0%, -25%);
        opacity: 0;
    }

    25% {
        transform: translate(0%, 0%);
        opacity: 1;
    }

    75% {
        transform: translate(0%, 0%);
        opacity: 1;
    }

    100% {
        transform: translate(0%, 25%);
        opacity: 0;
    }
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(35deg);
    }

    75% {
        transform: rotate(-35deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes flipx {
    0% {
        transform: scale(100%, 100%);
    }

    50% {
        transform: scale(-100%, 100%);
    }

    100% {
        transform: scale(100%, 100%);
    }
}

@keyframes flipy {
    0% {
        transform: scale(100%, 100%);
    }

    50% {
        transform: scale(100%, -100%);
    }

    100% {
        transform: scale(100%, 100%);
    }
}

@keyframes throb {
    0% {
        transform: scale(100%);
    }

    25% {
        transform: scale(80%);
    }

    50% {
        transform: scale(100%);
    }

    75% {
        transform: scale(120%);
    }

    100% {
        transform: scale(100%);
    }
}

@keyframes shudder {
    0% {
        transform: translate(0%, 0%);
    }

    2%,
    5%,
    7%,
    23%,
    30%,
    48%,
    53%,
    61%,
    72%,
    88% {
        transform: translate(-25%, 0%);
    }

    4%,
    6%,
    9%,
    28%,
    33%,
    49%,
    55%,
    67%,
    81%,
    92% {
        transform: translate(25%, 0%);
    }

    100% {
        transform: translate(0%, 0%);
    }
}

@keyframes topple {
    0% {
        transform: translate(0%, 0%);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    75% {
        transform: translate(0%, 1000%) rotate(140deg);
        opacity: 0;
    }

    76% {
        transform: translate(0%, 0%);
        opacity: 0;
    }

    80%,
    100% {
        transform: translate(0%, 0%);
        opacity: 1;
    }
}

@keyframes deflate {
    0% {
        transform: translate(0%, 0%) scale(100%, 100%);
    }

    70% {
        transform: translate(0%, 25%) scale(100%, 20%);
    }

    75% {
        transform: translate(0%, -10%) scale(100%, 120%);
    }

    80%,
    100% {
        transform: translate(0%, 0%) scale(100%, 100%);
    }
}

@keyframes gnw {
    0% {
        transform: rotate(20deg);
    }

    50% {
        transform: rotate(-20deg);
    }
}

@keyframes ghost {
    0% {
        opacity: 0;
    }

    79% {
        opacity: 0;
    }

    80% {
        opacity: 0.025;
    }

    100% {
        opacity: 0;
    }
}