[Zope-CMF] bugs and problems with default_stylesheet and NS4 hack

marc lindahl marc@bowery.com
Mon, 28 May 2001 19:17:58 -0400


In working with skins, I've found the following about
default_stylesheet.dtml (discovered, trying to do a color scheme with black
background):


** There's a bug in this color:

table.Masthead tr.Navhead td.NavBar {
    color: &dtml-secondary_accent_font_color;;
    font-size: 60%;
    font-weight: normal;
    text-align: left;
    vertical-align: bottom;
}

(currently it's color: &dtml-secondary_accent_color;;)

** need to add color here:

tr.NewsItemRow td {
    background-color: &dtml-highlight_color;;
    color: &dtml-highlight_font_color;;
    font-size: 70%;
}


(currently not called out, so it defaults to base_font_color)


** These should should be in stylesheet_properties instead of fixed values:

.mild {
    color: #7f7f7f;
}

.DesktopStatusBar{
  color: #ff0000;
}


************
Also, in standard_html_header, the following HACK will cause NS4 to show
default text in the proper color (because NS4 thinks stylesheets are for
sissies):

<dtml-comment> HACKs for NS 4.x </dtml-comment>
<layer top="0" left="0" width="100%">
<dtml-with stylesheet_properties>
<body text="&dtml-base_font_color;">
</dtml-with>
<dtml-comment> END OF HACKS </dtml-comment>

in other words, wrap the <BODY> tag.

************


just my $0.02,
Marc