Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » CSS Setting for ToolItem(Can't get border-top-color attribute to work)
CSS Setting for ToolItem [message #899454] Tue, 31 July 2012 21:54 Go to next message
Ronald So is currently offline Ronald SoFriend
Messages: 198
Registered: April 2011
Senior Member
Hi,

I am trying to simply put a 3 pixel red line at the top border of the ToolItem when it is being pressed or selected. I have the following code but somehow the top border color does not show red. Is this a RAP limitation, or if I am doing something wrong?

ToolItem:pressed, ToolItem:selected {
    background-image: none;
    background-color: #ffffff;
    border: 3px solid #ffffff;
    border-top-color: #ff0000;
    padding: 12px 11px 12px 11px;
}


Thanks a lot.

Ronald
Re: CSS Setting for ToolItem [message #899486 is a reply to message #899454] Wed, 01 August 2012 07:01 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Roland,
always check the "RAP Theming Reference" [1] before styling your
widgets. In this particular case... ToolItem does not support
"border-top-color" property [2].

[1] http://help.eclipse.org/juno/nav/42_4_2
[2]
http://help.eclipse.org/juno/topic/org.eclipse.rap.help/help/html/reference/theming/ToolBar.html#ToolItem
Best,
Ivan

On 8/1/2012 12:54 AM, Ronald So wrote:
> Hi,
>
> I am trying to simply put a 3 pixel red line at the top border of the
> ToolItem when it is being pressed or selected. I have the following
> code but somehow the top border color does not show red. Is this a
> RAP limitation, or if I am doing something wrong?
>
> ToolItem:pressed, ToolItem:selected {
> background-image: none;
> background-color: #ffffff;
> border: 3px solid #ffffff;
> border-top-color: #ff0000;
> padding: 12px 11px 12px 11px;
> }
>
> Thanks a lot.
>
> Ronald

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: CSS Setting for ToolItem [message #899616 is a reply to message #899486] Wed, 01 August 2012 15:06 Go to previous message
Ronald So is currently offline Ronald SoFriend
Messages: 198
Registered: April 2011
Senior Member
Hi Ivan,

Thanks for helping. I did check on the RAP theme reference page and I see border-top-color listed in the page with no indication of RAP not supporting the attribute.

http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.rap.help%2Fhelp%2Fhtml%2Freference%2Ftheming%2FProperties.html&anchor=border

and both "border-top-color" and "border-bottom-color" are listed in the document.

I guess the right place to look at is the ToolItem page. As long as I don't see the attribute supported in the ToolItem page, I can safely assume that the attribute is not supported.

Thanks again.

Ronald
Previous Topic:please help for server push?
Next Topic:Eclipse RAP Application Server Sizing
Goto Forum:
  


Current Time: Fri Apr 26 21:00:30 GMT 2024

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

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

Back to the top