Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » CSS Questions (How to organize CSS classes in .css file?)
CSS Questions [message #898605] Thu, 26 July 2012 16:55 Go to previous message
Ronald So is currently offline Ronald So
Messages: 198
Registered: April 2011
Senior Member
Hello,

Just a couple quick questions on CSS settings for RAP.

Label.labelError {
    font: normal normal 12px Trebucket, Arial, sans-serif;
    color: red;
}
Label.labelInfo {
    font: normal normal 12px Trebucket, Arial, sans-serif;
    color: blue;
}
Label.labelBold {
    font: normal bold 12px Trebucket, Arial, sans-serif;
}


I have the above in the CSS code that may not be ideal. I can use all three classes by
Label.setData(WidgetUtil.CUSTOM_VARIANT, "labelBold");


1. How can I change all Label to size 12px without defining it in every Label CSS style?
2. What is the recommended way to manage this CSS file? I can only imagine that this file will grow big with all these variances of styles. Is there a strategy that you can recommend to better manage these CSS settings?

Thanks so much for your help.

Ronald


 
Read Message
Read Message
Read Message
Previous Topic:create a RAP Launch based on feature
Next Topic:CSS Setting for ToolItem
Goto Forum:
  


Current Time: Tue Jun 18 02:12:12 EDT 2013

Powered by FUDForum. Page generated in 0.02066 seconds