reDesign2 and CPGNuCalendar Small Month Block on Right

For my developed themes, specially reDesign. Please make different topic for every problem.
Reply to topicReply to topic Printer Friendly Page
Forum FAQSearchView unanswered posts

reDesign2 and CPGNuCalendar Small Month Block on Right

Post Posted: 4.03.09. 17:49:39

If you use CPGNuCalendar with reDesign2 on a left block all is fine. However if on a right block the resulting block is all washed out looking. This is caused by
Code:
#pe601 .block a, #pe601 .block a:link, #pe601 .block a:visited {
  text-decoration: none;
  color: #E9E9E9;
}
#pe601 .block a:hover {
  text-decoration: underline;
  color: #E9E9E9;
}

Which inverts the text colour. But CPGNuCalendar has a light background, is not templated, nor does it use CSS. Here's my solution:

In block-CPGNuCalendar_Small_Month.php add the new span clause:
PHP:
$content = '<span class="nucalblk"><table border="0" cellpadding="0" cellspacing="0" width="100%">';
and close it at the end:
PHP:
$content .= "</table></span>\n";

Then add the following to style.css:
Code:
#pe601 .block .nucalblk a:hover {
  text-decoration: underline;
  color: #2277EE;
}
#pe601 .block .nucalblk a, #pe601 .block .nucalblk a:link, #pe601 .block .nucalblk a:visited {
  text-decoration: none;
  color: #2277EE;
}
#pe601 .block .nucalblk {
  color: #222;
}

There may well be better ways...

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
L:U8.1/A:2.2.8/M:5.0.51a/P5.2.5/D:9.2.1

layingback
Tõusmas kõrgemale
Tõusmas kõrgemale
 

Re: reDesign2 and CPGNuCalendar Small Month Block on Right

Post Posted: 5.03.09. 09:00:50

It's not "validating" actually, if table is inside a span, however if it's in div, all is fine. Thanks for the fix, I'm sure someone else finds it useful aswell.

EDIT: Or just add nucalblk class to the table itself.

Madis's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.5/9.2.1

Madis
Administraator
Administraator
 
Page 1 of 1



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum