Re: T5.3 rc3 ordering of css

2011-11-10 Thread Joost Schouten (mailing lists)
On Nov 9, 2011, at 12:45 PM, Ville wrote: Thanks for the input again, live and learn :) In case anyone comes looking, the easiest way is to set a class c to body and prepend all your styles with .c. or if you have .t-error{color:red;} coming from your default.css you can add BODY

Re: T5.3 rc3 ordering of css

2011-11-09 Thread Ville
So the fix is to exclude all css files that third party libs include, then copy the css from those jars, modify it and include it yourself? I don't get how the ordering is not important, as the order dictates how the styles are applied, and what overrides what? - Ville -- View this message in

Re: T5.3 rc3 ordering of css

2011-11-09 Thread Ville
To clarify why the ordering IS important, if my css is included before Tapestry's default, then I can't override T5's default styles. (And the second picture in my earlier post demonstrates this..) The proposed fix that I then exclude the T5 defaults altogether is not imho the most elegant fix.

Re: T5.3 rc3 ordering of css

2011-11-09 Thread Joost Schouten (mailing lists)
I might be missing something here but why do you not solve the problem with css specificity [1]? Css should never care about the order in which you load your css files IMHO. Cheers, Joost [1]: http://www.htmldog.com/guides/cssadvanced/specificity/ On Nov 9, 2011, at 9:19 AM, Ville wrote:

Re: T5.3 rc3 ordering of css

2011-11-09 Thread Ville
Hmm, I might then have done an error by mistakenly took for granted that the Tap5 stylesheet comes before mine. Thanks for the specificity link, that clears it up nicely. Well, now I have to go write all my css again that overrides Tap 5 styles ;) - Ville -- View this message in context:

Re: T5.3 rc3 ordering of css

2011-11-09 Thread Ville
Thanks for the input again, live and learn :) In case anyone comes looking, the easiest way is to set a class c to body and prepend all your styles with .c. - Ville -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-rc3-ordering-of-css-tp4969412p4977487.html Sent from

Re: T5.3 rc3 ordering of css

2011-11-09 Thread Barry Books
I often use Amazon CloudFront (or Google for jQuery) to serve CSS/Javascript on websites so the Tapestry @Include is only useful in development for me and currently there does not seem to be a generic way to turn off all the defaults. It would be OK (perhaps better) if there was a default include

Re: T5.3 rc3 ordering of css

2011-11-08 Thread Barry Books
Personally I wish you could just put the stylesheets you want in the layout.java @Import and have it work. In this particular case I think the whole AppModule configuration is overkill for the problem. I would be nice if there was a simple way to override all the stacks instead tracking down all

Re: T5.3 rc3 ordering of css

2011-11-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 Nov 2011 09:56:56 -0200, Barry Books trs...@gmail.com wrote: Personally I wish you could just put the stylesheets you want in the layout.java @Import and have it work. Why using @Import in Layout if you can add the style tags directly in the template? -- Thiago H. de Paula

Re: T5.3 rc3 ordering of css

2011-11-08 Thread Ville
The problem is the thirdparty libraries: If I include chenillekit, and that library includes css file for its window component, it is essential that my css comes after that - otherwise I have no way to override the styles. If I put MY CSS to @Import tag the result is this: tapestry5 default css

Re: T5.3 rc3 ordering of css

2011-11-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 Nov 2011 11:04:18 -0200, Ville ville.virta...@cerion.fi wrote: The problem is the thirdparty libraries: If I include chenillekit, and that library includes css file for its window component, it is essential that my css comes after that - otherwise I have no way to override the

Re: T5.3 rc3 ordering of css

2011-11-08 Thread François Facon
Hi Ville If I put MY css directly to the head the end result is this: mycss tapestry5 default css css from tapestry5-jquery library did you try this in a layout component? because I was able to override the default jquery theme with a head link rel=stylesheet type=text/css

Re: T5.3 rc3 ordering of css

2011-11-08 Thread Barry Books
Good comment. That's even simpler. I'd still like some simple way to turn off the defaults. Perhaps @Import(stylesheet=false) could clear the current stylesheets then I just put them in layout.tml. Currently I'm using public void

Re: T5.3 rc3 ordering of css

2011-11-08 Thread Ville
Hi, I have overridden the default themeroller theme, this is no problem. Take a look at this screenshot: http://tinypic.com/r/r1djqc/5 It clearly demonstrates that tapestry-console.css, t5-alerts.css and tree.css all come after my css -thus any overrides I have made take no effect (To those

Re: T5.3 rc3 ordering of css

2011-11-08 Thread P . Stavrinides
, Bucharest, Istanbul Subject: Re: T5.3 rc3 ordering of css Good comment. That's even simpler. I'd still like some simple way to turn off the defaults. Perhaps @Import(stylesheet=false) could clear the current stylesheets then I just put them in layout.tml. Currently I'm using public void

Re: T5.3 rc3 ordering of css

2011-11-07 Thread Ville
Hi, the problem arises when I use third party libs, namely Tap5-Jquery (http://tapestry5-jquery.com/). I have no means to control how they include their CSS. As a developer I want to control the order in which CSS files get included stack by stack. Can this be achieved by contributing to public

T5.3 rc3 ordering of css

2011-11-06 Thread 9902468
Hi, is there any documentation how the ordering of css is done? I've tried stacks and straight imports, but I really haven't found any way to say that my css is last. I use T5-jquery library and the included form.css is always attached later than mine. (Effectively only way to override bits of

Re: T5.3 rc3 ordering of css

2011-11-06 Thread Steve Eynon
Hi, I'm not sure where it is in the Docs (I can't see it on http://tapestry.apache.org/css.html ) but you can order your CSS by placing the @Import on various render phase methods. i.e. @Import(stylesheet=me-first.css) void setupRender() {} would come before any stylesheets declared with