Black background on Index Off page since last update

#1
Hello,

We have identified a problem when accessing a link that has no files and displays the INDEX OFF page, the background to the page being black since the last update.

Attached is a screenshot of what the page looks like

How can we fix this so that the background is no longer black?


We are using:

- OS CloudLinux v7.9.0
- Litespeed 6.2.1 (build 1)
 
Last edited:

abk

Administrator
Staff member
#2
We added this on version 6.2 build 5:
[Tuning] Add dark mode for server generated error page and directory index page.
The background color will depend on your browser color mode set.
 
#3
Hello,

Please let us know if you are going to make a change so that the page is completely black or will it stay how is it?

Because now half of the page is black and half is white according to the attached screenshot.
 

serpent_driver

Well-Known Member
#4
@Hosterion Support

Locate error documents (*.shtml) on your server and remove the css style in these files:
Code:
<style>@media (prefers-color-scheme:dark){body{background-color:#000!important}}</style>
Unfortunately, the LiteSpeed interpretation of the color scheme is incomplete and therefore only changes the background color of the <body> tag.
 
Top