Friday, July 12th, 2019 07:39 pm
Quick DW style help
I'm having a weird issue. In my DW comments, unexpanded comments are jumping in font size and I can't tell what the heck happened.

I checked my stylesheet and DW functions but can't work out why it jumps in size.
Or for that matter, why it has 'no subject' there and for that matter in regular font.
I will happily owe a favor to anyone who can help me work out where it all went wrong.

I checked my stylesheet and DW functions but can't work out why it jumps in size.
Or for that matter, why it has 'no subject' there and for that matter in regular font.
I will happily owe a favor to anyone who can help me work out where it all went wrong.
no subject
From:If it's on Android, sometimes all the style stuff is fine but the browser has decided that this bit is more important and should be expanded (wtf).
(- reply to this
- link
)
no subject
From:You're using a homemade layout AND theme (which means I at least can't have fucked with it directly), and I cannot for the life of me see anything in the recent core2 changes that would affect that font size/visibility.
Web inspector's not revealing anything visibly wonky in the CSS — actually there aren't any rules targeting the poster font size or the no-subject visibility.
Was this a recent regression? What browser(s) are you using? And also, can I get a look at your S2 layer sources?
(- reply to this
- thread
- link
)
no subject
From:These are the current ones being used:
Layout layer ID: https://www.dreamwidth.org/customize/advanced/layerbrowse?id=962329
Theme layer ID: https://www.dreamwidth.org/customize/advanced/layerbrowse?id=982014
There was some customization for the following:
EntryPage::print_comment
EntryPage::print_comment_section
ReplyPage::print_comment
For ReplyPage, however, I looked at my test layout notes and remembered why I bothered with customizingit. I had to because of a similar font problem (blowing it up to 16) and I think fix reply box alignment. I did it after the customization of Entry Page::print_comment and ::print_comment_section, but at the time, at least, it didn't seem to be happening because of them.
The only new custom function is a footer (Entry::lay_print_efooter). That was created after the above three, however, and was only to create a css class to make a rounded-edge green box around metadata and tags and line them up more specifically. It shouldn't have affected anything else.
I have no idea if that information is useful or just like babbling. Sorry! I don't think it's anything you were doing, but something in here. I just can't work out where.
(- reply to this
- parent
- thread
- top thread
- link
)
no subject
From:OK, I'm looking at your layout source, I'm looking at the pages themselves, and I'm suspecting a browser cache issue or something.
Because the thing is, it all looks fine to me. I go looking for unexpanded comments in your archive, and they all look like this:
That's what you WANT them to look like, right? As in:
I'm seeing the styles that're intended to do that, I'm seeing them work as expected, all seems fine. So, question mark question mark? Anyway, I have some requests:
(Also, if your browser supports it and if you're comfortable using the inspector, I'm real curious about what CSS rules you see if you right-click on something that's Wrong [like, the "From:" that isn't supposed to be there] and choose "inspect element." But that's bonus points, I know not everyone Loves 2 Inspect.)
(- reply to this
- parent
- thread
- top thread
- link
)
no subject
From:(Long version: because I started frantically editing my style and now am not sure if I needed to and have to make a date to revert it and see. Like, I'm pretty sure I did some serious style hard coding that is probably not needed at all.)
Bless you. I actually do keep a clean browser just for testing (mostly my routers and my server) but it didn't occur to me to check my page there as technically, my brain did not consider 'DW checking and editing' a possible (read: EXCELLENT) use for it. Which is--IDEK.
(- reply to this
- parent
- thread
- top thread
- link
)
no subject
From:(- reply to this
- parent
- top thread
- link
)
no subject
From:(- reply to this
- parent
- top thread
- link
)
Disclaimer: I know CSS, but I haven't touched Dreamwidth styles in years
From:So you can either adjust the HTML in your theme so that it's using the same class structure for both types of comment, or add a few new rules to your Custom CSS to account for the unexpanded comments too, orrr change the existing theme CSS so that it's a bit more general.
For the last option, for example, change:
.poster-information {font-size: .75em;
}
to
.comment-poster {font-size: .75em;
}
(If you add the second one without removing the first it will make the normal expanded comment usernames tiny.)
And then do something similar for
.header .datetime, although this will require some testing because I don't know where else that rule is used.(- reply to this
- thread
- link
)
Re: Disclaimer: I know CSS, but I haven't touched Dreamwidth styles in years
From:I have a bad feeling that between 'locate problem in EntryPage::print_comment_section-related CSS' and 'customize literally every comment-related DW function' it may be easier to do the latter. I remember this driving me crazy before.
Thank you!
(- reply to this
- parent
- top thread
- link
)
Re: Disclaimer: I know CSS, but I haven't touched Dreamwidth styles in years
From:Like, it's a toss up on how much I wrote myself, how much is standard DW, and how much I stole from other, prettier styles.
(- reply to this
- parent
- thread
- top thread
- link
)
Re: Disclaimer: I know CSS, but I haven't touched Dreamwidth styles in years
From:I did just learn about the Chrome CSS Coverage tool though! https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage Looks like it could be helpful for figuring out what is and isn't being used, at least.
(- reply to this
- parent
- top thread
- link
)