[personal profile] valiha posting in [community profile] style_system
(OK, I fumbled this one and posted it to the wrong comm, so this time I'm double checking to make sure it goes to the right location)

My question is this: I would like to style replies and IP address notifications for [community profile] mag7wallpapers.

Using Firebug I discovered that span.de is what I needed to style. I followed the instructions used on this web page but the result wasn't exactly what I was hoping for. The notice now covers the Post comment, Preview and More options buttons, and I can't figure out how to separate the two.

I would also like to lower the Quote button next to Subject, or move it up - make that whole area neater, because the elements are all over the place - if it can be done. And also, have the notice expand to the width of the textarea.

(click to enlarge)

Help?

Original css:


Edited css:


(Fingers crossed!)

Re: Hi, I'm back... :)

Date: 2010-12-30 11:37 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
OK, on the page reply view there's little I can do because the HTML to hook the CSS to is just not there - just like on my own journal (I was hoping different DW layouts would have more options for styling that page than mine does, but I guess we are SOL).

When I try to work with the existing HTML on the page-reply view, I wind up applying your IP image to all the bolded form options, and there is no way to undo that so it applies just to the IP notice, from what I can see. Also no way to move the quote button on that page, for the same reason.

On the entry page, though, you can move the quote button where you want it with this:

.page-entry #quotebuttonspan{display:block; position:absolute; margin-top: .3em; margin-left: 12em;}

Normally, with absolute positioning, you don't use margin-top or margin-left like I did: you use top and left, but the button moves too far out of view with those, and requires too high an amount of re-adjustment space to bring it back inline, so margin-top and margin-left are my workarounds for that little problem (telling you this just so you don't form bad habits thanks to my hacks).
Edited (more info) Date: 2010-12-30 11:38 pm (UTC)

Re: Hi, I'm back... :)

Date: 2010-12-31 12:15 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Tried it again; still works perfectly for me. Which browser are you using (Firefox, I assume, since you have Firebug, but which version?)? I'm using 3.6.13 - don't know if that makes any difference...

"If it doesn't work out, I might remove styling for this completely because I'd much rather have it align correctly than have pretty colors."

Just to be clear, the colors are only applying to your IP notice styling. If you want to toss the quote CSS you can still keep the IP (span.de) CSS; one won't affect the other.
Edited (more info) Date: 2010-12-31 12:21 am (UTC)

Re: Hi, I'm back... :)

Date: 2010-12-31 12:33 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Viewport width? I'm on 1450 x 960, or something like that (huge resolution). I'll look again (chances are, that block is not respecting absolute positioning, so on different viewports, it displays at different positions- I have the same problem with the "Back to Top" link CSS on my journal - in which case, I have no fix for it, either, sorry).

Re: Hi, I'm back... :)

Date: 2010-12-31 12:42 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Nope, it's not that, either. Everything is fine from what I can see at any res, except that the quote button lays next to the subject textbox at 600 x 400 800 x 600, but I fixed that while I was looking by changing margin-left to 13em 14em...I can post screen caps, if you like, and/or look at yours if you want, to see what you're talking about...
Edited (typos) Date: 2010-12-31 12:49 am (UTC)

Re: Hi, I'm back... :)

Date: 2010-12-31 01:10 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Yeah, it falls apart with no styling at all, even at the increased page-width. So I'd still suggest my original CSS with the width increase on margin-left to account for smaller viewports (but yeah, it did also work fine at 1280 x 768 with my original code):

.page-entry #quotebuttonspan{display:block; position:absolute; margin-top: .3em; margin-left: 14em;}

That code closes up that huge space you're going to have between the subjectbox and the quote button otherwise, and it opens up that same space when the viewport is small without pushing the quote button way, way out there into the page gutter.

Re: Hi, I'm back... :)

Date: 2010-12-31 01:47 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Yes, it is strange indeed. I don't know what I'm missing here. Just to be sure it's not some strange Windows thing I adjusted my Windows screen res to 1280 x 768 a minute ago, then I tried my original code at both that res and 800 x 600, and it's still perfect. From here. Why it's not quite right on your end is not something I can quite figure out (fonts? if you have Vista fonts in the style sheet, which I haven't checked for, they're often much narrower than XP fonts so they can throw off padding on some elements).

If this was IE we were seeing such differences in, then I could instantly blame the fact that I use Vista if you use XP (because IE8 for XP and IE8 for Vista actually display some of the same style elements a bit differently), but since we're both in Firefox, I'm simply out of ideas.

2nd edit: Just checked my Fonts folder; I don't have "Lucida Grande" installed and that's your main font throughout; if you do, maybe that's the reason (assuming it's a wider/smaller font)? *feels clueless*
Edited (typo/more info) Date: 2010-12-31 01:57 am (UTC)

Re: Hi, I'm back... :)

Date: 2011-01-01 04:20 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
It's making me regret that I don't have the laptop I had until a few days ago (it was a friend's and he wanted it back). It was a 15" HP Pavilion Limited Edition, it ran XP with SP3, and had no Vista fonts, etc. Just like yours. It would have been perfect for trying to see what the problem was. If you want to leave my code for the Quote button off that's fine; I tested it again tonight at your layout's new width in 1280 x 768, 800 x 600, and 600 x 400, and again, it seemed to improve things, but I can't see what you're seeing, so, so be it.

At least we tried!

I love your IP notice image and background color, BTW; that was a very creative way to code it. :)

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. 1st, 2025 12:18 pm
Powered by Dreamwidth Studios