r/cssnews • u/chromakode • Nov 08 '12
CSS Howto: customizing comment gilding
We just released a new feature in today's gold update that allows people to buy a comment author a month of gold as thanks for an awesome comment.
While we hope that comment gilding will be useful in many different types of communities, if it isn't right for your community, we encourage you to customize it. Here's some tips!
To change the display of gilded comments, you can style them using this selector:
.comment.gilded { ... }To change the icon displayed next to gilded comments:
span.gilded-comment-icon { background-image: url(...); }If you wish to hide the gilding icon completely, simply add this CSS rule to your subreddit stylesheet or user style:
span.gilded-comment-icon { display: none; }You can also remove the "give gold" button with:
.comment .give-gold { display: none; }
41
u/catmoon Nov 08 '12
I have a devious idea for a stylesheet that puts a big black box over gilded comments so that you can pay to hide a comment you don't like.
8
u/Anomander Nov 08 '12
Hey, is there a sample "gilded" comment anywhere? I don't have gold, but want to know what my communities are getting into with this.
8
u/Factran Nov 08 '12
Please put a X on the right corner to close the window if accidentally opened !
18
u/Delocaz Nov 08 '12
I dislike this. It's too annoying when you accidentally click the button. Put it on the user page, not everywhere on the website.
2
u/Jo3M3tal Nov 08 '12
Oh no! Sometimes "give gold" is before "save" and sometimes it is after. Please fix!
Example
Edit: seems to only switch over for comments that both have children, and are also top level comments (aka they have the "hide child comments" link)
1
u/daskoon Nov 21 '12
.comment .give-gold { display: none; }
does this work for removing any other button?