[personal profile] jana posting in [community profile] style_system
[1] The first question is related to this entry and this comment. The CSS (see cut) worked fine just a few weeks ago, but now the CSS doesn't take out the space between the tag and the comma anymore, so the tags run occasionally onto the next line which looks kinda ugly. What happened? I use the same browser(s), so I can only assume something in DW's style system has changed...? [The 'plot' thickens here]


.module-tags_cloud .module-list-item:after{content: ", "; }
.module-tags_cloud .module-list-item:last-child:after{content: " "; }

[2] Is it possible to add via the theme layer a comment count to the "Active Entries" module (like in the "Page summary" module)? [Possible, but someone needs to code it first :) ]

[3] Is there a way (via CSS or theme layer) to set some kind of "default icon" for entries without userpic on your reading/network page? Feeds don't have an user icon (which they should, IMO) and sometimes people post entries without an icon. [SOLVED here]

[4] Is it somehow possible to change the month order (latest calendar month first) on a journal's/community's archive page? [SOLVED with a workaround. A bug is being filed about this.]

That's all (for know) :) Thanks in advance for any help or advice!

Date: 2010-08-02 03:42 pm (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
1) the code has changed, yes, they were SPAN tags, they're now LI tags within a UL, not sure why you're getting the space though.

3) Yes, I agree, and was going to submit this as a suggestion but your question has told me there is a workaround. For feeds only:

.journal-type-Y .userpic { background: url(http://s.dreamwidth.org/img/feed100x100.png) no-repeat;
width:100px;
height:100px;
background-color:#000; }

NB, I've set that to display with a black background, feel free to change or delete the last line.

If instead you want a default pic for all posts that have no userpic, including DW users that don't use them, replace .journal-type-y with .no-userpic and give the URL of your own selected picture.

2) Theoretically, yes, and I think I'd like that, so I'll go havk in a bit, time for breakfast first (it's only 1641, that's far too early to get up)

4) no idea, but probably.

Date: 2010-08-02 05:06 pm (UTC)
sally_maria: (Spike)
From: [personal profile] sally_maria
I was meaning to come over and ask if anyone knew what had changed - thanks for doing for me. :-)

Date: 2010-08-02 05:42 pm (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
Re 2), not actually sure my coding skills are up to it (yet), having looked at the source, I think it's doable, but I need more practise at simpler stuff first I think.

3) yes, that'd work as well.

Date: 2010-08-02 05:52 pm (UTC)
foxfirefey: Fox stealing an egg. (mischief)
From: [personal profile] foxfirefey
[4] Is it somehow possible to change the month order (latest calendar month first) on a journal's/community's archive page?

I kind of want this as a all-styles-wide option, hrrrrm.

Date: 2010-08-02 05:54 pm (UTC)
foxfirefey: A picture of GIR. (gir)
From: [personal profile] foxfirefey
Huh, it looks like it IS an option that doesn't hook up to anything: reverse_sortorder_year. Huh.

Date: 2010-08-02 08:17 pm (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
Ah, yeah, but that's nested. .invisible is a new trick for accessiblity, was documented in DW_Styles I think, basically anything with that is moved to display so far off screen it's not visible, so that screenreaders can see how many comments there are but the rest of us get them as a tooltip and through relative size of tag.

Which is why they're not on a list, because the list displays the number, and isn't predicated on a visual effect, which obviously someone blind can't see.

Ooh, actually, yes, that could be the problem, there's a space there that doesn't display. Hence it might be a bug or an unthought of effect, I'll have a look later, I suspect if you started the span with a space, it'd work fine.

Date: 2010-08-02 10:36 pm (UTC)
foxfirefey: Fox stealing an egg. (mischief)
From: [personal profile] foxfirefey
Okay, I'm going to file this as a bug so that we fix it! But, in the meantime, overriding this function like so will achieve your desired effect:

function YearPage::print_body {
    """
    <div id="archive-year">
        <div class="inner">
            """;
            $this->print_navigation( { "class" => "topnav" } );
            """
            <div class="year">
                <div class="inner">
                    """;
                    foreach var YearMonth m (reverse $.months) {
                        $this->print_month($m);
                    }
                    """
                </div><!-- year>inner -->
            </div><!-- year -->
            """;
            $this->print_navigation( { "class" => "bottomnav" } );
            """
        </div><!-- archive-year>inner -->
    </div><!-- archive-year -->
    """;
}
Edited Date: 2010-08-02 10:38 pm (UTC)

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 14th, 2025 08:24 am
Powered by Dreamwidth Studios