mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-27 20:30:05 +00:00
284aff8d40
Use a white, rather than transparent, background for logo, making it viewable in dark mode. A bit better emulation of dark mode in the readthedocs theme, which does not handle it "naturally".
11 lines
536 B
JavaScript
11 lines
536 B
JavaScript
(function(){
|
|
document.documentElement.style.filter = document.documentElement.style.filter ? '' : 'invert(100%) hue-rotate(180deg)';
|
|
const images = document.querySelectorAll('img');
|
|
images.forEach(img => { if (img.alt != 'Logo') img.style.filter = 'invert(100%) hue-rotate(180deg)';});
|
|
if (document.body.getAttribute('data-md-color-scheme') == 'slate') {
|
|
document.body.setAttribute('data-md-color-scheme', 'default');
|
|
} else {
|
|
document.body.setAttribute('data-md-color-scheme', 'slate');
|
|
}
|
|
})();
|