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.



Screenshot of comments



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.
azurelunatic: Vivid pink Alaskan wild rose. (Default)

From: [personal profile] azurelunatic Date: 2019-07-13 01:24 am (UTC)
[personal profile] roadrunnertwice has been trying to unfuck comment display recently, so stuff's been shifting behind the scenes.

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).
roadrunnertwice: DTWOF's Lois in drag. Dialogue: "Dude, just rub a little Castrol 30 weight into it. Works for me." (Castrol (Lois))

From: [personal profile] roadrunnertwice Date: 2019-07-13 04:44 am (UTC)
i am summoned 💀🌋

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?
roadrunnertwice: Dialogue: "I have caught many hapless creatures in my own inter-net." (Hapless creatures (Rainy Days))

From: [personal profile] roadrunnertwice Date: 2019-07-15 05:16 am (UTC)

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:

debugging something

That's what you WANT them to look like, right? As in:

  • All on a single line (if there's room for it, it'll wrap if needed).
  • Subject is always visible (even if it's "(no subject)", because it serves as the permalink to the sub-thread).
  • Font size on the whole line is the same (poster name isn't bigger).
  • "From:" is hidden.

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:

  1. First, am I reading you right about what you expected to see, or am I missing something?
  2. Can you link me to a page where this is currently happening for you?
  3. Can you tell me what browser you're using, and whether it happens in all your browsers or just on one?
  4. Can you blow away your browser cache and see if it's still happening after that?

(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.)

roadrunnertwice: MPLS, MN skyline at sundown.  (Minneapolis - Sunset in the city)

From: [personal profile] roadrunnertwice Date: 2019-07-17 06:46 pm (UTC)
Yay! Well, I mean, I'm glad it's not anything truly awful, like serving different stylesheets to you vs. everyone else or something.
Once I managed to find a page that had the bug, I did a little digging with the Firefox developer tools and it looks like your unexpanded comments have slightly different HTML than the expanded comments, so some of the CSS rules aren't being inherited and it just shows in the default font size.

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.
Yeeeah, refactoring CSS is one of those things that makes me realise why the current trend is to use newfangled CSS extension libraries to generate it all for you. (The need to learn how to use all these, plus the matching Javascript generators, is a major factor in why I am now Pursuing Alternative Career Options.)

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.

Profile

seperis: (Default)
seperis

Tags

Quotes

  • If you don't send me feedback, I will sob uncontrollably for hours on end, until finally, in a fit of depression, I slash my wrists and bleed out on the bathroom floor. My death will be on your heads. Murderers
    . -- Unknown, on feedback
    BTS List
  • That's why he goes bad, you know -- all the good people hit him on the head or try to shoot him and constantly mistrust him, while there's this vast cohort of minions saying, We wouldn't hurt you, Lex, and we'll give you power and greatness and oh so much sex...
    Wow. That was scary. Lex is like Jesus in the desert.
    -- pricklyelf, on why Lex goes bad
    LJ
  • Obi-Wan has a sort of desperate, pathetic patience in this movie. You can just see it in his eyes: "My padawan is a psychopath, and no one will believe me; I'm barely keeping him under control and expect to wake up any night now to find him standing over my bed with a knife!"
    -- Teague, reviewing "Star Wars: Attack of the Clones"
    LJ
  • Beth: god, why do i have so many beads?
    Jenn: Because you are an addict.
    Jenn: There are twelve step programs for this.
    Beth: i dunno they'd work, might have to go straight for the electroshock.
    Jenn: I'm not sure that helps with bead addiction.
    Beth: i was thinking more to demagnitize my credit card.
    -- hwmitzy and seperis, on bead addiction
    AIM, 12/24/2003
  • I could rape a goat and it will DIE PRETTIER than they write.
    -- anonymous, on terrible writing
    AIM, 2/17/2004
  • In medical billing there is a diagnosis code for someone who commits suicide by sea anenemoe.
    -- silverkyst, on wtf
    AIM, 3/25/2004
  • Anonymous: sorry. i just wanted to tell you how much i liked you. i'd like to take this to a higher level if you're willing
    Eleveninches: By higher level I hope you mean email.
    -- eleveninches and anonymous, on things that are disturbing
    LJ, 4/2/2004
  • silverkyst: I need to not be taking molecular genetics.
    silverkyst: though, as a sidenote, I did learn how to eviscerate a fruit fly larvae by pulling it's mouth out by it's mouthparts today.
    silverkyst: I'm just nowhere near competent in the subject material to be taking it.
    Jenn: I'd like to thank you for that image.
    -- silverkyst and seperis, on more wtf
    AIM, 1/25/2005
  • You know, if obi-wan had just disciplined the boy *properly* we wouldn't be having these problems. Can't you just see yoda? "Take him in hand, you must. The true Force, you must show him."
    -- Issaro, on spanking Anakin in his formative years
    LJ, 3/15/2005
  • Aside from the fact that one person should never go near another with a penis, a bottle of body wash, and a hopeful expression...
    -- Summerfling, on shower sex
    LJ, 7/22/2005
  • It's weird, after you get used to the affection you get from a rabbit, it's like any other BDSM relationship. Only without the sex and hot chicks in leather corsets wielding floggers. You'll grow to like it.
    -- revelininsanity, on my relationship with my rabbit
    LJ, 2/7/2006
  • Smudged upon the near horizon, lapine shadows in the mist. Like a doomsday vision from Watership Down, the bunny intervention approaches.
    -- cpt_untouchable, on my addition of The Fourth Bunny
    LJ, 4/13/2006
  • Rule 3. Chemistry is kind of like bondage. Some people like it, some people like reading about or watching other people doing it, and a large number of people's reaction to actually doing the serious stuff is to recoil in horror.
    -- deadlychameleon, on class
    LJ, 9/1/2007
  • If imitation is the sincerest form of flattery, then Fan Fiction is John Cusack standing outside your house with a boombox.
    -- JRDSkinner, on fanfiction
    Twitter
  • I will unashamedly and unapologetically celebrate the joy and the warmth and the creativity of a community of people sharing something positive and beautiful and connective and if you don’t like it you are most welcome to very fuck off.
    -- Michael Sheen, on Good Omens fanfic
    Twitter
    , 6/19/2019
  • Adding for Mastodon.
    -- Jenn, traceback
    Fosstodon
    , 11/6/2022

Credit

November 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2022
Page generated Jan. 27th, 2026 09:31 pm
Powered by Dreamwidth Studios