You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Maurice Lanselle <la...@evc.net> on 2005/06/09 14:52:50 UTC

Pelt skin details

Hello,

I've switched back to "presentation" for a little while: I'm a little 
less lost, and I like to play with color schemes. (but I will get back 
to new content processing soon!). I began by changing colors for pelt.  
To *protect* my changes, I

a) copied and renamed the pelt branch from core/context/skins to 
${project.content-dir}/skins,
  (i.e. src/documentation/skins/stucco/).
b) uncommented the line   project.skins-dir=${project.content-dir}/skins 
in forrest.properties, and
c) added an entry or project.skin=stucco, also in forrest.properties.

The output of 'forrest run' ended with

fetch-versioned-skin:
Trying to get "stucco" skin version
                         0.6...

BUILD FAILED
C:\temp\apache-forrest-0.6\src\core\targets\skins.xml:107: the following 
error occurred while executing this line:
C:\temp\apache-forrest-0.6\src\core\targets\skins.xml:119: the following 
error occurred while executing this line:
C:\...build\tmp\skinlist2fetchbuild.xml:7 
java.net.MalformedURLException: no protocol : stucco-0.6.zip

Move my renamed copy to core\context\skins  and commenting out the 
"project.skins-dir" resolved the problem.  But I would like to 
understand how "personal" skins are supposed to be located.

The little detail the annoys me concerns the rounded corners on the 
menu.  When I changed the "body" color I discovered that "body" in this 
skin is not what the content is written on, but what appears below the 
footer (when the page is short) and beneath the menu (in the "layers" 
sense).  So when I changed this color to not white, the "pointy" parts 
of the menu bottom corners showed up.

a)  I found in the screen.css

#roundbottom {
    background-image: url(images/rc-b-r-15-1body-2menu-3menu.png);
    background-repeat: no-repeat;
    background-position: top right;
}
Adding an entry in skinconf for
 <color name="content" value="#FFFFFF" />
("content" is not a color name in the standard list, BTW, in neither the 
skinconf.xml for a project nor the skinconf.xsl for pelt, but I find it 
useful in this case)
and changing the roundbottom style to

#roundbottom {
    background-image: url(images/rc-b-r-15-1content-2menu-3menu.png);
    background-repeat: no-repeat;
    background-position: top right;
}

worked, but only for the bottom right corner (rc-b-r appears to mean 
roundcorner-bottom-right).  I cannot find the equivalent for the bottom 
left corner anywhere! And its point is still colored...can someone 
please tell me how to fix this corner, too?

One more detail, also on the menu: the background-color on selected menu 
items. This "bold black on light blue" does not seem to be defined in 
the css:
#menu .menupagetitle {
        padding: 0px 0px 0px 6px;
        font-style : normal;
        border-style: solid;
        border-width: 1px;
        margin-right: 10px;
}
I would like to make it better match the rest of my color scheme.  It is 
not horrible, but could be better.

Regards,
Maurice

P.S. I did realize that the <map: > construct did "OR" and not "AND". I 
hope the sleep helps, Ross!

Re: Pelt skin details

Posted by Maurice Lanselle <la...@evc.net>.
Addi said the following on 09/06/2005 20:39:

> Maurice Lanselle wrote:
>
>> One more detail, also on the menu: the background-color on selected 
>> menu items. This "bold black on light blue" does not seem to be 
>> defined in the css:
>> #menu .menupagetitle {
>>        padding: 0px 0px 0px 6px;
>>        font-style : normal;
>>        border-style: solid;
>>        border-width: 1px;
>>        margin-right: 10px;
>> }
>> I would like to make it better match the rest of my color scheme.  It 
>> is not horrible, but could be better.
>
>
> The colors for the toolbox are in profile.css (two separate lines 
> about 15 lines apart).
>
> #menu .menupagetitle  { background-color: #12306C;}
> #menu .menupagetitle  { color: #000000;}
>
> That "selected menu items" box (menupagetitle) is referred to as the 
> toolbox in skinconf.xml.  Currently pelt's skinconf only has the 
> background color (color name="toolbox") . If you are using 0.7-dev, I 
> have a patch (http://issues.apache.org/jira/browse/FOR-518) that adds 
> the toolbox font to the skinconf for color group: Forrest so you can 
> just change them there without mucking in the css directly if you use 
> that color group.
>
> I originally hacked away at the css files to get the colors I needed 
> but then I figured out how to use the skinconf file to set everything 
> except the toolbox font and then did the patch so that I don't need to 
> edit any css files for my color scheme.  (I do still edit the css to 
> position the logo images the way I want with no searchbox to push the 
> float:right to the left.)
>
> HTH
> Addi
>
>
Thanks for the clues!  I should have known there was still a file I 
hadn't visited-- profile.css.xslt.  Now I see that, as you say,
for #menu .menupagetitle 
  - Dialog font is used
  - toolbox backgroundcolor is used
I had ignored (commented out) these values in skinconf because they 
seemed useless.  Now I have set them in skinconf and have the (pleasing) 
result I wanted without changing anything in profile.css.xslt or screen.css.

And I, too, edit the css to position my logo image near center!

Thanks,
Maurice
    <color name="toolbox" value="#BFFFDF" font="#000000"/>
    <color name="dialog" value="#E5D9E4" font="#BF5F1F"/>



Re: Pelt skin details

Posted by Addi <ad...@rocktreesky.com>.
Maurice Lanselle wrote:

> One more detail, also on the menu: the background-color on selected 
> menu items. This "bold black on light blue" does not seem to be 
> defined in the css:
> #menu .menupagetitle {
>        padding: 0px 0px 0px 6px;
>        font-style : normal;
>        border-style: solid;
>        border-width: 1px;
>        margin-right: 10px;
> }
> I would like to make it better match the rest of my color scheme.  It 
> is not horrible, but could be better.

The colors for the toolbox are in profile.css (two separate lines about 
15 lines apart).

#menu .menupagetitle  { background-color: #12306C;}
#menu .menupagetitle  { color: #000000;}

That "selected menu items" box (menupagetitle) is referred to as the 
toolbox in skinconf.xml.  Currently pelt's skinconf only has the 
background color (color name="toolbox") . If you are using 0.7-dev, I 
have a patch (http://issues.apache.org/jira/browse/FOR-518) that adds 
the toolbox font to the skinconf for color group: Forrest so you can 
just change them there without mucking in the css directly if you use 
that color group.

I originally hacked away at the css files to get the colors I needed but 
then I figured out how to use the skinconf file to set everything except 
the toolbox font and then did the patch so that I don't need to edit any 
css files for my color scheme.  (I do still edit the css to position the 
logo images the way I want with no searchbox to push the float:right to 
the left.)

HTH
Addi