r/cssnews • • Sep 08 '16

CSS Change – Changes to default thumbnails, expando icons, and upcoming change to comments pages for logged out users from SEO

0 Upvotes

New default thumbnails

We've updated the default thumbnails that are shown for self posts and links without image thumbnails. All of the thumbnail images are now the same size (70x70) (70x50). In about a week, we're planning on adding HDPI ("retina") versions of these, which we expect to conflict with any custom thumbnail CSS. If you're currently overriding the default thumbnail styles with CSS, you'll need to explicitly set the background-size property to avoid issues.

New expando icons

We're also updating the expando icons to a new style. Similarly, we're planning to add HDPI versions of these in about a week. If you're styling the expando icon with CSS, you'll need to explicitly set the background-size property to avoid issues.

Upcoming change to comments pages for logged out users from SEO

We’re making some changes to comments pages for logged out users coming into Reddit from search engines. The primary change is the inclusion of a new listing of posts from the current subreddit in the comments section.

The new HTML structure for this page looks roughly like this:

<div class="commentarea">
  <div class="sitetable nestedlisting">
    <!-- normal comments markup -->
  </div>
  <!-- new divider with a button to jump down to the rest of the comments -->
  <div class="seo-comments spacer">
    <a class="c-btn c-btn-primary" href="#bottom-comments">More comments</a>
  </div>
  <div class="spacer">
    <h1 class="seo-comments">More from r/cssNews</h1>
    <div class="sitetable linklisting">
      <!-- normal link listing markup -->
    </div>
  </div>
  <div id="bottom-comments">
    <div class="spacer">
      <h1 class="seo-comments">Comments, continued...</h1>
    </div>
    <div class="sitetable nestedlisting">
      <!-- normal comment listing markup -->
    </div>
  </div>
</div>

You can view the changes now by adding ?feature=seo_comments_page to the end of a url, like this!

TL;DR - Default thumbnail and expando icons are changing now, with hi-res versions coming next week. Update your css if you have custom styles for either of these. Also, there's a new version of the comments page that logged-out users from SEO will see.

If you have any questions/comments about these HTML/CSS changes, please ask them here and I'll be happy to help!


r/cssnews • • Jun 24 '15

Upcoming CSS Change: New search page.

23 Upvotes

We started beta testing a new search page about a month ago, and we're getting close to turning it on for everyone. The page is pretty much completely new, so there's a good chance that it won't inherit many of your styles by default. For more information about the feature, check out this modnews post.

NOTE: For the most part, you probably don't need to worry about subreddit search results unless you are working on a stylesheet intended for use with our reddit-themes gold feature.

If you want to do some stylin' on the new search page, here's some css info you may be interested in:

classfunction
.combined-search-pageThis class exists on the body element on the new search page only. You can start each of your css selectors with this to scope your styles to this page only
.search-result-listingThis class is added to the normal .listing element on the new page. There can be multiple listings on a page (e.g. post results and subreddit results are different listings) and the listings include the header and pagination buttons.
.search-result-groupNested directly in .search-result-listing, mainly just does some formatting (e.g. restricting the width of the results).
.search-result-group-headerThe header for a search listing; this also contains the filter menus (e.g. "sort by")
.search-resultEvery search result will have this class, regardless of type (post/subreddit).
.search-result-linkNormal posts (both link and self) will also have this class.
.search-result-subredditSubreddit results will also have this class.
.has-thumbnailThe .search-result-link element will also have this class if it has a thumbnail.
.search-result-headerContains the title.
.search-titleThe actual title link.
.search-result-metaThe line directly under the title, including score, comments, time, author, etc.
.search-scoreThe post's score
.search-commentsThe post's comment count
.search-result-bodyWill contain selftext if it exists, or the subreddit description text for subreddit results.
.search-expandoSelf-post text is inside this element. If the text is longer than 3 lines, it will include the .collapsed class, which will truncate the text and overlay a gradient at the bottom.
.search-expando-buttonThis link expands/collapses the expando element.
.search-result-footerContains a link to the external site for link posts, or for subreddit results, a link to filter the search to that subreddit
.search-linkThe actual link element
.search-result-iconAny of the icons used in the search results will have this class and an additional class specific to that icon
.search-subscribe-buttonThe subscribe button shown on subreddit search results.

