Re: [css-d] CSS wildcards

2006-02-18 Thread Christian Montoya
On 2/18/06, Paul Novitski <[EMAIL PROTECTED]> wrote: > Would you really want to be able to write CSS rules like this? > > d(iv|l)(.|#)cont(act|ent) (p(re){0,1}|dt) > { > border(-.+){0,1}: 1px solid #000; > } Do you know how much slower CSS would get if w

Re: [css-d] CSS wildcards

2006-02-18 Thread Paul Novitski
At 08:30 AM 1/25/2006, Stephen R Laniel wrote: >Just to be clear, it's a totally reasonable thing to expect >from CSS. It would be nice to be able to define > >h[0-9] { > font-family: Verdana, sans-serif; >} > >instead of the ungainly > >h1, h2, h3, h4, h5, h6, h7, h8, h9 { > font-f

Re: [css-d] CSS wildcards

2006-01-25 Thread Paul Novitski
tedd wrote: > >http://www.sperling.com/examples/pcss/ Tedd, the particular PHP syntactical technique you've used in your pcss article will trip over its own shoelaces as soon as the first {background: url("xxx")} is encountered. Instead of enclosing the whole stylesheet in double-quotes as yo

Re: [css-d] CSS wildcards

2006-01-25 Thread Christian Heilmann
Ok, this is actually OFF-Topic, just a quick note: I didn't say Tedd's solution was intrinsicly bad and I think it is great that he answered so quickly to a problem somebody asked here. However, it is important to point out flaws of solutions. I expect that from anyone here, as this is the only wa

Re: [css-d] CSS wildcards

2006-01-25 Thread tedd
Zoe: >Tedd, > >Please add this link to this page in the wiki: >http://css-discuss.incutio.com/?page=ConstantsInCSS Sure, what do you want me to call it? >And everyone, we can just point people here whenever this FAQ comes up >(seems to be coming up a lot more frequently lately...). Hmmm... coul

Re: [css-d] CSS wildcards

2006-01-25 Thread tedd
Chris: Not meaning to be argumentative, but: > > >or is there another way to do this to accomodate elements being created on >> >the fly? >> See: >> > > http://www.sperling.com/examples/pcss/ > >This kills every color coding your IDE might have, fails when someone >uses " for any reason in th

Re: [css-d] CSS wildcards

2006-01-25 Thread Chris Ovenden
I am continually scripting CSS, because for one of the main sites I work on the images are coming out of a CMS, so I need to write a references asp.net whenever I want a background-image. Colours are also dynamic in some parts of the site. However, over two years of hardcore CSS work, I have found

Re: [css-d] CSS wildcards

2006-01-25 Thread Zoe M. Gillenwater
tedd wrote: >>How flexible are wildcards in CSS? >> >> > >http://www.sperling.com/examples/pcss/ > > > Tedd, Please add this link to this page in the wiki: http://css-discuss.incutio.com/?page=ConstantsInCSS And everyone, we can just point people here whenever this FAQ comes up (seems to

Re: [css-d] CSS wildcards

2006-01-25 Thread Christian Heilmann
> >or is there another way to do this to accomodate elements being created on > >the fly? > See: > > http://www.sperling.com/examples/pcss/ This kills every color coding your IDE might have, fails when someone uses " for any reason in the CSS and it means the CSS will not be cached. All CSS parse

Re: [css-d] CSS wildcards

2006-01-25 Thread Christian Heilmann
> > CSS is not a programming language, so it doesn't have variables in it. > > You define set classes and ids that appear in your source somewhere. > > Just to be clear, it's a totally reasonable thing to expect > from CSS. It would be nice to be able to define > > h[0-9] { > font-family: V

Re: [css-d] CSS wildcards

2006-01-25 Thread tedd
>How flexible are wildcards in CSS? >suppose if I have a series of dynamically created rightnav list items styled >like so: > >.dynamic_rightnav-1 li{border:1px dotted red;} >.dynamic_rightnav-2 li{border:1px dotted red;} >...and so forth > >can I use the wildcard >.dynamic_rightnav-* li{border:1px

Re: [css-d] CSS wildcards

2006-01-25 Thread Zoe M. Gillenwater
Stephen R Laniel wrote: >On Wed, Jan 25, 2006 at 11:19:42AM -0500, Zoe M. Gillenwater wrote: > > >>CSS is not a programming language, so it doesn't have variables in it. >>You define set classes and ids that appear in your source somewhere. >> >> > >Just to be clear, it's a totally reasona

Re: [css-d] CSS wildcards

2006-01-25 Thread Zoe M. Gillenwater
Jim Ryan wrote: >Regular expressions in a stylesheet definition would be a tremendous help in >defining multiple duplicate styles. Let's hope something like this is in the >works. > > I doubt it. It gets brought up on www-style periodically and brought back down. :-) If you need regular expr

Re: [css-d] CSS wildcards

2006-01-25 Thread Stephen R Laniel
On Wed, Jan 25, 2006 at 11:19:42AM -0500, Zoe M. Gillenwater wrote: > CSS is not a programming language, so it doesn't have variables in it. > You define set classes and ids that appear in your source somewhere. Just to be clear, it's a totally reasonable thing to expect from CSS. It would be ni

Re: [css-d] CSS wildcards

2006-01-25 Thread Jim Ryan
I suppose you could build a layer atop CSS -- say, a program that parses a "CSS+Regexen" sheet, looks at the HTML to which it's being applied, finds the elements in the HTML that match the regex, and generates a stylesheet containing those elements. But it's not part of CSS. Regular expressions

Re: [css-d] CSS wildcards

2006-01-25 Thread Zoe M. Gillenwater
Jim Ryan wrote: >How flexible are wildcards in CSS? > > CSS is not a programming language, so it doesn't have variables in it. You define set classes and ids that appear in your source somewhere. >suppose if I have a series of dynamically created rightnav list items styled >like so: > >.dyna

Re: [css-d] CSS wildcards

2006-01-25 Thread David Dorward
On 25/01/06, Jim Ryan <[EMAIL PROTECTED]> wrote: > How flexible are wildcards in CSS? CSS doesn't have wild cards. The * character is a universal selector, which matches any element, it isn't a wild card. > suppose if I have a series of dynamically created rightnav list items styled > like so: >

Re: [css-d] CSS wildcards

2006-01-25 Thread Stephen R Laniel
On Wed, Jan 25, 2006 at 10:52:01AM -0500, Jim Ryan wrote: > can I use the wildcard > .dynamic_rightnav-* li{border:1px dotted red;} This comes up often: http://www.hixie.ch/specs/css/wwwstyle/#selectors Sadly, the answer is no. I suppose you could build a layer atop CSS -- say, a program that pa

[css-d] CSS wildcards

2006-01-25 Thread Jim Ryan
How flexible are wildcards in CSS? suppose if I have a series of dynamically created rightnav list items styled like so: .dynamic_rightnav-1 li{border:1px dotted red;} .dynamic_rightnav-2 li{border:1px dotted red;} ...and so forth can I use the wildcard .dynamic_rightnav-* li{border:1px dotted re