RSS Feed/News CSS command to determine Light or Dark theme?

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
21,434
Points
823

Reputation:

I need to change the header background based on whether the light or dark mode is currently in use.
Each of the two requires a different color header.

This isn't working for me:

Code:

Code:
/* Light theme - Change header background color */
[data-theme="light"] .p-header, [data-theme="light"] .p-header-inner {
    background-color: #bdad7b !important;
}

/* Dark theme - Revert to original header color */
[data-theme="dark"] .p-header, [data-theme="dark"] .p-header-inner {
    background-color...

Read more

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