Re: CSS3 selectors

Michael Zeltner <[email protected]>
Newsgroups gmane.comp.web.zope.plone.design
Message-ID <[email protected]>
hey miroslav! :) (or hey opyr?)

Myroslav Opyr wrote:
> I've been reading through http://www.mezzoblue.com site I've referred to 
> lately in the #plonedesign. And found that the URLs in Plone are 
> highlighted with JavaScript and could be with CSS3 selectors 
> http://www.mezzoblue.com/archives/2003/06/25/mose/ that are supported in 
> some browsers 
> http://www.macedition.com/cb/resources/css3support_selectors.html

wow, thats a great idea thanks! we didn't consider to use css3 yet 
because it's not finished yet, and it's not widley supported. but if we 
can split that up, why not!

> for instance we can have:
> .content a[href^="http://"] {... link_icon.gif ...}
> .content a[href^="mailto:"] {... mail_icon.gif ...}
> .content a[href^="news://"] {... topic_icon.gif ...}
> ...
> .content a[href^="http://the.original.site"] {... noicon ...}

yes, that would be perfect for the browser that support these selectors.

> And make the current JavaScript run in the case the browser that renders 
> the page does not support these CSS3 selectors (IE).

ie needs another span for that, otherwise the icons flicker on hover. 
but anyway: thats one of *my* (not plones yet) plans for 2.1 to dis or 
enable some things with javascript.

so +1 for all that from me!

another note for our developers:
i cleaned up our wiki (http://plone.org/development/teams/ui/) a bit and 
wanted to make a CSS Geddon page to note what techniques we should use 
for what in 2.1. see: http://plone.org/development/teams/ui/IssuesFor21

regards, michael
-- 
</gro.jiin//:ptth> °jiin


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.