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
BOD
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 s
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 fro
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:
ht
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:
> T
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.
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 c
ore
precision:
@Exclude("stylesheet=default.css")
-Peter
- Original Message -
From: "Barry Books"
To: "Thiago H. de Paula Figueiredo"
Cc: "Tapestry users" , "Barry Books"
Sent: Tuesday, 8 November, 2011 15:20:50 GMT +02:00 Athens, Buch
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 clas
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
contributeMarkupRenderer(OrderedConfiguration
configuration) {
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
in the layout template of the following basic a
On Tue, 08 Nov 2011 11:04:18 -0200, Ville 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 styles.
Tapestry always p
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
m
On Tue, 08 Nov 2011 09:56:56 -0200, Barry Books 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
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 th
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
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
@Im
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 t
18 matches
Mail list logo