User:Canadabonk/sandbox.js: Difference between revisions
Content deleted Content added
Canadabonk (talk | contribs) No edit summary Tag: Reverted |
Canadabonk (talk | contribs) No edit summary Tag: Reverted |
||
Line 1:
$('head link[rel=stylesheet]').first().after('<style>' + newCSSRules + '</style>');
$(document).ready(function(){
if ($('body.skin-cosmos').length) {
Line 48 ⟶ 69:
}`;
▲ const newCSSRules = `
▲ body {
▲ background-color: var(--main-background-color);
▲ }
▲ #mw-content, #catlinks, .mw-prefs-buttons, #managewiki .managewiki-submit-formfields {
▲ background: var(--content-background-color);
▲ }
▲ body .oo-ui-tabOptionWidget, body #mw-content, body #mw-content-text {
▲ color: var(--text-color);
▲ }
▲ #mw-content a:not(.new) {
▲ color: var(--link-color);
▲ }
▲ `;
$('head link[rel=stylesheet]').first().after('<style>' + newCSSVariables
$('#printCSSVars').append(
|