• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Calendar Font Changes

Calendar Font Changes 11 years 2 weeks ago #27269

Hello,

I am trying to change the calendar to only have Saturday and Sunday as selectable options. I have managed to do this with the following style script in the CSS declarations form.

<style>
.yui-calendar .wd1, .wd2, .wd3, .wd4, .wd5 {
pointer-events: none;
cursor: default;
}
</style>

However the calendar is still non-intuitive, although Mon-Fri are non selectable, the cells still have similar cell styles i.e. the dates through the whole month still appear to be blue with a white background. How do you do one of the following...

1) Change the CSS style of the weekday cells to change the colour font and background colour of weekday cells?
or
2) In a similar way that when using mindate/maxdate, dates outside of the range become unselectable and greyed out, how can this be done for all weekdays?

My scripting knowledge is limited so please be detailed in your answers...

Many Thanks
The administrator has disabled public write access.

Calendar Font Changes 11 years 2 weeks ago #27270

Figured it out through trial and error... not sure if there is a more elegant way to write this...

<style>
.yui-calendar .wd1, .wd2, .wd3, .wd4, .wd5 {
pointer-events: none;
cursor: default;
}

.yui-calendar td.calcell.wd1 a {
color:#E0E0E0;
}

.yui-calendar td.calcell.wd2 a {
color:#E0E0E0;
}

.yui-calendar td.calcell.wd3 a {
color:#E0E0E0;
}

.yui-calendar td.calcell.wd4 a {
color:#E0E0E0;
}

.yui-calendar td.calcell.wd5 a {
color:#E0E0E0;
}
</style>
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!