That's the bulk of it – I probably missed a couple of minor things. Feel free to comment here or shoot me a message with questions, and if you want to leave feedback on the new page, come on over to r/beta!


r/cssnews • • Nov 29 '17

Upcoming CSS Change: Adding Chat Icon Next to the Envelope Icon

76 Upvotes

EDIT: As of 12/6/2017 @ 3:30 PM PST these changes went live. Users can now close the chat window and there's an icon next to the envelope to initiate the chat experience. Only users in the chat beta will see this icon.

As many of you know - chat has been in beta for the last couple of months. One of the most popular requests is being able to hide the chat window from the bottom right corner of the page. Early next week, we will be adding a chat icon next to the envelope icon in the header user menu which will allow users to close the chat window completely and re-open it by clicking the new icon. If you have customized the header menu for your community, you may be impacted by this change.

Please note - only users who have chat will see the chat icon. Users who are not yet part of the chat beta will not be impacted by this change. Chat is currently only available to a small percentage of users, so this change will not have a big impact initially.

What’s changing next week:

  • Adding a new chat icon and chat badge count to the user menu

  • Allowing users to close chat completely from the bottom right corner of the website

  • Allowing users to open chat from the chat icon

What’s it look like?

Sample

<div id="header-bottom-right">
<span class="user"><a href="/user/jleeky/">jleeky</a>&nbsp;(<span class="userkarma" title="post karma">20,427</span>)</span>
<span class="separator">|</span>

<a title="new messages" href="https://www.reddit.com/message/messages/" class="havemail" id="message">messages</a>
<a href="https://www.reddit.com/message/messages/" class="message-count">2</a>
<span class="separator">|</span>

<a title="new notification!" href="https://www.reddit.com/notification/unread/" class="havemail" id="inbox">messages</a>
<a href="https://www.reddit.com/notification/unread/" class="inbox-count">2</a>
<span class="separator">|</span>

<a href="https://www.reddit.com/chat/" data-message-type="expand.chat" target="chat-app" id="chat" class="active">chat messages</a>
<a href="https://www.reddit.com/chat/" data-message-type="expand.chat" target="chat-app" id="chat-count" class="message-count">2</a>
<span class="separator">|</span>

<a title="no new mod mail" href="https://wwww.reddit.com/message/moderator/" data-event-action="pageview" data-event-detail="modmail" class="nohavemail access-required" id="modmail">mod messages</a>
<span class="separator">|</span>

<a title="new mod mail!" href="https://mod.reddit.com/" data-event-action="pageview" data-event-detail="modmail" class="havemail access-required" id="new_modmail">mod messages</a>
<span class="separator">|</span>

<ul class="flat-list hover">
    <li><a href="https://www.reddit.com/prefs/" class="pref-lang choice">preferences</a></li>
</ul>
<span class="separator">|</span>

<form method="post" action="https://www.reddit.com/logout" class="logout hover">
    <input type="hidden" name="uh" value="[censored]">
    <input type="hidden" name="top" value="off">
    <input type="hidden" name="dest" value="/"><a href="javascript:void(0)" onclick="$(this).parent().submit()">logout</a>
</form>
</div>

r/cssnews • • May 07 '15

CSS change: beta mode icon

11 Upvotes

We have re-opened a general beta program for reddit. Read the announcement post here and find more information in /r/beta.

If a user opts into the beta program they will see this flask icon next to their username in the sidebar, as well as help bubblethat appears when hovering on the icon.

If you need to change either of these so they do not conflict with your subreddit style, the following elements have been added at the beginning of the header-bottom-right div.

<div class="beta-hint help help-hoverable">
  <a class="beta-link" href="/r/beta">beta</a>
</div>

The help bubble is added to the bottom of the body element and set to visible when the flask icon is hovered over.

<div id="beta-help" class="hover-bubble help-bubble anchor-top">

The full CSS is visible here.

Please do not hide the beta icon or help bubble from users.


r/cssnews • • Sep 23 '11

Changes to markup of mail icons (and a few other misc. images) for spriting.

3 Upvotes

