Modifying past Dates - Change displayed color

Help with installation and general calendar setttings

Modifying past Dates - Change displayed color

Postby Dimi » Mon Jun 06, 2011 11:19 pm

Hi.

First of all a big 'Thank You' for this application. It's fantastic.

After having installed and modified the application only one problem remains to be solved.

Past dates are displayed in a light green colour and this is quite bad because i use a green colour to indicate available (future) dates. I have no idea how to change it, even a search didn't help.

Any idea how i can modify past dates or change the colour past dates are displayed with?

(Link to calendar: http://www.olympicbeach.info/fewocalender/?id_item=1&lang=de )

Thanks a lot for any help in advance.

Greets, Dimi
Dimi
 
Posts: 3
Joined: Mon Jun 06, 2011 11:10 pm

Re: Modifying past Dates - Change displayed color

Postby chris » Mon Jun 06, 2011 11:49 pm

Hi,
The past dates color is actually nothing more than the JavaScript modifying their opacity.
However, these dates have a the class "past" so you could simply add a new style to the calendar css style sheet like this to give them a different color:
Code: Select all
.cal_month ul li.past {
    background-color: red;
}

(I have used red to prove a point, you will probably want something subtler ;)
Of course you may also want to "turn off" the opacity, if so search for this line in the JavaScript file:
Code: Select all
el.set('opacity','0.6');


Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Modifying past Dates - Change displayed color

Postby chris » Mon Jun 06, 2011 11:51 pm

ah, just realized one thing about changing the background color of the past dates - this will mess up with the booking state colors. However this might not be a problem seeing as they are past dates and indeed you might prefer the calendar to not show the past dates booking states so this could be an advantage.

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Modifying past Dates - Change displayed color

Postby Dimi » Tue Jun 07, 2011 12:09 am

Dear Chris.

Thanks a lot.
Didn't think about adding a style for this code to the CSS.
Changes made, even turned off the opacity. Everything worked fine. :)

Regarding the problem with the booking state colors...no problem over here. I changed all colors because i use different ones. ;)

Thanks again for your help and the immediate respons to my post. :D :D

Dimi
Dimi
 
Posts: 3
Joined: Mon Jun 06, 2011 11:10 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron