MediaWiki:Common.css

From Jiggywikki, a Banjo-Kazooie 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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins, but not the "mobile view" */

:root {
    --colour-bg:rgb(255,239,191);
    --colour-page:rgb(255,247,223);
    --colour-page-lighter:rgb(255,251,239);
    --colour-page-darker:rgb(255,223,127);
    --colour-border:rgb(127,95,0);
    --colour-link-nor:rgb(0,0,255);
    --colour-link-vis:rgb(63,63,191);
    --colour-link-new:rgb(239,0,0);
    --colour-link-new-vis:rgb(191,63,63);
    --colour-link-ext:rgb(0,127,255);
    --colour-link-ext-vis:rgb(63,127,191);
    --colour-table-strong:rgb(255,207,63);
    --colour-table-row:rgb(255,239,191);
    --colour-table-row-alt:rgb(255,231,159);
    --colour-text-plus:rgb(0,159,0);
    --colour-text-minus:rgb(159,0,0);
    --colour-text-zero:rgb(127,127,127);
    --colour-diff-add:rgb(0,127,255);
    --colour-diff-remove:rgb(255,63,0);
    --colour-diff-neutral:rgb(223,223,191);
}

/* root page background */
.mediawiki {
    background:var(--colour-bg) url(https://cdn.banjokazooiewiki.com/2/26/Background.png) repeat;
}

/* links */
a {
    color: var(--colour-link-nor);
}
a:visited {
    color: var(--colour-link-vis);
}
a.new {
    color: var(--colour-link-new);
}
a.new:visited {
    color: var(--colour-link-new-vis);
}
.mw-parser-output a.extiw,
.mw-parser-output a.external {
    color: var(--colour-link-ext);
}
.mw-parser-output a.extiw:visited,
.mw-parser-output a.external:visited {
    color: var(--colour-link-ext-vis);
}

/* tables */
table.wikitable {
    background:var(--colour-page-darker);
    border:1px solid var(--colour-border);
}
table.wikitable > caption {
    background:var(--colour-page-darker);
    border-top-left-radius:1em;
    border-top-right-radius:1em;
    padding:0.25em;
}
table.wikitable > tr > th, table.wikitable > * > tr > th {
    background:var(--colour-table-strong);
    border:1px solid var(--colour-border);
}
table.wikitable > tr:nth-child(odd) > td, table.wikitable > * > tr:nth-child(odd) > td {
    background:var(--colour-table-row);
    border:1px solid var(--colour-border);
}
table.wikitable > tr:nth-child(even) > td, table.wikitable > * > tr:nth-child(even) > td {
    background:var(--colour-table-row-alt);
    border:1px solid var(--colour-border);
}

/* don't interpolate images in galleries */
ul.gallery img, table.filehistory img, table.listfiles img, table.searchResultImage img {
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

/* hide "Main Page" on the main page */
body.page-Main_Page :is(h1) {
    display:none;
}

/* RecentChanges/history */
.mw-plusminus-pos {
    color:var(--colour-text-plus);
}
.mw-plusminus-neg {
    color:var(--colour-text-minus);
}
.mw-plusminus-null {
    color:var(--colour-text-zero);
}
.diff-addedline {
    border-color:var(--colour-diff-add);
    background:rgb(from var(--colour-diff-add) r g b / 0.125);
}
.diff-addedline .diffchange {
    background:rgb(from var(--colour-diff-add) r g b / 0.5);
}
.diff-deletedline {
    border-color:var(--colour-diff-remove);
    background:rgb(from var(--colour-diff-remove) r g b / 0.125);
}
.diff-deletedline .diffchange {
    background:rgb(from var(--colour-diff-remove) r g b / 0.5);
}
.diff-context {
    border-color:var(--colour-diff-neutral);
    background:rgb(from var(--colour-diff-neutral) r g b / 0.125);
}