You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ben Tomasini <be...@gmail.com> on 2011/03/17 04:40:55 UTC

Using conditional comments with @Import(stylesheet="...")

Hello,

I am looking to integrate the blueprint-css framework into a tapestry
app and would like to use the @Import annotation on my Layout
component to do so.

The blueprint-css setup uses conditional comments
(http://www.quirksmode.org/css/condcom.html) to give special
instructions for IE 6 and IE7 in its third link below.

<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css"
media="screen, projection">
<link rel="stylesheet" href="css/blueprint/print.css" type="text/css"
media="print">
<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css"
type="text/css" media="screen, projection"><![endif]-->

Is this possible via the @Import annotation?  Should I simply include
this in my Layout.tml?

Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Using conditional comments with @Import(stylesheet="...")

Posted by Ben Tomasini <be...@gmail.com>.
Thanks!

It's good to be using Tapestry again.  This is a personal project.  :)

Ben

On Thu, Mar 17, 2011 at 9:35 AM, Howard Lewis Ship <hl...@gmail.com> wrote:
> This can be done using the new (in 5.2) JavaScriptSupport
> @Environmental object.  It can express a couple of things that @Import
> can not.  Just @Inject the Asset for the stylesheet(s) and invoke one
> of the importStylesheet() methods.
>
> Glad to see you back in the Tapestry fold ...  is this a personal
> project, or something for Vertifore?
>
> On Wed, Mar 16, 2011 at 8:40 PM, Ben Tomasini <be...@gmail.com> wrote:
>> Hello,
>>
>> I am looking to integrate the blueprint-css framework into a tapestry
>> app and would like to use the @Import annotation on my Layout
>> component to do so.
>>
>> The blueprint-css setup uses conditional comments
>> (http://www.quirksmode.org/css/condcom.html) to give special
>> instructions for IE 6 and IE7 in its third link below.
>>
>> <link rel="stylesheet" href="css/blueprint/screen.css" type="text/css"
>> media="screen, projection">
>> <link rel="stylesheet" href="css/blueprint/print.css" type="text/css"
>> media="print">
>> <!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css"
>> type="text/css" media="screen, projection"><![endif]-->
>>
>> Is this possible via the @Import annotation?  Should I simply include
>> this in my Layout.tml?
>>
>> Ben
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Using conditional comments with @Import(stylesheet="...")

Posted by Howard Lewis Ship <hl...@gmail.com>.
This can be done using the new (in 5.2) JavaScriptSupport
@Environmental object.  It can express a couple of things that @Import
can not.  Just @Inject the Asset for the stylesheet(s) and invoke one
of the importStylesheet() methods.

Glad to see you back in the Tapestry fold ...  is this a personal
project, or something for Vertifore?

On Wed, Mar 16, 2011 at 8:40 PM, Ben Tomasini <be...@gmail.com> wrote:
> Hello,
>
> I am looking to integrate the blueprint-css framework into a tapestry
> app and would like to use the @Import annotation on my Layout
> component to do so.
>
> The blueprint-css setup uses conditional comments
> (http://www.quirksmode.org/css/condcom.html) to give special
> instructions for IE 6 and IE7 in its third link below.
>
> <link rel="stylesheet" href="css/blueprint/screen.css" type="text/css"
> media="screen, projection">
> <link rel="stylesheet" href="css/blueprint/print.css" type="text/css"
> media="print">
> <!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css"
> type="text/css" media="screen, projection"><![endif]-->
>
> Is this possible via the @Import annotation?  Should I simply include
> this in my Layout.tml?
>
> Ben
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Using conditional comments with @Import(stylesheet="...")

Posted by based2 <ba...@free.fr>.
http://tapestry.apache.org/css.html
http://tapestry.1045711.n5.nabble.com/Page-Links-showing-path-in-brackets-td3254604.html
http://tiredblogger.wordpress.com/2009/12/17/using-less-to-simplify-blueprintcss/

==
http://tapestry.apache.org/demos.html
http://wiki.apache.org/tapestry/Tapestry5OpensourceApps

http://tapestry.apache.org/community.html
http://wiki.apache.org/tapestry/Tapestry5HowTos
http://wiki.apache.org/tapestry/Tapestry5ModuleRegistry


--
View this message in context: http://tapestry.1045711.n5.nabble.com/Using-conditional-comments-with-Import-stylesheet-tp3827508p3835549.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org