![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
SOLVED
Is there a class for each level of a multilevel tag? I want to make the first tier of mine on my popular tags module have a different appearance (small caps, italics, something). I found the span.non-link-tag class, but as far as I can tell that's being used for both first and second tiers, and I want just the first.
So if I had something like:
foo: bar: llamas
foo: bar: wildebeest
foo: ticky: pandas
I'd want "foo" to be italicized/capped, but not "bar" or "ticky".
Is there a class for each level of a multilevel tag? I want to make the first tier of mine on my popular tags module have a different appearance (small caps, italics, something). I found the span.non-link-tag class, but as far as I can tell that's being used for both first and second tiers, and I want just the first.
So if I had something like:
foo: bar: llamas
foo: bar: wildebeest
foo: ticky: pandas
I'd want "foo" to be italicized/capped, but not "bar" or "ticky".
Tags:
no subject
Date: 2011-12-26 01:44 am (UTC)ul.tags li
while the second is
ul.tags li li
So what you do is, set the first tier to the style you want and then unset that for the second tier (which will also catch the third, since li li catches /any/ nested list item, of any depth).
no subject
Date: 2011-12-26 02:25 am (UTC)If I do
.non-link-tag {font-variant:small-caps;}
then that works, but no instance of li and li li is differentiating between the first tier and the second.
Also tried shifting each tier over .5em, but it shifted the entire bar instead of just the text with both padding and margin. (Which made your lovely sidebar all jagged and unlovely.)
I'm not especially attached to a particular type of differentiation, as long as there is SOMETHING. Different font-weight, different indenting, anything.
*pokes it some more*
no subject
Date: 2011-12-26 02:29 am (UTC)I meant:
.module-tags_multilevel ul li
and
.module-tags_multilevel ul li li
The .tags would be for the tags page, not the module. The non-link-tag will work too, though, if none of your top-tier items have anything in them. So, if foo only ever exists to be a header, and nothing is ever tagged foo, yeah, that'll do it.
no subject
Date: 2011-12-26 02:42 am (UTC)