Unknown property errors with CSS file

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Unknown property errors with CSS file

T-san
Basic question about CSS file.

The following CSS file is claimed with 9 errors. Only color property is accepted.  What's the problems?  I'm using VS Code.
And mxml specifies this CSS as follows:

<fx:Style source = "Style.css" />

Thanks for your help in advance.
-----------------------------------------------------------------------------------------------------------------------------

/* CSS file */
@namespace s "library://ns.apache.org/royale/spark";
@namespace mx "library://ns.apache.org/royale/mx";

.heading {
   fontFamily: ArialHelveticasans-serif;
   fontSize: 17px;
   color#9b1204;
   textDecoration:none;
   fontWeight:normal;
}

.button {
   fontWeight: bold;            
}

.container {
   cornerRadius :10;
   horizontalCenter :0
   borderColor: #777777;
   verticalCenter:0;
   backgroundColor: #efefef;
}

--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

RE: Unknown property errors with CSS file

yishayw

Use hyphens instead of camel case, so e.g.

 

border-color

not

borderColor

 

Camel case is only for changing things programaically.

 


From: Takeshita Shoichiro <[hidden email]>
Sent: Thursday, November 7, 2019 10:27:29 AM
To: [hidden email] <[hidden email]>
Subject: Unknown property errors with CSS file
 
Basic question about CSS file.

The following CSS file is claimed with 9 errors. Only color property is accepted.  What's the problems?  I'm using VS Code.
And mxml specifies this CSS as follows:

<fx:Style source = "Style.css" />

Thanks for your help in advance.
-----------------------------------------------------------------------------------------------------------------------------

/* CSS file */
@namespace s "library://ns.apache.org/royale/spark";
@namespace mx "library://ns.apache.org/royale/mx";

.heading {
   fontFamily: ArialHelveticasans-serif;
   fontSize: 17px;
   color#9b1204;
   textDecoration:none;
   fontWeight:normal;
}

.button {
   fontWeight: bold;            
}

.container {
   cornerRadius :10;
   horizontalCenter :0
   borderColor: #777777;
   verticalCenter:0;
   backgroundColor: #efefef;
}

--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: Unknown property errors with CSS file

Piotr Zarzycki
This is weird to me that VSCode has problems with that. Just remember that for Royale compiler both forms are correct.

On Thu, Nov 7, 2019, 9:39 AM Yishay Weiss <[hidden email]> wrote:

Use hyphens instead of camel case, so e.g.

 

border-color

not

borderColor

 

Camel case is only for changing things programaically.

 


From: Takeshita Shoichiro <[hidden email]>
Sent: Thursday, November 7, 2019 10:27:29 AM
To: [hidden email] <[hidden email]>
Subject: Unknown property errors with CSS file
 
Basic question about CSS file.

The following CSS file is claimed with 9 errors. Only color property is accepted.  What's the problems?  I'm using VS Code.
And mxml specifies this CSS as follows:

<fx:Style source = "Style.css" />

Thanks for your help in advance.
-----------------------------------------------------------------------------------------------------------------------------

/* CSS file */
@namespace s "library://ns.apache.org/royale/spark";
@namespace mx "library://ns.apache.org/royale/mx";

.heading {
   fontFamily: ArialHelveticasans-serif;
   fontSize: 17px;
   color#9b1204;
   textDecoration:none;
   fontWeight:normal;
}

.button {
   fontWeight: bold;            
}

.container {
   cornerRadius :10;
   horizontalCenter :0
   borderColor: #777777;
   verticalCenter:0;
   backgroundColor: #efefef;
}

--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: Unknown property errors with CSS file

T-san
Thanks a lot.

2019年11月7日(木) 17:42 Piotr Zarzycki <[hidden email]>:
This is weird to me that VSCode has problems with that. Just remember that for Royale compiler both forms are correct.

On Thu, Nov 7, 2019, 9:39 AM Yishay Weiss <[hidden email]> wrote:

Use hyphens instead of camel case, so e.g.

 

border-color

not

borderColor

 

Camel case is only for changing things programaically.

 


From: Takeshita Shoichiro <[hidden email]>
Sent: Thursday, November 7, 2019 10:27:29 AM
To: [hidden email] <[hidden email]>
Subject: Unknown property errors with CSS file
 
Basic question about CSS file.

The following CSS file is claimed with 9 errors. Only color property is accepted.  What's the problems?  I'm using VS Code.
And mxml specifies this CSS as follows:

<fx:Style source = "Style.css" />

Thanks for your help in advance.
-----------------------------------------------------------------------------------------------------------------------------

/* CSS file */
@namespace s "library://ns.apache.org/royale/spark";
@namespace mx "library://ns.apache.org/royale/mx";

.heading {
   fontFamily: ArialHelveticasans-serif;
   fontSize: 17px;
   color#9b1204;
   textDecoration:none;
   fontWeight:normal;
}

.button {
   fontWeight: bold;            
}

.container {
   cornerRadius :10;
   horizontalCenter :0
   borderColor: #777777;
   verticalCenter:0;
   backgroundColor: #efefef;
}

--
Shoichiro Takeshita
武下 祥一郎
--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

RE: Unknown property errors with CSS file

yishayw
In reply to this post by Piotr Zarzycki

Oops, my mistake, it should work. Just confirmed it works in Flash Builder.

 


From: Piotr Zarzycki <[hidden email]>
Sent: Thursday, November 7, 2019 10:41:48 AM
To: [hidden email] <[hidden email]>
Subject: Re: Unknown property errors with CSS file
 
This is weird to me that VSCode has problems with that. Just remember that for Royale compiler both forms are correct.

On Thu, Nov 7, 2019, 9:39 AM Yishay Weiss <[hidden email]> wrote:

Use hyphens instead of camel case, so e.g.

 

border-color

not

borderColor

 

Camel case is only for changing things programaically.

 


From: Takeshita Shoichiro <[hidden email]>
Sent: Thursday, November 7, 2019 10:27:29 AM
To: [hidden email] <[hidden email]>
Subject: Unknown property errors with CSS file
 
Basic question about CSS file.

The following CSS file is claimed with 9 errors. Only color property is accepted.  What's the problems?  I'm using VS Code.
And mxml specifies this CSS as follows:

<fx:Style source = "Style.css" />

Thanks for your help in advance.
-----------------------------------------------------------------------------------------------------------------------------

/* CSS file */
@namespace s "library://ns.apache.org/royale/spark";
@namespace mx "library://ns.apache.org/royale/mx";

.heading {
   fontFamily: ArialHelveticasans-serif;
   fontSize: 17px;
   color#9b1204;
   textDecoration:none;
   fontWeight:normal;
}

.button {
   fontWeight: bold;            
}

.container {
   cornerRadius :10;
   horizontalCenter :0
   borderColor: #777777;
   verticalCenter:0;
   backgroundColor: #efefef;
}

--
Shoichiro Takeshita
武下 祥一郎