Provide CSS hooks to allow to style Panels selectively
------------------------------------------------------

                 Key: XWIKI-2053
                 URL: http://jira.xwiki.org/jira/browse/XWIKI-2053
             Project: XWiki Platform
          Issue Type: Improvement
          Components: Macros & Filters
    Affects Versions: 1.3 M1
            Reporter: Vincent Massol
            Priority: Minor
             Fix For: 1.3 M2


Right now panels generate this:
{noformat}
<div class="panel expanded">
{noformat}

This doesn't allow to style them selectively. For example in the Toucan skin we 
want to style the Search panels so that it has rounded corners and some border 
image.

I'm thus proposing that the #panel* macros generate instead the following
{noformat}
<div class="panel expanded (id here)">
{noformat}

where "(id here)" is ($doc.getFullName().hashCode()).

Rationale:
* This provides the necessary hook
* It's compatible with allowed CSS characters (using the doc name would not be 
compatible since it can contain accents, dots, hash, etc)
* The id is the same on all instances since it's computed based on the 
document's name.

Of course if the document's name changes it'll be different but then we can 
consider it's a different panel.

Note that we cannot use the doc's id since that id is dependent on the language 
and we need the same styling for all languages.

Any better idea?


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to