Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [CSS] How to import another css into my theme?(org.w3c.css.sac.CSSException: import rules not supported - ignored)
[CSS] How to import another css into my theme? [message #987830] Wed, 28 November 2012 05:31 Go to next message
Francis Delsinnes is currently offline Francis Delsinnes
Messages: 49
Registered: November 2011
Member
Hi,


How to import a css into my current css theme?
Into my rap application, I use a style sheet to define a current theme...
But my css file is huge => How to split the content into several files?

Is it possible?
Is it a limitation of the RAP framework?

I tried with the following start commands:
@import "split1.css";
@import url("split1.css");
@import url('split1.css');
@import url(split1.css);

but I get the following exception:
osgi> org.w3c.css.sac.CSSException: import rules not supported - ignored

Normally, it's supported by most browsers:
http://www.westciv.com/style_master/academy/browser_support/basic_concepts.html

Thanks in advance.
Re: [CSS] How to import another css into my theme? [message #988316 is a reply to message #987830] Thu, 29 November 2012 06:43 Go to previous messageGo to next message
Francis Delsinnes is currently offline Francis Delsinnes
Messages: 49
Registered: November 2011
Member
No idea...
Is it possible specify several css files into the MANIFEST or by code to form only one theme?
Re: [CSS] How to import another css into my theme? [message #988373 is a reply to message #988316] Thu, 29 November 2012 11:12 Go to previous message
Cole Markham is currently offline Cole Markham
Messages: 133
Registered: July 2009
Senior Member
Francis,

The CSS for RAP themes is read and interpreted by the server, not the user's browser. The Developer's Guide[1] has more information about how this works. For a way to use multiple CSS files see the section on "How to Extend an Existing RWT Theme".

[1] http://eclipse.org/rap/developers-guide/devguide.php?topic=rwt/theming.html&version=1.5

Hope that helps,

Cole Markham
Previous Topic:Use BrowserHistory for Favourites
Next Topic:Themes in RAP 2.0 M3
Goto Forum:
  


Current Time: Tue Jul 29 21:02:22 EDT 2014

Powered by FUDForum. Page generated in 0.10732 seconds