Calendar - How do I color Event in Big Calendar [SOLVED]
Posted: Wed Feb 20, 2008 6:58 pm
HI All,
I'm using CMS MS 1.2.3 with Calendar 0.7.13
I'm wracking my brains trying to figure this out:
I'm using the big calendar on a page by itself. I'd like to highlight the squares (or cells) on the calendar that have an event... basically, if there is an event on Feb 23rd, I want the color of the square to be different.
Thanks for any help!
Below is my Calendar CSS if that helps:
/*
Example stylesheet for Calendar module
For using this "big"-class insert something like this in your page
or template;
{cms_module module='Calendar' table_id='big'}
*/
/* make all links red */
.calendar tr td a
{
color: white;
background-color: red;
font-size: 1.3em;
font-weight: bold;
}
.calendar tr td a:hover
{
color: red;
background-color: white;
font-size: 1.3em;
font-weight: bold;
}
/* highlight "today" for the small calendar */
.calendar-today
{
font-weight: bold;
}
/* display the "upcominglist" as one line per entry (assuming table_id='cal-upcominglist') */
#cal-upcominglist .calendar-date-title
,#cal-upcominglist .calendar-summary-title
{
display: none;
}
#cal-upcominglist h2
,#cal-upcominglist .calendar-date
,#cal-upcominglist .calendar-summary
{
display: inline;
margin-right: 5px;
}
/* tidy up text sizes for lists */
#cal-list h1, #cal-upcominglist h1
{
color: red;
font-size: 130%;
}
#cal-list h2, cal-upcominglist h2
{
font-size: 120%;
}
/** large calendar rules (assuming table_id='big') **/
/* border on for #big */
#big{
margin: 0px;
border-collapse: collapse;
border: 1px solid black;
}
/* nice squares for the #big table */
#big th
{
border: 1px solid black;
padding: 3px;
width: 75px;
}
#big td {
border: 1px solid black;
vertical-align: top;
padding: 3px;
height: 75px;
width: 75px;
}
/* format summaries nicely in #big */
#big ul
{
margin: 0px;
padding: 0px;
padding-left: 5px;
}
#big li
{
list-style-type: none;
padding: 0px;
margin: 0px;
}
/* background colours for #big */
#big td
{
background-color: #cccccc;
}
#big .calendar-day
{
background-color: #ffffff;
}
#big .calendar-today
{
font-weight: normal;
background-color: #6699cc;
}
.calendar-event .calendar-date-title,
.calendar-event .calendar-summary-title,
.calendar-event .calendar-details-title
{
font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
display: none;
}
I'm using CMS MS 1.2.3 with Calendar 0.7.13
I'm wracking my brains trying to figure this out:
I'm using the big calendar on a page by itself. I'd like to highlight the squares (or cells) on the calendar that have an event... basically, if there is an event on Feb 23rd, I want the color of the square to be different.
Thanks for any help!
Below is my Calendar CSS if that helps:
/*
Example stylesheet for Calendar module
For using this "big"-class insert something like this in your page
or template;
{cms_module module='Calendar' table_id='big'}
*/
/* make all links red */
.calendar tr td a
{
color: white;
background-color: red;
font-size: 1.3em;
font-weight: bold;
}
.calendar tr td a:hover
{
color: red;
background-color: white;
font-size: 1.3em;
font-weight: bold;
}
/* highlight "today" for the small calendar */
.calendar-today
{
font-weight: bold;
}
/* display the "upcominglist" as one line per entry (assuming table_id='cal-upcominglist') */
#cal-upcominglist .calendar-date-title
,#cal-upcominglist .calendar-summary-title
{
display: none;
}
#cal-upcominglist h2
,#cal-upcominglist .calendar-date
,#cal-upcominglist .calendar-summary
{
display: inline;
margin-right: 5px;
}
/* tidy up text sizes for lists */
#cal-list h1, #cal-upcominglist h1
{
color: red;
font-size: 130%;
}
#cal-list h2, cal-upcominglist h2
{
font-size: 120%;
}
/** large calendar rules (assuming table_id='big') **/
/* border on for #big */
#big{
margin: 0px;
border-collapse: collapse;
border: 1px solid black;
}
/* nice squares for the #big table */
#big th
{
border: 1px solid black;
padding: 3px;
width: 75px;
}
#big td {
border: 1px solid black;
vertical-align: top;
padding: 3px;
height: 75px;
width: 75px;
}
/* format summaries nicely in #big */
#big ul
{
margin: 0px;
padding: 0px;
padding-left: 5px;
}
#big li
{
list-style-type: none;
padding: 0px;
margin: 0px;
}
/* background colours for #big */
#big td
{
background-color: #cccccc;
}
#big .calendar-day
{
background-color: #ffffff;
}
#big .calendar-today
{
font-weight: normal;
background-color: #6699cc;
}
.calendar-event .calendar-date-title,
.calendar-event .calendar-summary-title,
.calendar-event .calendar-details-title
{
font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
display: none;
}