Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Color variable definitions are marked as Unknown property
Color variable definitions are marked as Unknown property [message #1729676] Sun, 17 April 2016 23:31 Go to next message
Colin Sharples is currently offline Colin SharplesFriend
Messages: 88
Registered: July 2009
Location: Wellington, New Zealand
Member

In my application's CSS file, I define several color variables to use with my styling, like so:

.root {
-mote-dark: #142147;
-mote-light: #D6DDF3;
-mote-pale: aliceblue;
}

The e(fx)clipse CSS editor marks these as "Unknown property" warnings. It doesn't really affect anything, all the colors are correctly picked up by my classes. It's just annoying having the file marked with warnings when it is perfectly okay. Is this a bug in the e(fx)clipse CSS editor, or is there a better way to declare color variables?


Colin Sharples
CTG Games Ltd
Wellington, New Zealand
Re: Color variable definitions are marked as Unknown property [message #1729689 is a reply to message #1729676] Mon, 18 April 2016 07:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6320
Registered: July 2009
Senior Member
On 18.04.16 01:32, Colin Sharples wrote:
> In my application's CSS file, I define several color variables to use
> with my styling, like so:
>
> root {
> -mote-dark: #142147;
> -mote-light: #D6DDF3;
> -mote-pale: aliceblue;
> }
>
> The e(fx)clipse CSS editor marks these as "Unknown property" warnings.
> It doesn't really affect anything, all the colors are correctly picked
> up by my classes. It's just annoying having the file marked with
> warnings when it is perfectly okay. Is this a bug in the e(fx)clipse CSS
> editor, or is there a better way to declare color variables?

First of all the warning is expected because those are from a plain CSS
PoV unknown properties.

You can suppress those workings by putting

/* @SuppressWarning */

directly above each line. We have no real clue how we could detect that
all you wanted is to define color key and don't have a typo in the property.

Tom
Re: Color variable definitions are marked as Unknown property [message #1729773 is a reply to message #1729689] Mon, 18 April 2016 19:51 Go to previous message
Colin Sharples is currently offline Colin SharplesFriend
Messages: 88
Registered: July 2009
Location: Wellington, New Zealand
Member

Thanks Tom. I thought I saw something in Bootstrap relating to setting up color variables, but I realised that was part of pre-processing, not in the end CSS file. At least I can suppress the warning!

Colin Sharples
CTG Games Ltd
Wellington, New Zealand
Previous Topic:Restart Service not starting application after build
Next Topic:javafx problem with mutiple scenes hellp me fix it
Goto Forum:
  


Current Time: Tue Jun 27 05:26:30 GMT 2017

Powered by FUDForum. Page generated in 0.03744 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software