How to Adress Single Elements with an Css File [message #1714512] |
Fri, 13 November 2015 05:31  |
Eclipse User |
|
|
|
Hi there
i am quiet new here
I´m working on a Project and want to Style different nodes/edges of the same type in different ways with an CSS file. Is there an posibillity to do this ? I already know how to do this with the Appearance Tab or how to Style all Nodes/edges of the same type with a css file.
Best regards
Moritz
|
|
|
|
Re: How to Adress Single Elements with an Css File [message #1714572 is a reply to message #1714566] |
Fri, 13 November 2015 11:02   |
Eclipse User |
|
|
|
You can match single elements by name (or qualified name):
Class[qualifiedName="MyPackage::MyClass"]{
fillColor: blue;
}
Or using named styles (CSS Classes), which need to be applied manually from the "Style" tab of the properties view ('Applied Styles'):
.myClass1 {
fillColor: blue;
}
.myClass2 {
fillColor: red;
}
Edit: In theory, you could also use CSS Ids (#myClass1), which are unique (Unlike CSS Classes), but since this seemed seldom useful, it isn't exposed in the properties view anymore. However, the property exists and is supported, so you could customize the properties view to expose it again.
HTH,
Camille
[Updated on: Fri, 13 November 2015 11:05] by Moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04613 seconds