[personal profile] feathertail posting in [community profile] style_system
Okay ... I can style all the navmenu items using .module-navlinks ul li a, but I'm trying to only style one of them. Like, say, the last one on the right on [community profile] becomeyourfursona, with the custom1 class, that was added using a custom layer.

I've tried .module-navlinks .custom1 ul li a and various other permutations, including just straight .custom1 a, but none of it works. (It doesn't work on the other, non-custom menu items, either.) Firebug doesn't even show the rules as having been overridden; they just aren't there.

Is this is something I need S2 for -- and if so, where I can find out how to do CSS using S2? Because I remember earlier I tried changing the names of the menu items, and it only worked for "Recent Entries" and didn't work for "Reading." I suspect that menu items that have been modded in some way using a custom layer can't be customized further using the front-end.

Date: 2011-01-26 03:55 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
*looks* .custom1 is the class on the link itself, so try something like:

.module-navlinks a.custom1

Date: 2011-01-26 03:59 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
Hey, that's what we're here for *G* Glad I could help.

Date: 2011-01-26 04:10 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
Hmm. I think it might be better if you moved it out of the module_navlinks section, in that case, and then style it from there (float: right probably)

Date: 2011-01-26 04:33 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
Oh! Okay, can you show me your layer?

Edit it and add this line:

layerinfo "source_viewable" = 1;

And then give me the link, and I'll take a look.

Date: 2011-01-26 06:35 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
Okay, hmm. Try using this:

function print_module_navlinks() {
    var Page p = get_page();
    open_module("navlinks", "", "");
    var string[] links = [];
    foreach var string k ($p.views_order) {
        var string css = """ class="$k" """;
        if ($p.view == $k) { $css = """ class="current $k" """; }
        $links[size $links] = """<a href="$p.view_url{$k}"$css>"""+lang_viewname($k)+"""</a>""";
    }
    print_module_list($links);

    """<div id='websitelink'><a href=""http://becomeyourfursona.com">Become Your Fursona</a></div>""";

    close_module();
}


And then this in your css:

#websitelink {
float: right;
padding: 0.5em 10px;
line-height: 38px;
}


It's kinda rough, but hopefully gets you started in the right direction!

Date: 2011-01-26 07:31 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
Oh oops! Glad you figured it out *G*

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 3rd, 2026 07:31 am
Powered by Dreamwidth Studios