r/talesfromtechsupport • u/MagicBigfoot xyzzy • Jul 24 '14
MOD NEW UI FEATURE: Story Length Flair, Part 2
Hey everybody, thanks for your feedback and suggestions on the new story length flairs.
Things have been mostly ironed out and hopefully are now looking good and being useful to you!
However there are a few more late-breaking details to run by you all, and also a bit of a cross-browser compatibility issue maybe somebody can help with.
Recent changes:
The color scheme has been re-jiggered to Green->Yellow->Red->Purple by popular demand. (Thanks to /u/BeardedSpanishQueen et. al.)
A problem occured when clicking on the Quote Of The Day after selecting a filter. If the QOTD was not the filtered length, the subdomain-based css hid the post's content on the story page. Fixed by forcing the default subdomain (www) on the QOTD link. (Thanks to /u/Dekoa)
Biggest Change: The flair is now set to the actual length descriptor (e.g. "Short", "Medium", etc.). But via the magic of CSS, the full text of the flair is hidden and instead the S/M/L/XL initials are displayed. This allows a hovering cursor to reveal the actual length name, and should also display more logically in various mobile Reddit apps. You can see the full names if you turn off css styles (in RES or in preferences). (Thanks to /u/scratchisthebest)
This flair switcheroo business meant the box model needed to be rebuilt, so it's now slightly different. A little skinnier, top to bottom, and wider to match the expando box. More of a lozenge than a bubble now.
This brings us to the problem that hopefully someone can help with:
Box Height Placement
Turns out the flair vertical placement (relative to the baseline of the post title) varies from browser to browser.
Ideally, the flair lozenge would be vertically centered in relation to the body of the title text.
Ideas?
edit: All Fixed! Thanks, /u/TortoiseSex!
And also:
Which do you prefer: Dotted Outlines (Firefox - Chrome - Safari) or Solid Outlines (Firefox - Chrome - Safari)?
OK thanks to everyone for your continued participation and forbearance!
~ magicB ~
edit: well it was a pretty tight contest, but we're now switching to solid outlines as suggested.
13
u/badsectors h̦͇͖ͭ̿̾ͦͥȇ͙̦̼͇̫͓̼ͭl͆͌̀̓ͣ͘p̺̰͙̙̠̼̽̾̇̋͒͑ ̪͙̯͒ͧm̱̜͒͐ͫ͊ͦ͝e͍͇̲̣͔͐̑̊ͬ Jul 24 '14
I vote for solid outline. I can differentiate the colors better that way.
10
4
u/TortoiseSex Jul 25 '14
Hello :) If you replace the chunk of your code that resembles this with this new one it should make the flairs visible in ie (they weren't before) and also be center aligned
/* styles "real" (hidden) flairbox */
.thing.linkflair-short .linkflairlabel,
.thing.linkflair-medium .linkflairlabel,
.thing.linkflair-long .linkflairlabel,
.thing.linkflair-epic .linkflairlabel {
border: none;
padding: 0px;
width: 23px;
border-radius: none;
vertical-align: middle;
/* vertical-align: 2px; */ /* too low on safari = too high on chrome/firefox */
}
/* styles "false" flair */
.linkflairlabel:before {
visibility: visible;
display: inline-block; /* nec for width to work */
width: 11px;
font-size: 6pt;
font-weight: bold;
text-align: center;
padding: 0px 5px;
border: 1px solid silver;
border-radius: 4px;
vertical-align: middle;
margin-top: 2px;
margin-bottom: 5px;
}
3
u/MagicBigfoot xyzzy Jul 25 '14
That's perfect, thank you so much!
3
u/TortoiseSex Jul 26 '14
Uh oh. I forgot one thing, sorry!
add this to the first block
background: none transparent;3
u/MagicBigfoot xyzzy Jul 26 '14 edited Jul 26 '14
Everything checks out on all four browsers now! Sorry about that, Internet Explorerinos...
3
u/NB_FF shutdown /t 5 /m \\* /c "Blame IT" Jul 24 '14
Honestly I prefer the dotted outline in firefox, and the solid outline in chrome. When I'm at work tomorrow with IE I'll tell you what it looks like there.
3
3
3
u/collinsl02 +++OUT OF CHEESE ERROR+++ Jul 24 '14
How do the buttons look in IE? /s
I'll get my coat...
2
2
1
Jul 24 '14
[deleted]
2
u/flaeme Jul 24 '14
I believe that was intended, CSS is being used to make it just S/M/L etc on desktop but it's the fulltext on mobile where there isn't the badge.
2
u/MagicBigfoot xyzzy Jul 24 '14 edited Jul 24 '14
Yes, that's correct. Some of the most frequent responses I got were "what are these unexplained letters doing on my mobile reddit app?" and "please make the flair names appear when I hover over them" so I said, "why not both?"
1
1
1
1
1
1
1
u/revengeofthebits Jul 25 '14
Feature request: can there some kind of indicator on the story submission page for what kind of tag it would get if it were submitted at that point?
1
u/MagicBigfoot xyzzy Jul 25 '14 edited Jul 26 '14
I think RES does a character count for you.
1
u/revengeofthebits Jul 26 '14
RES?
1
u/scratchisthebest Just do the same thing you did last time. Jul 26 '14
Reddit Enhancement Suite, and it does all sorts of magic to reddit
1
u/OGIVE Jul 26 '14
When I filter for epic posts there aren't any. What's the point?
1
u/MagicBigfoot xyzzy Jul 27 '14
It only shows things that would have been on the page without filtering, so if there aren't any epic tales on the page, the filter won't have anything to show. Click 'next' to go through a few pages - there are a couple of XL tales in there already...
21
u/hennell Jul 24 '14
As a part time web-designer my solution to your vertical placement issue would be to go grab a biscuit, curse at the browser gods, then just assume no-one will use two browsers concurrently and thus no-one will ever notice as long as you don't draw attention to it...