Skip to main content


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 10:31 Go to next message
Francis Delsinnes is currently offline Francis DelsinnesFriend
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 11:43 Go to previous messageGo to next message
Francis Delsinnes is currently offline Francis DelsinnesFriend
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 16:12 Go to previous message
Cole Markham is currently offline Cole MarkhamFriend
Messages: 150
Registered: July 2009
Location: College Station, TX
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:Trigger UI update with javascript
Next Topic:Themes in RAP 2.0 M3
Goto Forum:
  


Current Time: Tue Apr 23 11:42:48 GMT 2024

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

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

Back to the top