Today, we added some images to sprites and made a few other tweaks to the markup to speed up page loads (see the GitHub commits for more details).

A notable change is that the markup for mail icons has been simplified from an <img> tag inside an <a> to simply an <a> with a background-image set. If your subreddit styles the mail icons, you may need to update your CSS.

The good news is that this change should make it simpler to style the mail buttons in the future, since it obviates the need for hiding the original child <img> tag. I just updated the style for /r/lounge and found the new markup to require a lot less code. :)


r/cssnews • • Jul 02 '13

CSS Change: Link flair classes are now added to the body tag

35 Upvotes

As requested by a few people, when "inside" (such as on the comments page for) a submission that has link flair class(es), those classes are now also available on the body tag. This allows styling the comments pages differently based on the submission's link flair class. For example, this could be used to style the OP's username more prominently in posts with an "AMA" flair, but not have this apply to all other posts.

Specifically, if you assign a particular link flair template any css classes in the flair settings, those will be available prefixed with post-linkflair-. So if you have a flair class ama, the body will have the class post-linkflair-ama. With multiple classes a and b the body will have post-linkflair-a and post-linkflair-b.


r/cssnews • • Mar 30 '18

Upcoming CSS Change: Changes to "Give Gold" Styling

17 Upvotes

Update IV (5/8/18): The changes have now gone out to 100% of users! We will continue to monitor feedback and issues.

Update III (4/19/18): We've rolled out these changes to about half of our users now, woo! Will continue to monitor to make sure all looks well before going 100%.

Update II (4/5/18): Changes are out to a small percentage of users!

Update I (4/4/18): We plan on rolling out these changes starting tomorrow, 4/5/18

Hi folks,

Next week, we will be rolling out a few gold-related changes that will likely affect your subreddit’s CSS. Briefly, they are:

  • Show the "give gold" button on post menus in subreddits and the home feed

  • Show the gold coin icon next to gilded posts in subreddits and the home feed

  • Change the font color of the "give gold" button

See what these changes look like here!

Each of these changes will affect only a small percentage of users initially, before rolling this out to more people. These changes will take effect towards the end of next week. I will update here with an edit when that happens.

To support these CSS updates, you may see changes to the posts’ HTML that mirror what you might see on a comments page.

What was …

<div class="link">
 ...
 <p class="tagline">
   ...
   <a class="author">...</a>
 </p>
 ...
 <ul class="flat-list buttons">
   <li class="first">...</li>
   <li class="share">...</li>
   <li class="save-button">...</li>
   <li>...</li>
   <li class="report-button">...</li>
   <li class="crosspost-button">...</li>
 </ul>
 ...
</div>

… will become …

<div class="link">
 ...
 <p class="tagline">
   ...
   <a class="author">...</a>
   <a>
     <span class="gilded-icon">x3</span>
   </a>
 </p>
 ...
 <ul class="flat-list buttons">
   <li class="first">...</li>
   <li class="share">...</li>
   <li class="save-button">...</li>
   <li>...</li>
   <li class="give-gold-button">
     <a class="give-gold ...">...</a>
   </li>
   <li class="report-button">...</li>
   <li class="crosspost-button">...</li>
 </ul>
 ...
</div>

Meanwhile, to support styling of the “give gold” button, some users will see a new class applied: “gold-give-gold”. In order to overwrite the default styling of this button, you can select the element with CSS selector “.button .give-gold.gold-give-gold”.

Let me know if you have any questions!


r/cssnews • • Oct 09 '14

CSS Change: New search button

19 Upvotes

As suggested by a number of people over the years, we've added a submit button to the search box. This is particularly helpful for users browsing reddit on devices without an enter key (like many gaming consoles), who previously could not search the site without relying on external search engines. You'll also see a slew of style improvements to the box.

This change is largely the work of /u/DoNotLickToaster , our new user experience expert.

See the code behind this change on GitHub.


r/cssnews • • Dec 01 '14

CSS Change: hosting change you hopefully shouldn't notice

20 Upvotes

I just rolled out a change that should make subreddit stylesheets and header images load faster for users on HTTPS. It will take effect the next time you save your stylesheet (or when I migrate existing stylesheets in the coming days). This shouldn't have any visible effect for users other than potentially faster load times, but I wanted to put this out there in case I did break something.


