Page 1 of 1

Color of calendar mod !!!_SOLVED_!!!

Posted: Tue Feb 27, 2007 3:05 pm
by jans
Hi I have installed the calendar module and I have a few small questions;

I like to have the top tablerow (header) in the same color as my cms standard template
I have managed to get the calendar body color to whit (want it that way) and the today color on a shade of grey.

How do I get the top row in another color and can someone give me an explanation of the calendar tags that can e altered ex: font type, font color, table bckgr color  etc.

Re: Color of calendar mad

Posted: Tue Feb 27, 2007 3:22 pm
by heatherfeuer
Check under admin-->layout-->stylesheets.  When you install the Calendar module, a sample stylesheet is put there.  All the CSS for the Calendar templates is in there. 

What I did was to copy the templates into my favorite text editor (EditPlus) and indent all the html code so it made sense to me.  That way I was able to see all the divs and spans that are used for the CSS.  That also helped me to understand the styles.  Then I began to play around with the Calendar stylesheet to make it look the way I wanted.

I'm not much of a php coder, so it took me awhile to figure out the code in the templates, but I was able to figure out the html.  My calendar turned out looking exactly like the rest of the site.

Re: Color of calendar mad

Posted: Tue Feb 27, 2007 3:37 pm
by jans
Don't understand me wrong but this kinda comment does not help me with wat I want to know.

I asked a clear question, please restrict comments on the asked things only, otherwise this topic drowns like all others in a no-sense discussion, I too am not a coder and what you suggest does not make any sense to me, why do this if someon already has the answer.

Thanks anyway

Re: Color of calendar mad

Posted: Tue Feb 27, 2007 4:27 pm
by heatherfeuer
I'm sorry you didn't find that first response clear.  As far as I know (having customized the calendar module myself), all the calendar tags are customizable using the sample calendar stylesheet.  The following CSS tag affects the style of the table row headers:

Code: Select all

#big th {
	border: 1px solid #440062;
	background-color: #aa57ff;
	color: #fffde8;
	padding: 3px;
	width: 75px;
	text-align: center;
}
Is that what you were looking for?

Re: Color of calendar mad

Posted: Tue Feb 27, 2007 6:04 pm
by jans
Yessss, you are the greatest, that's what I meant, thanks.