MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary Tag: Reverted |
||
| Line 40: | Line 40: | ||
container.appendChild(wrap); | container.appendChild(wrap); | ||
}); | |||
mw.loader.using([], function () { | |||
mw.util.addCSS(` | |||
body.mw-specialpage, body.mw-specialpage .mw-page-container, body.mw-specialpage #content { | |||
background:#fff !important; | |||
color:#32302f !important; | |||
} | |||
body.mw-specialpage a, body.mw-specialpage a:visited { color:#32302f !important; } | |||
body.mw-specialpage .oo-ui-inputWidget-input, | |||
body.mw-specialpage .oo-ui-textInputWidget input, | |||
body.mw-specialpage .oo-ui-textInputWidget textarea, | |||
body.mw-specialpage .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle { | |||
background:#fff !important; | |||
color:#32302f !important; | |||
border-color:#cfc7c0 !important; | |||
} | |||
body.mw-specialpage .mw-htmlform input[type="text"], | |||
body.mw-specialpage .mw-htmlform input[type="password"], | |||
body.mw-specialpage .mw-htmlform input[type="email"], | |||
body.mw-specialpage .mw-htmlform input[type="search"], | |||
body.mw-specialpage .mw-htmlform textarea, | |||
body.mw-specialpage .mw-htmlform select { | |||
background:#fff !important; | |||
color:#32302f !important; | |||
border-color:#cfc7c0 !important; | |||
} | |||
`); | |||
}); | }); | ||
Revision as of 20:12, 24 December 2025
/* =========================================================
Lumenward: Top header links (Vector 2022, SAFE)
Places GitHub + Discord next to the logo (left lane)
========================================================= */
mw.loader.using(['mediawiki.util'], function () {
if (document.getElementById('lumenward-header-links')) return;
var container =
document.querySelector('.vector-header-start') ||
document.querySelector('.mw-header');
if (!container) return;
var wrap = document.createElement('div');
wrap.id = 'lumenward-header-links';
wrap.style.display = 'inline-flex';
wrap.style.gap = '14px';
wrap.style.marginLeft = '16px';
wrap.style.alignItems = 'center';
var links = [
{ text: 'GitHub', url: 'https://github.com/Lumenward' },
{ text: 'Discord', url: 'https://discord.gg/njRyZDRZ' },
{ text: 'Telegram', url: 'https://t.me/lumenward1' }
];
links.forEach(function (l) {
var a = document.createElement('a');
a.href = l.url;
a.textContent = l.text;
a.target = '_blank';
a.rel = 'noopener';
a.style.fontWeight = '600';
a.style.textDecoration = 'none';
a.style.color = '#000';
wrap.appendChild(a);
});
container.appendChild(wrap);
});
mw.loader.using([], function () {
mw.util.addCSS(`
body.mw-specialpage, body.mw-specialpage .mw-page-container, body.mw-specialpage #content {
background:#fff !important;
color:#32302f !important;
}
body.mw-specialpage a, body.mw-specialpage a:visited { color:#32302f !important; }
body.mw-specialpage .oo-ui-inputWidget-input,
body.mw-specialpage .oo-ui-textInputWidget input,
body.mw-specialpage .oo-ui-textInputWidget textarea,
body.mw-specialpage .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle {
background:#fff !important;
color:#32302f !important;
border-color:#cfc7c0 !important;
}
body.mw-specialpage .mw-htmlform input[type="text"],
body.mw-specialpage .mw-htmlform input[type="password"],
body.mw-specialpage .mw-htmlform input[type="email"],
body.mw-specialpage .mw-htmlform input[type="search"],
body.mw-specialpage .mw-htmlform textarea,
body.mw-specialpage .mw-htmlform select {
background:#fff !important;
color:#32302f !important;
border-color:#cfc7c0 !important;
}
`);
});