User:Canadabonk/sandbox.js: Difference between revisions
Content deleted Content added
Canadabonk (talk | contribs) No edit summary |
Canadabonk (talk | contribs) No edit summary |
||
Line 6:
linkColor = $('.wds-list.wds-is-linked li:hover > a').css('color');
mw.util.addCSS(newCSSVariables);▼
const newCSSVariables = `
:root {
Line 13 ⟶ 11:
}
`;
▲ mw.util.addCSS(newCSSVariables);
|
Revision as of 15:30, 12 June 2024
$(document).ready(function(){
const
mainBackgroundColor = $('body').css('background-color'),
contentBackgroundColor = $('#mw-content').css('background-color'),
fontColor = $('#mw-content').css('color'),
linkColor = $('.wds-list.wds-is-linked li:hover > a').css('color');
const newCSSVariables = `
:root {
--main-background-color: ${mainBackgroundColor};
}
`;
mw.util.addCSS(newCSSVariables);
});