Jean-Marc Orliaguet | 27 Feb 17:01
Favicon

Re: [NXThemes] style editor preview

Jean-Marc Orliaguet wrote:
>
> Hi,
>
> here is a screencast of the style editor:
>
>    http://www.medic.chalmers.se/~jmo/nuxeo5/nxthemes-2007-02-25.html
>

here is another update, this time more functional:

http://www.medic.chalmers.se/~jmo/nuxeo5/nxthemes-2007-02-27.html

it works with the nuxeo5 app too, but with some limitations:

- the css selectors can become very long (table tbody tr td ul li a ...)
- to update existing style the 'style scope: all views' must be 
selected, since in the current theme the styles are applied to all the 
views of a fragment
- some css properties are defined globally, it is difficult to override 
them.
- styles associated to pages / sections/ cells are not editable yet.

the CSS properties are defined in 
org.nuxeo.theme.jsf-editor/resources/nxthemes/jsf/editor/styles/css.properties
new properties can be added.

the idea is to have a format similar to:

color=color
background-color=color
border=border
border-top=border
border-bottom=border

where 'border', 'color', ... are categories of properties with which 
specific input widgets can be associated (color picker, border designer, 
...)

/JM

Gmane