Yes, that's the intention; Tapestry puts the default.css first, with
the expectation that any additional CSS links or <style>s on the page
will override it.

If you've seen the screencasts, the BeanEditForm and Grid components
are very reliant on those default CSS rules to have a decent look and
feel.

All the style classes in default.css are prefixed with "t-" (for "Tapestry").

I could make the location of the default.css configurable, for those
that really care, but that's more likely to happen if a suggestion is
added to JIRA.  Yes, that's a hint.

On 3/29/07, Bill Holloway <[EMAIL PROTECTED]> wrote:
I'm not sure about shutting off the default.css, but the "C" in "CSS"
means cascading, which means you can override the styles set in
default.css.  For a particular page, put your CSS files in
src/main/resources/org/example/myapp/pages/mystyles.css, where
org/example/myapp is your project package path

In your page's java class put

@Inject ("mystyles.css")
private Asset _myStyleSheet;

public Asset getMyStyleSheet { return _myStyleSheet; }

Then in the page template, put

<link t:type="any" rel="stylesheet" type="text/css" href="prop:myStyleSheet" />

Cheers,
Bill

On 3/29/07, Adrian Bele <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new here.
> Can anybody know how to replace
>
> <link href="/hilo/assets/tapestry/default.css" rel="stylesheet" 
type="text/css">
> with my own stylesheet, and where it should be place?
>
> Thanks
>
> Adrian
>


--
"The future is here.  It's just not evenly distributed yet."

     -- Traditional

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to