Thursday, September 5, 2013

Re: Conditional CSS doesn't work on Tomcat



On Thursday, September 5, 2013 8:25:06 AM UTC+2, Dominic Warzok wrote:
Hey all maybe you can help me :) 

I want to use some Conditional CSS in my webapp. 

For test I build in some simple user.agent detection like it ist describe here.

Now my main.css looks like this: 

@if user.agent safari gecko1_8 {
.headerLine {
color: white;
margin: 0px;
/* padding: 5px; */
background-repeat: repeat-x;
background-image: url(../img/head.png);
position: fixed;
z-index: 2;
height: 60px;
}
}

the CSS file is loaded in my webapp.gwt.xml.

That seems wrong. The above will only work within a CssResource, not with a <stylesheet> in your gwt.xml (which only injects a <link rel=stylesheet> into the page)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment