EventCalendarPro - where's the CSS?

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
4/13/2011 2:30:54 PM
Gravatar
Total Posts 355

EventCalendarPro - where's the CSS?

I'm working with EventCalendarPro for the first time for a new client; the default grey doesn't work well with the color scheme, but I don't seem to be able to figure out what CSS will work, even with FireBug - help?

4/13/2011 4:12:45 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: EventCalendarPro - where's the CSS?

Hi there. The Event Calendar Pro CSS is located in the file styledatacalendar.css. You'll probably want to play with the background-color choices for the different days.

Jamie

4/14/2011 12:43:55 PM
Gravatar
Total Posts 355

Re: EventCalendarPro - where's the CSS?

Jamie, I don't think that's quite the case; looking at the grid via FireBug, those classes aren't invoked, and editing the classes isn't having any effect.  The only class I seem to be able to identify is .eventcalendar - I can get some limited formatting with it, but not nearly at the level of control I need, especially with the way everything's nested.  Do you have any example CSS for a customized Pro Calendar?

4/14/2011 12:59:25 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: EventCalendarPro - where's the CSS?

If you right click on a weekend day, and select inspect element, on the td you should see a CSS class of mpcalendarweekendday. That selector, and the others for ECP, are located in styledatacalendar.css for your skin. If changes you make there aren't being reflected immediately in your site, you may just need to turn off caching, by adding the following keys to your user.config. Touch web.config after making this change, and be sure to set these back to true for production.

   <add key="CombineCSS" value="false" />
   <add key="MinifyCSS" value="false" />
   <add key="CacheCssOnServer" value="false"/>
   <add key="CacheCssInBrowser" value="false"/>

There is one other possibility: Are you trying to style the built-in Event Calendar, rather than Event Calendar Pro? If so, those selectors are located in styleaspcalendar.css

Hope that helps.

Jamie

4/14/2011 1:27:18 PM
Gravatar
Total Posts 355

Re: EventCalendarPro - where's the CSS?

Sorry - I realized that I needed to clarify; I'm trying to edit the header/sidebar on the week/day views, which don't seem to use the same classes.  Regular "month" view is working with the css as expected.  Any tips there?

4/14/2011 1:41:19 PM
Gravatar
Total Posts 2239

Re: EventCalendarPro - where's the CSS?

Hi,

Unfortunately those areas do not have many, if any, classes that you can work with. You can create selectors like:

.eventdayview .modulecontent > table tbody > tr > td:first-child td {background-color: green !important;} This will make the left column with the times green on the Day View page.

Hope this gets you going in the right direction.

-Joe D.

4/14/2011 2:30:38 PM
Gravatar
Total Posts 355

Re: EventCalendarPro - where's the CSS?

Joe,

Thanks - that does put me in the right direction - but what a mess! I think I'll put in a feature request to extend the .css classes to all views of the Pro Event Calendar.  The help's much appreciated!

4/14/2011 3:12:00 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: EventCalendarPro - where's the CSS?

Thanks for jumping in, Joe. You truly are the CSS guru around here! cool

12/29/2011 7:42:50 PM
Gravatar
Total Posts 4

Re: EventCalendarPro - where's the CSS?

Where do I change the text color of the day number? When I inspect the element I find  - div class ="dayNumber". Changing the font colors for "mpcalendarday" has no effect. Have I overridden this control somewhere?

12/30/2011 6:36:34 AM
Gravatar
Total Posts 18439

Re: EventCalendarPro - where's the CSS?

Hi,

You'll have to use more specific CSS selectors and you may need different colors on different days in some cases. For example in many of the included skins in styledatacalendar.css I had to make the day number black like this, but you can use whatever colors work for you:

.mpcalendarweekendday .dayNumber a,
.mpcalendarothermonth .dayNumber a,
.mpcalendartoday .dayNumber a
{color:black;}

Note that the day numbers are links which otherwise would get their colors form other selectors for links so you have to explicitely specify the a as part of the selector as shown above.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.