Issue (View Online)

Key: NXP-820
Issue Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Jean-Marc Orliaguet
Reporter: Jean-Marc Orliaguet
Original Estimate: 3 days
Remaining Estimate: 3 days

Operations

View all
View comments
View history
NXThemes: allow styles to inherit from other styles 
Updated: 08/04/07 12:40   Created: 08/04/07 12:40  

Project: Nuxeo Enterprise Platform 5
Components: Web UI
Fix Versions: 5.1 M3

 Description   
styles -- and formats in general -- are currently associated to individual visual elements. This makes it possible to modify the style of a given fragment without having to take into account other styles that may apply to it indirectly (e.g. via a container element). This simplifies the style editor's UI since there is a one-to-one relation between elements and styles (edit a given element, and you have directly access to all its style properties)

also when a fragment is moved between cells it is expected that the fragment's style is preserved. So for lots of reasons we don't want to deal with implicit style inheritance as in CSS.

but in certain cases it is useful to be able to assign common style properties to more than one element (e.g. link colors, font styles, ... ) through inheritance.

in the current implementation one element can only have one style, but styles could inherit from other styles.

example:

fragment1 __ has style __ style1
style1 __inherits from__ style2

then fragment1 will also have the styles of style2, with the possibility for style2 to override some of the properties of style1

in HTML we simply write:

<div class="style2 style1">fragment1</div>

in the UI, inherited properties can be marked in italic, and a button can say "this style inherits from ..."

there is then an inheritance chain that can be followed. Finally this is similar to inheritance in CSS with the difference that inheritance is here explicit and completely independent of containment.



This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to