r/cssnews May 12 '17

Upcoming CSS change: View Counts

On Monday next week (2017-05-15) we’ll be adding a view number to posts that will be displayed to mods and OP in the sidebar infobox.

It will look like this.

This change will add the following elements to the linkinfo div in the sidebar of comments pages:

<div class="views">
    <span class="view-count">709.9k</span>
    <span class="unit">views</span>
</div>

If you have styled the linkinfo div you may need to make changes to your subreddit CSS.

See the r/modsupport post for more details on this feature

33 Upvotes

View all comments

3

u/[deleted] May 12 '17 edited May 22 '17

I have moved onto a new account. All comments have been edited.

6

u/qtx May 12 '17

I will make it blink in big red letters of course.

2

u/pani-hoi-jol May 12 '17

Legendary /u/qtx! Nice! Do you think it's possible to do it if the view count passes 100k? :P (or some other value)

2

u/qtx May 12 '17

I wish we could do that, but alas :(

1

u/pani-hoi-jol May 12 '17 edited May 12 '17

1

u/qtx May 12 '17

Hmm good call, it might. Didn't notice the k in the screenshot until now.

span.view-count[class*="k"] { .. } or something like that?

2

u/TonyQuark May 14 '17

Not to be a downer, but I'd wait until Reddit's new widget system rolls out before investing a lot of time into CSS. I'm holding off on user flairs for my main subreddit, for example, because I don't want to do the work twice.

1

u/pani-hoi-jol May 13 '17

Yeah, seems like it, I think.