Change block text colour or background colour

Change block text colour or background colour

by santap coordinator -
Number of replies: 1

Hi, I'm using Moodle 2.6.1+ and recently added the Course completion status block, however the text area is white and our block text is also set to white - all our other blocks have a black background so the white text is great. I've seen on the forums how to change the block text colour but that would change it for all blocks. Just need to find a way to make the text in the Course completion status block visible without changing the text colour for other blocks. Any suggestions? Thanks smile


Snip of course completion status block with text highlightedSnip of course completion status block

Average of ratings: -
In reply to santap coordinator

Re: Change block text colour or background colour

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi,

What is stopping you making that block content, all black, to match your site?

.block_course_status_tracker.block .content { background-color: #000000 !important; }

Or if you just want to change the text color then this should work:

.block_course_status_tracker.block .content { color: #000000 !important; }

Cheers

Mary