How can i call image into scss file moodle 3.7

How can i call image into scss file moodle 3.7

by Malai Kartyun -
Number of replies: 2

Hello,

How can i call a simple image into scss file.

.sldr-prv {background-image:url([[pix:theme|prev]]);}

This is not working.

Thank You

Advance.

Average of ratings: -
In reply to Malai Kartyun

Re: How can i call image into scss file moodle 3.7

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Define "not working"? What CSS is generated... especially when you "Inspect" in your browser.?
In reply to Malai Kartyun

Re: How can i call image into scss file moodle 3.7

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers

I am not sure exactly what you are doing, but your post caught my attention.

I don't know what version of Moodle you are using or what theme.  However, I gave a presentation at MoodleMoot in 2017 that might provide you some insight.  I use Boost.  Yes, I also use a "background" image.  There are probably countless ways to do what you want to do.  I define the location of my background image in my Preset file, but the image is actually on my website.  This is how I do it, but it might not be "standard."

Anyway, here is a link to my presentation and some resources.

MoodleMoot2017 (US and Mountain), "Making Boost do MORE"