[ 
https://issues.apache.org/jira/browse/OFBIZ-633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrian Crum updated OFBIZ-633:
------------------------------

    Attachment: experimental_2.patch

experimental_2.patch is a scaled down version of the previous patch. The only 
files modified are maincss.css and findParty.ftl.

I've been refining the new css classes and I have come up with a decorator 
pattern that I think is really cool. This patch can be used to demonstrate the 
decorator pattern.

If you want to style a table, just use the tag

<table class="basicTable">

This will give you a basic table with header and cell styling built in.

If you want to add a dark grid to the table, just use the tag

<table class="basicTable darkGrid">

or, for a light grid

<table class="basicTable lightGrid">

If you want the rows to highlight when the cursor moves over them, use the tag

<table class="basicTable hoverBar">

And you can combine decorators -

<table class="basicTable lightGrid hoverBar">

Try it out for yourself. Look for the line

<table class="basicTable" cellspacing="0">

in findParty.ftl and add the decorators.

Let me know what you think.






> Remove redunant style decarations from maincss.css
> --------------------------------------------------
>
>                 Key: OFBIZ-633
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-633
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Sub-task
>            Reporter: Chris Howe
>            Priority: Minor
>         Attachments: experimental_1.patch, experimental_2.patch, maincss.css
>
>
> This will be used to contain comments regarding the consolidated maincss.css 
> file that are rather unrelated to the combining of maincss.css and 
> tabstyles.css

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to