RSS Feed/News How to use an image with variations as a background image

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
25,815
Points
823

Reputation:

I might be missing smth, but it seems like I am unable to figure out how to use an image with variations (like publicLogoUrl) as a background image.

Smth. like
Code:

Code:
#myid
{
    background-image: url({$xf.style.getPropertyVariation('publicLogoUrl', 'default'});

.m-colorScheme(dark {
        background-image: url({$xf.style.getPropertyVariation('publicLogoUrl', 'alternate'});
    });
}
might work, but that seems pretty complicated (and kinda inefficient) - there must be a...

Read more

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