r/csshelp • • Apr 30 '13

RES tagging issues

This is in regards to the following CSS: /r/canadacssstaging

First issue

Alright, so my code is probably a tad dirty after making changes to the sort menu (#sort-menu.drop-choices, #sort-menu.drop-choices a) in the header. I had to adjust .tagline so the flairs didn't have the same background as the sort menu.

This caused 2 problems:

  1. span.RESUserTag is now invisible.

  2. .userTagLink.hasTag, #userTaggerPreview are now overriden by .tagline a, so users can't have custom colors on people they've tagged.

RES tagging issues solved thanks to /u/honestbleeps

Help me please & thank you!


Second issue surrounds the flair, but it's minor. Observe:

http://i.imgur.com/oiLZbRG.png

It only happens to link flair, not user flair. When you hover on a flair, it moves it a pixel to the left and it squishes the other ones vertically. It's kinda neat, but I'd prefer not to have it. Any idea how to fix it?


Third issue

Another thing I can't solve. Man am I a useless coder or what! -_-

I'd like to position the text inside the flair so it's vertically aligned. Nitpicky, I know, but I'd rather not have to individually go through and adjust the padding.

If anyone could help me solve these things, I would be indebted.

7 Upvotes

5 comments sorted by

2

u/gavin19 Apr 30 '13

All resolved?

1

u/[deleted] Apr 30 '13

No, only the first one :(

2

u/gavin19 Apr 30 '13

I don't get the hover issue with link flair?

For the alignment you can play around with line-height but usually

.link .linkflairlabel { vertical-align: text-bottom; }

is sufficient.

1

u/[deleted] May 01 '13

It's hard to describe without taking a video. Try submitting a post and looking at the link flair to see what I mean.

It's reeeeeeeeally really minor, but it's not normal. Padding/margins don't work, but if you take off the border it does. If you change the border for an outline, the ends are cut off. All I want is for it to look like the user flair :(

3

u/gavin19 May 01 '13

It's ok. I thought you meant the flair as it appeared on the page, not in the options form. For a bit more spacing

.flairselector .flairsample-left { margin: 5px 0; }

and to stop the hover adding a border and causing it to shift around

.flairselector ul li:hover { border: 0 none; }

Also, the flair text alignment is slightly off because while the height is set to 15px, the line-height is set to 16px. Both should be either 15px or 16px, ie the same.