tech details: in the before days, we did not have valid SSL certs on our CDN. This meant that when visiting the site on HTTPS we had to generate URLs for stylesheets etc. that linked directly to Amazon S3 instead of going through our CDN (i.e. https://s3.amazonaws.com/redditstatic/... instead of https://www.reddistatic.com/...). That's not the case anymore since we got full-site HTTPS and so now the links can point at our CDN which a) has lower latency and b) supports SPDY.


r/cssnews • • Jun 30 '14

[Upcoming Change] Cleanup of Comment Markup [x-post from /r/modnews]

23 Upvotes

(Heads up: This is crossposted from /r/modnews. If you're on there, you can view the post there: http://www.reddit.com/r/modnews/comments/29i9yn/upcoming_change_cleanup_of_comment_markup/)

Hey mods/modders,

Just wanted to give you a small heads up on a markup change we'll be making in a week or so.

Right now the markup for a single comment looks like this:

<div class="thing comment">
  <div class="entry">
    <div class="collapsed">[a bunch of comment details here]</div>
    <div class="noncollapsed">[those same bunch of comment details here]</div>
  </div>
</div>

Which is a little duplicative and useless. We're cleaning this up into one block like this:

<div class="thing comment collapsed">
  <div class="entry">[a bunch of comment details here]</div>
</div>

And the collapsed/noncollapsed classes will change based on clicking.

As you'd guess, this could have effects on extensions and subreddit CSS. If you're doing any specific CSS or JS that:

  1. Expects collapsed or noncollapsed to be a child of entry or comment.

  2. Expects both noncollapsed and collapsed to exist at the same time.

  3. Expects a certain level of depth for comment bodies or something

You may want to take a look at your selectors and see if they can be made simpler.

A full example of what the markup will look like is here: https://gist.github.com/umbrae/228a925585023bf0c52c

Hope this is helpful!

(Sidenote: I know it's not ideal to get these change notifications in English - they're not exactly testable. We're thinking about better ways to get these out down the line. Hopefully better to know than not, though.)

-umbrae


r/cssnews • • Feb 15 '13

CSS Change - New submit button classes added

Thumbnail
reddit.com
8 Upvotes

r/cssnews • • Nov 25 '14

Moderators: new markdown styles upcoming

16 Upvotes

We are currently testing changes to our default css for rendered markdown text. You can preview the changes live on the site right now by appending ?feature=new_markdown_style to the URL on any page. For example, here is the current privacy policy wiki page, and here it is with the new styles applied.

For some areas of the site, the visual impact should be minimal. The homepage, for example, isn't really affected. Areas that make heavy use of markdown formatting (e.g. comments pages, the sidebar, and wiki pages) will be affected more. If you have made heavy stylesheet customizations, please check your subreddit for compatibility issues. Refer to the old markdown primer thread for a thorough look at all of the changes -- old vs new -- but keep in mind that most comments threads don't feature such heavy markdown formatting.

The class .old-markdown has been added to the <body> element when viewing the old (i.e. current) styles, to make the transition easier. If you need to make any changes to your stylesheet that break the design without these updates, you can target additional styles to override them using this class. i.e.

.side .md p {
  /* style changes for new default markdown styles */
}

.old-markdown .side .md p {
  /* temporary fixes for backwards compatibility */
}

I'm aiming to release these changes fully on Friday of next week (12/5), so please let me know if you have questions/concerns or notice anything bizarre with the new styles. Thanks!


EDIT: I've received a lot of feedback from people concerned about the short timeline for these changes, so I want to let you all know that we're going to push back the deadline. You'll have until at least the 15th. Also, I'm going to be pushing out some minor fixes for some of the issues that people have pointed out. I'll post an update here when those are out. thanks!


EDIT 2: As promised, here's a round of updates to address some of the issues you all brought up.

  • font sizes are now em based, and markdown text will respect your browser's default font size preferences.

  • the grey text used for blockquote and del elements has been darkened to meet WCAG level AA accessibility requirements

  • fixed some combinations of styles (e.g. bold + italics) not working

  • dropped the larger wiki font size from 16px down to 14px to match comments. header elements on wiki pages have been tweaked slightly as well.

  • margins between elements have been reduced quite a bit, especially in sidebar text

Additionally, I've caught up on getting all of these changes into our opensource repo on github, so you can now check out all of the changes there! You can see the original changes here and here. The changes introduced in this edit are here.


r/cssnews • • Sep 22 '15

CSS Change: new reddit-infobar class

27 Upvotes

We've added a new class .reddit-infobar that will replace .infobar in certain places. .reddit-infobar will be used to display information at the top of listings pages. For example, the 'archived post' notification uses the .reddit-infobar class.

.reddit-infobar is a visual refresh of the existing .infobar class and gives us the option to display an icon. The goal is to make reddit notifications more understandable and consistent for users.

The .infobar class will continue to be used in places that are not the top of listing pages. Examples include the search expando and comment permalink pages.

Styling

Our goal is for .reddit-infobar to be a space on the page that we can communicate important messages to users, regardless of the subreddit that they are in. As such we ask that you do not hide or move the .reddit-infobar div and ask that you keep visual styling to a minimum.


r/cssnews • • Oct 01 '13

CSS Change: Stylesheets will be moving to a new location and being made HTTPS-friendly shortly.

76 Upvotes

In the next few hours, I will be running a script to upgrade the majority of subreddit stylesheets to a new system. This should be completely transparent to users and mostly transparent to moderators. The key differences are:

  • Stylesheets and in particular the images in them will now use the correct protocol (HTTP or HTTPS). This brings us one step closer to full site SSL.

    • If you've been browsing on HTTPS already, you may've noticed a bunch of subreddits being unstyled lately. This will bring them back.

  • It will no longer be possible to use raw URLs (e.g. background: url(http://www.reddit.com/static/whatever.png)). The subreddit image system (background: url(%%example%%)) is the only way moving forward.

    • This will only affect a handful of subreddits and I will be upgrading them separately. Any directly referenced images currently used will be added to your subreddit images. Yes, this includes the triforce.

    • The main use case for these direct images right now is to reference reddit's built in images. Unfortunately, we need to change these from time to time so it's dangerous to your stylesheet's health to use them.

  • Stylesheets themselves will be hosted on {a-f}.thumbs.redditmedia.com rather than www.redditstatic.com.

Things that aren't changing:

  • /r/subreddit/stylesheet.css will continue to work. It will redirect to the actual location of the stylesheet.

  • Subreddit images (%%example%%) will continue to work.

Around 36,000 subreddits should be upgraded automatically by this system. The remaining 600 or so that have stylesheets but can't be upgraded automatically in this pass will be taken care of later this week. Please let me know if anything funky happens.

EDIT: 13:23 Pacific (20:23 UTC) It has begun.

EDIT: 14:35 Pacific (21:35 UTC) 25% complete.

EDIT: 15:39 Pacific (22:39 UTC) 50% complete. 21,000 subreddits-with-stylesheets upgraded so far.

EDIT: 16:50 Pacific (23:50 UTC) 75% complete. 31,000 subreddits-with-stylesheets upgraded.

EDIT: 17:26 Pacific (01:26 UTC) all done! 36,329 subreddits-with-stylesheets were upgraded and only 599 remain to be dealt with in a more targeted manner.


r/cssnews • • Jun 20 '19

Ads are moving in feed on old Reddit

24 Upvotes

Subreddits using CSS on old Reddit should be aware of an upcoming change that will standardize ads across Reddit platforms. Starting next week, promoted posts (`.link.promoted`) will appear in feed. This may impact your styling if you have a custom style applied to (`.link.promoted`).


r/cssnews • • Nov 14 '11

CSS Change: We're moving our static files to S3 and the sprites are getting some love.

4 Upvotes

We're going to be moving almost all of our static files to Amazon S3 so that they can better handle load. Some changes were necessary in our frontend to facilitate this.

A bunch of images were added to the sprite, including the default subreddit header.

  • The layout of the sprite image was improved to reduce wasted space caused by these new, larger, images. See: old sprite vs. new sprite.

  • Places that used the existing sprites had to be modified to support the denser packing of sprites. Most of these were changed to look like :before psuedo-selectors with a background image.

You can see the new code live on lab.reddit.com to test out. We're hoping to roll this out this evening PST (Nov 14) or tomorrow morning (Nov 15).

EDIT: This code is now rolled out and lab is turned off again. If you run into any issues, feel free to come bug me over in the /r/changelog post about this.


r/cssnews • • Feb 27 '15

CSS change: a handful more properties are now allowed in subreddit stylesheets

29 Upvotes

I've merged some open source contributions which expand the list of allowed properties in subreddit stylesheets:

You can start using these in your stylesheets immediately.

See the code behind these changes on GitHub and many thanks to the open sourcerers that submitted these for everyone's benefit!


r/cssnews • • May 13 '15

[reddit change] New CSS class for public display of content removed for legal reasons

16 Upvotes

If you have not read the annoucnement post or the changelog post, please take a moment to do so.

This change brings in a new optional CSS class of admin_takedown. This class will optionally appear on comments (example: https://www.reddit.com/r/ChillingEffects/comments/35urvq/test_post_please_ignore/cr7z8fp) or self posts (example: https://www.reddit.com/r/ChillingEffects/comments/35urvq/test_post_please_ignore/).

Please do not alter the look or functionality of this new class.


r/cssnews • • Mar 29 '18

New Redesign Optin Banner

18 Upvotes

Hi folks,

Starting early next week, we will begin opening up the redesign to more users as mentioned in this post. In order to give people the option to opt in and toggle back & forth easily, we will be adding a small icon in the top left corner of the page that will affect CSS that looks like this. The icon will appear on all aggregate pages as well as subreddit listings and comment pages. We’re aiming the release of this for Monday (4/2). The DOM updates are as follows:

<div id="sr-header-area">
  <div class="width-clip">
    <div class="redesign-beta-optin">
      ${_("TRY THE REDESIGN")}
    </div>

    ${thing.my_subreddits_dropdown}

    <div class="sr-list">
       ...
    </div>

    ...
  </div>
</div>

The div.redesign-beta-optin is the newly added element for the optin. The updated CSS is as follows:

#sr-header-area .redesign-beta-optin {
    background-color: #FF4500;
    color: #FFFFFF;
    cursor: pointer;
    float: left;
    font-size: 10px;
    font-weight: bold;
    line-height: 18px;
    padding-right: 20px;
    position: relative;
    text-align: center;
    width: 138px;

    // The dark red square to the right
    &:before {
        background-color: #C53500;
        content: "";
        display: block;
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
        width: 20px;
    }

    // the icon
    &:after {
        content: "";
        display: block;
        height: 14px;
        position: absolute;
        right: 3px;
        top: 2px;
        width: 14px;
        .hdpi-bg-image(@1x: url(../icon_planet.png),
                       @2x: url(../icon_planet_2x.png));
    }
}

Edit: This will only be shown to users who have explicitly opted out of the redesign, or are eligible to optin to the redesign.


r/cssnews • • May 27 '15

CSS Change: New feature, "Read Next" box

25 Upvotes

We're adding a new logged out feature today to post pages that we're calling "Read Next". You can check it out by viewing the comments page of a post while logged out, or by enabling beta mode.

If you want to style the new widget, there are a few classes you may be interested in.

classfunction
.read-next-containerthe root element of the widget; it's located at the bottom of the sidebar. This element stays relatively positioned in the sidebar and is used to determine when the 'sticky' behavior of the widget should activate. It is probably best to avoid styling this element.
.read-nextthe root element for styling purposes. It contains two elements: the header and the list.
.read-next.activewhen the root element has links to show, it will also have the active class. It is best to use both classes to target styles
.read-next.fixedwhen the 'sticky' behavior is activated (i.e. when the user has scrolled to the end of the sidebar) the root element will gain the fixed class
.read-next-headerthe top portion of the widget, containing the navigation buttons, subreddit link, and dismiss button
.read-next-header-titlethe "discussions in /r/subredditname" text
.read-next-navcontainer element for buttons in the header
.read-next-nav-leftholds the buttons on the left side of the header (the next and previous link buttons)
.read-next-nav-rightholds the button on the right side of the header (the dismiss button)
.read-next-buttonboth the previous and next buttons have this class.
.read-next-button.leftthe left nav button, cycles the widget to the previous link in the list (<)
.read-next-button.rightthe right nav button, cycles the widget to the next link in the list (>)
.read-next-dismissthe dismiss button, hides the widget (x)
.read-next-listthe bottom portion of the widget, contains the link listing
.read-next-listinga list of links, also has the .listing class, though it's advised to target styles with the more specific one.
.read-next-linka link in the listing; these are hidden by default
.read-next-link.activethe visible link
.read-next-metaon a link, the line containing the score (.score) and comment counts (.comments)
.read-next-thumbnailon links with thumbnail images only, contains the thumbnail's <img> element
.read-next-titlethe title of the link

That's a load of new classes to deal with, but one of the things we want to do is make it easier to target styles to specific features like this without accidentally changing things elsewhere.

Please don't use css to hide this feature or disable its functionality. See our rules on subreddit appearance for more info on that. If you have any feedback on the feature, we'd love to hear it in /r/beta (or in the changelog post linked above), and if you have any questions about styling let met know!


r/cssnews • • Apr 20 '10

There are a few areas of the site that you can no longer style, but you probably shouldn't have been styling them anyway. Let me know if we blocked anything that you wish we hadn't.

Thumbnail
reddit.com
11 Upvotes

r/cssnews • • Feb 04 '13

CSS-related change: Submit button moved above sidebar, and text changed to "Submit a post" - check for CSS conflicts

Thumbnail
reddit.com
11 Upvotes

r/cssnews • • Nov 10 '17

DOM Change: Comment box for logged out users

12 Upvotes

Hey Everyone!

In addition to this DOM change we deployed out a change that shows the top-level comment box on comment pages for logged out users. When clicking on the box, the user will be prompted to signup/login. The comment box will show up under <div class="commentarea">

The HTML for the new comment box looks like this:

<section class="infobar commentsignupbar">
  <div class="commentsignupbar__container">
    <a href="/login" class="login-required commentsignupbar__link-wrapper">
      <textarea class="commentsignupbar__textarea"></textarea>
      <div class="commentsignupbar__textarea-above">
        <h2 class="commentsignupbar__title">Want to add to the discussion?</h2>
        <p class="commentsignupbar__desc">Post a comment!'</p>
        <div class="commentsignupbar__cta-container">
          <span class="c-btn c-btn-primary commentsignupbar__cta-button">Sign up</span>
        </div>
      </div>
    </a>
  </div>
</section>

A CSS change we will be implementing on Monday is adding resize: none; to .commentsignupbar__textarea.

Thanks!


r/cssnews • • Jul 26 '16

Upcoming CSS Change: Small change to image submit form

Thumbnail
reddit.com
13 Upvotes

r/cssnews • • Sep 06 '16

Minor html change to come with experiment

15 Upvotes

Hello mods!

In the next few days we will be running an experiment that changes the tagline for 1% of logged in & logged out users.

Here’s what the old tagline and domain look like.

Here’s what the new tagline will look like.

Here are the html change you should be aware of:

<p class="tagline frontpage-tagline-css">
    <a href=“someLink” class="subreddit hover may-blank">r/aww</a> 
    <span class="bullet">•</span>
    <time title="Wed Aug 31 21:02:17 2016 UTC" datetime="2016-08-31T21:02:17+00:00" class="live-timestamp">3h</time>
    <span class="bullet">•</span>
    <a href=“someLink” class="author may-blank id-t2_10f3ur">dogbreathphoto</a>
    <span class="userattrs"></span>
    <span class="bullet">•</span>
    <a href=“someLink” class="new-domain">imgur</a>
</p>

Basically we are just adding a span containing a &bull; in between each item, and adding the frontpage-tagline-css class to the parent <p>.

Though the domain link will not be visible by default, the .domain selector will remain on the page, as well as an <a> tag, so as to not disrupt any css attached to either selector.

We do not anticipate that this will break any custom css, but wanted to announce it anyways! This change will be going live at some point today (09/06/2016).

Edit: spelling.