How can I embed CSS rules within Seaside?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How can I embed CSS rules within Seaside?

Mariano Martinez Peck
Hi guys,

I am reviewing this link [1] and I need to do the scenario of "Embedding CSS into the HTML". So I need to be able to write this kind of thing inside the <head> 

<style media="screen" type="text/css">

.reportElementreportTitle { display: none; }

</style>


I do have access to the WAHtmlRoot object, but I just don't know how to make it print the above.
Note that I cannot write that CSS on a css file and make a link. I need exactly what I am asking, which is embed the CSS stylesheet within the html.

Thanks a lot in advance, 

--

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How can I embed CSS rules within Seaside?

Gabriel Cotelli
Check WAHtmlRoot>>addStyle: and  writeStylesOn: aDocument

On Tue, May 23, 2017 at 10:31 AM, Mariano Martinez Peck <[hidden email]> wrote:
Hi guys,

I am reviewing this link [1] and I need to do the scenario of "Embedding CSS into the HTML". So I need to be able to write this kind of thing inside the <head> 

<style media="screen" type="text/css">

.reportElementreportTitle { display: none; }

</style>


I do have access to the WAHtmlRoot object, but I just don't know how to make it print the above.
Note that I cannot write that CSS on a css file and make a link. I need exactly what I am asking, which is embed the CSS stylesheet within the html.

Thanks a lot in advance, 

--

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside




--


Gabriel O. Cotelli
Desarrollo y Tecnología
Mercap
Tel: +54 (011) 5352.2372 al 74
http://www.mercapsoftware.com
This message is confidential. It may also contain information that is privileged or otherwise legally exempt from disclosure. If you have received it by mistake please let us know by e-mail immediately and delete it from your system; also you shouldn't copy the message nor disclose its contents to anyone. Thanks.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside