MediaWiki:Gadget-colorRC.css

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 17:14, 17 October 2024. The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

After saving, you may need to bypass your browser's cache to see the changes. For further information, see Wikipedia:Bypass your cache.

  • In most Windows and Linux browsers: Hold down Ctrl and press F5.
  • In Safari: Hold down ⇧ Shift and click the Reload button.
  • In Chrome and Firefox for Mac: Hold down both ⌘ Cmd+⇧ Shift and press R.
/**
* Color certain namespaces in RecentChanges
* @todo: add something to distinguish watched pages (since this already bolds by default)
*
* This gadget is enabled for mobile too, so ensure that all CSS styling done here makes
* sense for those viewing the wiki from a mobile device.
*/

/* fix this issue <https://css-tricks.com/multi-line-padded-text/> */
.mw-changeslist-title {
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.mw-changeslist-ns-10 .mw-changeslist-title:not(.new),
.mw-changeslist-ns-828 .mw-changeslist-title:not(.new),
.mw-changeslist-ns-110 .mw-changeslist-title:not(.new),
.mw-changeslist-ns-1 .mw-changeslist-title:not(.new),
.mw-changeslist-ns-11 .mw-changeslist-title:not(.new),
.mw-changeslist-ns-8 .mw-changeslist-title:not(.new),
.mw-changeslist-ns-4 .mw-changeslist-title:not(.new),
.mw-changeslist-ns-6 .mw-changeslist-title:not(.new) {
    font-weight: bold;
    padding: 1px 4px;
    margin-left: -4px;
    border-radius: 3px;
}

/* red */
/* template, module */
.mw-changeslist-ns-10 .mw-changeslist-title:not(.new),
.mw-changeslist-ns-828 .mw-changeslist-title:not(.new) {
    background: #ffe5e4;
    color: #b4312d;
}

/* orange */
/* forum, talk, template talk */
.mw-changeslist-ns-110 .mw-changeslist-title:not(.new),
.mw-changeslist-ns-1 .mw-changeslist-title:not(.new),
.mw-changeslist-ns-11 .mw-changeslist-title:not(.new) {
    background: #ffecd9;
    color: #d47300;
}

/* green */
/* mediawiki */
.mw-changeslist-ns-8 .mw-changeslist-title:not(.new) {
    background: #ecfbe0;
    color: #619335;
}

/* blue */
/* runescape */
.mw-changeslist-ns-4 .mw-changeslist-title:not(.new) {
	color: #327ba7;
    background: #ebf3f6;
}

/* purple */
/* file */
.mw-changeslist-ns-6 .mw-changeslist-title:not(.new) {
    background: #f0eafa;
    color: #766698;
}

/* DARK MODE
   just inverting background/text colors for now */

.wgl-theme-dark .mw-changeslist-ns-10 .mw-changeslist-title:not(.new),
.wgl-theme-dark .mw-changeslist-ns-828 .mw-changeslist-title:not(.new),
.wgl-theme-browntown .mw-changeslist-ns-10 .mw-changeslist-title:not(.new),
.wgl-theme-browntown .mw-changeslist-ns-828 .mw-changeslist-title:not(.new) {
    background: #b4312d;
    color: #ffe5e4;
}

.wgl-theme-dark .mw-changeslist-ns-110 .mw-changeslist-title:not(.new),
.wgl-theme-dark .mw-changeslist-ns-1 .mw-changeslist-title:not(.new),
.wgl-theme-dark .mw-changeslist-ns-11 .mw-changeslist-title:not(.new),
.wgl-theme-browntown .mw-changeslist-ns-110 .mw-changeslist-title:not(.new),
.wgl-theme-browntown .mw-changeslist-ns-1 .mw-changeslist-title:not(.new),
.wgl-theme-browntown .mw-changeslist-ns-11 .mw-changeslist-title:not(.new) {
    background: #d47300;
    color: #ffecd9;
}

.wgl-theme-dark .mw-changeslist-ns-8 .mw-changeslist-title:not(.new),
.wgl-theme-browntown .mw-changeslist-ns-8 .mw-changeslist-title:not(.new) {
    background: #619335;
    color: #ecfbe0;
}

.wgl-theme-dark .mw-changeslist-ns-4 .mw-changeslist-title:not(.new),
.wgl-theme-browntown .mw-changeslist-ns-4 .mw-changeslist-title:not(.new) {
    background: #438ab5;
    color: #ebf3f6;
}

.wgl-theme-dark .mw-changeslist-ns-6 .mw-changeslist-title:not(.new),
.wgl-theme-browntown .mw-changeslist-ns-6 .mw-changeslist-title:not(.new) {
    background: #766698;
    color: #f0eafa;
}