How Do I Change A Colour In The Main Calendar???

How Do I Change A Colour In The Main Calendar???

by Jonathan Drinkwater -
Number of replies: 3

Hi, we have our css pretty much sorted except for this one little problem that we just can't seem to figure out. We have a new theme and have tweaked a number of colour settings in the styles_color.php to customise it. You'll have to take a look at the attachment to see what I mean, but we want to change the black background on events in the main calendar page, to something else because it doesn't stand out very well at the moment. Can anyone tell me which setting i'd need to change or add???

Any help is appreciated

regards,

Jonathan

Average of ratings: -
In reply to Jonathan Drinkwater

Re: How Do I Change A Colour In The Main Calendar???

by Luca Bagna -
Hi Jonathan,
my personal suggestion: create three classes in your styles_color.php
.topic
.picture
.side
and apply the background-color:#XXXXXX property following your needs.
I hope this help
Luca
Attachment calendar.jpg
In reply to Luca Bagna

Re: How Do I Change A Colour In The Main Calendar???

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Luca!

The problem with your suggestion is that it is potentially too far ranging. There are other objects in Moodle to which the .side, .picture and .side classes can be applied.

If Jonathan only wants to change the color background of those classes within the context of the calendar "main page", i.e. the daily view, then the following classes should be used:

#calendar .maincalendar .eventlist .topic {...}

#calendar .maincalendar .eventlist .picture {...}

#calendar .maincalendar .eventlist .side {...}

Hope that helps,

Joseph