Using tags as class selectors [message #1435355] |
Wed, 01 October 2014 07:27  |
Eclipse User |
|
|
|
Hello,
According to the RCP book, the CSS engine should be able to recognize user-defined tags in the application model and treat them as class-selectors.
However, when I tag all my Parts with "teststyle" and set up my css-file like this :
.teststyle
{
-fx-background-color: red ;
}
nothing happens. Wat does work, are predefined tags, like the following :
.MPart
{
-fx-background-color: red ;
}
Do I have to do something different for referring to this user-defined tags ... ?
Little subsidiary question : on the main page of the Efxclips-project, there's a mention about LESS-support. I've done a search on the wiki, but found no additionnal information about this feature. I tried some LESS-syntax in the CSS-editor but without success. So my question is : what does the LESS-support entail ?
|
|
|
|
|
|
|
Re: Using tags as class selectors [message #1436121 is a reply to message #1435431] |
Thu, 02 October 2014 08:39  |
Eclipse User |
|
|
|
That works, thanks !
Writing (comprehensive) documentation is indeed quite a daunting task.
If my company decides to adopt the couple Eclipse RCP-JavaFX, we will most likely write some training manual about the subject. I could be useful for other beginners. To be continued...
|
|
|
Powered by
FUDForum. Page generated in 0.08522 seconds