RSS Feed/News Indicate if a style is dark or light for scroll-bars to match

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,735
Points
823

Reputation:

Sites such as Google and MDN Web Docs style the scrollbar according to the user's light/dark mode preference on said websites via the use of the color-scheme CSS property. XF has it defined if a style is light or dark, but this is not pushed thought to the CSS.

Ie something like this:
SQL:

Code:
:root {
<xf:if is="property('styleType') === 'dark' ">
    color-scheme: dark;
<xf:else />
    color-scheme: light;
</xf:if>
}

Continue reading...
 
Status
Not open for further replies.
Top