mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-28 08:05:29 +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".
25 lines
594 B
CSS
25 lines
594 B
CSS
/*
|
|
Source - https://stackoverflow.com/a/64257055
|
|
Posted by hackape
|
|
Retrieved 2026-08-24, License - CC BY-SA 4.0
|
|
*/
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
html {
|
|
filter: invert(100%);
|
|
}
|
|
|
|
/* double apply invert filter to cancel out effect on images */
|
|
img:not([alt="Logo"]) {
|
|
filter: invert(100%);
|
|
}
|
|
|
|
/* Dark mode (slate scheme) alternating rows */
|
|
table tr:nth-child(2n) {background-color: #c0c0c0;}
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
/* Dark mode (slate scheme) alternating rows */
|
|
[data-md-color-scheme="slate"] table tr:nth-child(2n) {background-color: #c0c0c0;}
|
|
}
|