[personal profile] siliconsara posting in [community profile] style_system
Sorry to bother [community profile] style_system again.

I noticed that when an entry bears the name and/or community at the top it messes up the position of the icon.

Here's the icon as seen from the reading, network and single entry page:

 photo userpicpositionreading_zps3e55d535.jpg

Though when the name (and community) are missing (for instance, on the recent entries view) the icon is positioned further down:

 photo userpicposition_zps8095aeb4.jpg

I removed my custom CSS to see if that was the problem, but it's still the same.

Any guidance please?

Date: 2013-04-28 05:20 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
I'm confused. You say, "when an entry bears the name and/or community at the top it messes up the position of the icon" then post a screen cap that shows it looking pretty much alright (if you want its bottom flush with the text bottom vertical-align:baseline added to your .poster custom CSS should do the trick - and yeah, I'm fanatical about getting icon and text bottoms all flush myself).

Then you say, "Though when the name [...] is missing (for instance, on the recent entries view) the icon is positioned further down" then post a screen cap that does not seem to show the icon - or the problem with its positioning - at all. Sorry if I'm just being dense (a quality I'm rather well-known for on DW, my density often rivals any of my other qualities for sheer intensity) but I'm not sure exactly what's wrong there (it's not going to show on your own recent view, though, neither is your poster name, just fwiw). :)

ETA: but if you just want to close the space for .poster on the recent view of your own DW we can do that, so let me (or anyone else here, I'm going to be at work tomorrow) know and I'm sure I or they can help you get it done...

ETA2 Arrrgh, you meant user-icon, didn't you? Told you, I'm dense...I see "icon" and immediately think of the little DW/LJ guy, sorry. Let me take a look real quick...
Edited (word tenses, typos) Date: 2013-04-28 05:27 am (UTC)

Code to fix .userpic (the bigger user icon)

Date: 2013-04-28 05:41 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Assuming that this is what you want/need:

.page-network .userpic,.page-read .userpic,.page-entry .userpic,.page-reply .userpic
{margin-top:-.35em!important;}


Gets the bigger user icon in the same position as it is on .page-recent.

Re: Code to fix .userpic (the bigger user icon)

Date: 2013-04-28 06:44 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
You're welcome! And yes, I could not live without the .page view HTML body classes. That's why coding CSS for my one Google userscript is often such a complete PITA; Google doesn't do very specific targeting of HTML body classes or IDs on its main search, result, and GMail pages, while DW does. And I so love it (though, to be honest, DW inherited most of that code from LJ; we just happen to use it on maybe a few more page-views than LJ does - for instance, on LJ, in Bloggish, there is no body class for what we call .page-reply here). My favorite layout to hack work on on LJ was Bloggish (it's Transmog over here, though that layout you have is AWESOME I must hack it check it out soon) so that was very annoying. I used to have to hand-code the entire freaking page through global hacks like * and what was very experimental CSS2 at the time for first-of-type and last-of-type and first-child and all that just to style one reply page. And it's 3am and here I am just rambling...anyhow, glad you got it sorted. :)
Edited (typos and, I don't know, stuff) Date: 2013-04-28 06:46 am (UTC)

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. 7th, 2026 10:44 pm
Powered by Dreamwidth Studios