Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "MDT/Papyrus/UserGuide/CSS/StereotypeDisplay"
< MDT | Papyrus | UserGuide/CSS
(→CSS Exemple) |
(→Stereotype Display by CSS (DRAFT : Work in Progress for Mars)) |
||
Line 1: | Line 1: | ||
= Stereotype Display by CSS (DRAFT : Work in Progress for Mars)= | = Stereotype Display by CSS (DRAFT : Work in Progress for Mars)= | ||
− | == CSS | + | == Default CSS == |
− | + | The following CSss rules are implemented by default for all the Diagrams: | |
− | <source lang="css"> | + | <source lang="css"> |
+ | Shape[type=StereotypeComment]{ | ||
visible:false; | visible:false; | ||
} | } | ||
− | + | Shape[type=StereotypeComment] Compartment[type=StereotypeBrace]{ | |
− | + | visible:false; | |
} | } | ||
− | + | Compartment[type=StereotypeCompartment]{ | |
visible:false; | visible:false; | ||
} | } | ||
− | + | Compartment[type=StereotypeBrace]{ | |
visible:false; | visible:false; | ||
} | } | ||
− | Label[type= | + | Label[type=StereotypeLabel]{ |
− | + | depth:"none"; | |
− | + | } | |
+ | |||
+ | </source> | ||
+ | |||
+ | |||
+ | == CSS Exemple== | ||
+ | Here is some exemple of CSS to display the Stereotype: | ||
+ | |||
+ | <source lang="css"> | ||
+ | |||
+ | Label[type=StereotypeLabel]{ | ||
+ | depth:-1; | ||
+ | } | ||
+ | |||
+ | Compartment[type=StereotypeCompartment]{ | ||
+ | visible:true; | ||
} | } | ||
− | + | </source> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 08:59, 12 March 2015
Stereotype Display by CSS (DRAFT : Work in Progress for Mars)
Default CSS
The following CSss rules are implemented by default for all the Diagrams:
Shape[type=StereotypeComment]{ visible:false; } Shape[type=StereotypeComment] Compartment[type=StereotypeBrace]{ visible:false; } Compartment[type=StereotypeCompartment]{ visible:false; } Compartment[type=StereotypeBrace]{ visible:false; } Label[type=StereotypeLabel]{ depth:"none"; }
CSS Exemple
Here is some exemple of CSS to display the Stereotype:
Label[type=StereotypeLabel]{ depth:-1; } Compartment[type=StereotypeCompartment]{ visible:true; }