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

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

av Jonathan Drinkwater -
Antall svar: 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

Gjennomsnittlig vurdering: -
Som svar til Jonathan Drinkwater

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

av 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
Vedlegg calendar.jpg
Som svar til Luca Bagna

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

av Joseph Rézeau -
Bilde av Core developers Bilde av Particularly helpful Moodlers Bilde av Plugin developers Bilde av Testers Bilde av 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