Raw SCSS in Moove not working

Re: Raw SCSS in Moove not working

by Andrew Edmondson -
Number of replies: 6
Thanks for spotting this. I need to read more carefully. I'll try it out.
In reply to Andrew Edmondson

Re: Raw SCSS in Moove not working

by Andrew Edmondson -
I made the correction but still have the same problem.
PS I've also enrolled on a CSS course.
In reply to Andrew Edmondson

Re: Raw SCSS in Moove not working

by Andrew Edmondson -
I also edited directly the frontpage.scss file directly.
When I inspect using chrome, the old code is still there.

OK I added !important to each element and it worked.
I still don't understand why directly editing frontpage.scss didn't work though.
In reply to Andrew Edmondson

Re: Raw SCSS in Moove not working

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers
Oh, sorry I missed the other basic mistake - are they classes or ids? I don't have Moove, but I think on my Moodle they are all IDs?

It should probably be:

#page-site-index.notloggedin #page-header {
background-color: rgb(0,0,0);
}
#page-site-index.notloggedin #page {
background-color: rgb(0,0,0);
}

(IDs #, classes . )

Edit: re editing the scss file directly, did you then purge all/theme caches, as Moodle's css is cached.
In reply to Richard Oelmann

Re: Raw SCSS in Moove not working

by Andrew Edmondson -
When I inspect the header image in Chrome, this is highlighted.

Does deleting cache in Chrome delete the theme caches?

Thanks for the replies. Getting there.
In reply to Andrew Edmondson

Re: Raw SCSS in Moove not working

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers
No, Chrome browser cache and Moodle's own caching are two different things.
You need to go to Site Admin > Development > Purge Caches (There may be a link in your footer). I usually keep that open on a separate tab when I'm working on css things.
In reply to Richard Oelmann

Re: Raw SCSS in Moove not working

by Andrew Edmondson -
Thanks very much.

I've almost completed the Front page.

Just one last question (or I could make a separate post?).

Because I put a footer image, it overlaps the rest of the footer apart from the Home page.
Can I remove the footer from all pages apart from the Home page (without login)?