CSS Style Sheets?

CSS Style Sheets?

by Kevin Burton -
Number of replies: 2

I was looking at http://docs.moodle.org/dev/CSS_coding_style and it states that style sheets in plugins are typically named styles.css.

.block_simplehtml { border: 1px black solid}

This was a example in http://docs.moodle.org/dev/Blocks. I put this file in a simplehtml block plugin and there was no effect. Should it be named something else? Maybe put somewhere else?

Thank you.

Average of ratings: -
In reply to Kevin Burton

Re: CSS Style Sheets?

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Have you cleared the theme cache - changes in CSS files are not picked up until you do so.

From the admin settings you can either purge all caches or switch on 'theme designer mode'.

Within your plugin you can increase the version number, which will trigger an upgrade (which includes clearing caches).

In reply to Kevin Burton

Re: CSS Style Sheets?

by Mary Evans -

If you donlt see any effect in any Moodle theme, then what Davo says is more than likely the cache. Try enabeling Theme Designer Mode on the other hand if you are testing it in Moodle 2.5+ and using Clean theme or any other Bootstrapbase theme then the problem is perhaps the theme itself as Bootstrapbase excludes block styles.css.

Cheers

Mary