If I was to take a guess, it would be the new usage of require.js in tapestry
5.4. Tapestry has defined a bootstrap module. You might need to define a
module which depends on the bootstrap module to guarantee that yours is
loaded after bootstrap.
As I said, this is a guess... I've not yet dug too
There are few T5.4-a2 components (that I seem to use) that pull in the
core stack which then imports the bootstrap.css. Alerts is one of
them, which I've Munky Patched not to. You're then free to import
whatever CSS you want in whatever order as per usual.
Another option (which I also do to keep
FYI, I found it necessary to add the following to my Layout component
@Import(stack=core)
Otherwise the bootstrap CSS was only included if I had a t:alerts / on my
page.
--
View this message in context:
Note that @Import does not need to be used at the class level. You can
specify @Import on one of the later render phases, eg: afterRender()
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-4-alpha-2-css-overriding-tp5719856p5719863.html
Sent from the Tapestry -
Thanks guys, but I tried both with no success.
My custom.css is loaded first in any case
Is there any change on this in 5.4-alpha-2? I am used to override
default.css definitions with a custom.css in 5.3.x through @Import with no
problem.
Regards,
Matías.
Saludos,
Matias.
On Thu, Feb 7,
Hi all,
I'm using Tapestry-5.4-alpha-2 in a new project, and I am not beeing able
to override some bootstrap.css definitions.
I'm @Importing my custom stylesheet in my Layout component, but it included
before bootstrap one, and the bootstrap.css overrides mine...
How could I override
Hi Matias,
does it work, if you include the stylesheet manually via
link type=text/css rel=stylesheet href=${context:to/stylesheet.css}/
at the end of the HTML head?
I'm not yet using T5.4, so I don't know if this works, but you could
try, just as workaround for the moment.
René
On 07.02.2013