ASP.NET calendar styles hard-coded?

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
12/2/2009 4:16:34 PM
Gravatar
Total Posts 114

ASP.NET calendar styles hard-coded?

Hi guys!

Trying to make some minor changes to the ASP.NET calendar used on a blog content  type, and finding that some of the things seem to be hard-coded, like the text color for the .aspcalendarselectedday class. On looking at the element with FireBug, I'm finding the color I set in this class overriden by what appears to be a hard-coded style which specifies the color as White. I've tried setting this by creating a new selector for .aspcalendarselectedday a, .aspcalendarselectedday a:hover {color: #AE3C3E; } with no success; that gets overriden too. Any idea how I can make this honor a selector I specify?

Thanks!

Duane

 

12/3/2009 4:02:31 PM
Gravatar
Total Posts 18439

Re: ASP.NET calendar styles hard-coded?

Hi Duane,

Some of that stuff may be coming from the theme.skin file. If running in Full Trust it uses the theme.skin file from the skin folder but if in Medium Trust it uses the one from /App_Themes/Default

Hope it helps,

Joe

12/3/2009 4:27:46 PM
Gravatar
Total Posts 114

Re: ASP.NET calendar styles hard-coded?

Thanks, Joe; already looked there; no color stuff specified in theme.skin, so that's why I posted. Oh well; not a huge hairy deal.

Best!

Duane

 

12/10/2009 6:51:56 AM
Gravatar
Total Posts 32

Re: ASP.NET calendar styles hard-coded?

I'm having similar difficulty with changing the colour of links in. Any ideas?

 

12/10/2009 9:31:37 AM
Gravatar
Total Posts 2186

Re: ASP.NET calendar styles hard-coded?

Use this:

.aspcalendarday a {
  color: #FFF !important;
}

.aspcalendarweekendday a{
   color: #fc0000 !important;
}

.aspcalendarselectedday a{
    color: #000000 !important;
}

.aspcalendartoday a{
   color: #cc0000 !important;
}

.aspcalendarothermonth a{
   color: #660000 !important;
}

 

I just chose some random colors so you will need to adjust to whatever you want them to be. The key is the !important.

HTH,
Joe D.

12/10/2009 10:11:56 AM
Gravatar
Total Posts 32

Re: ASP.NET calendar styles hard-coded?

Hi,

That didn't work I'm afraid, its overided by:

element.style {

color:Black;

}

 

Cheers

Shaun

12/10/2009 10:26:12 AM
Gravatar
Total Posts 2186

Re: ASP.NET calendar styles hard-coded?

The !important always works because it overrides all styles, no matter where they are in the order of application.

Try touching the web.config (open and save it) to clear the server cache and then refresh the site in your browser. While working on any type of skinning, it is best to have these items set to false in your web.config (or user.config).

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

HTH,
Joe D.

12/14/2009 3:53:45 AM
Gravatar
Total Posts 32

Re: ASP.NET calendar styles hard-coded?

Smashing! Thanks very much, that worked a treat.

Cheers

Shaun

12/14/2009 11:07:43 AM
Gravatar
Total Posts 114

Re: ASP.NET calendar styles hard-coded?

Yup; that it does! Thanks, Joe!

Duane

 

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