r/RedesignHelp • • May 08 '18

Showcase I created a subreddit for advanced custom widgets creation and CSS manipulations to help you build interesting stuff.

6 Upvotes

Hi,

I'm the one who stylized r/DemonoidP2P with Reddit Redesign. Many people asked me in modmail and PM how I created that and many stuff. So I decided to create a subreddit where I'll share the stuff I do with CSS for !Reddit Redesign.

Right now it's recommended to browse my new subreddit in legacy mode due with stylesheet enabled due to syntax markup and readability. The redesign is still in progress.

r/CreativeCSS is a place where I'll make all of the stuff and help people.

r/RedesignHelp • • May 12 '18

Tutorial Guide: Make your Redesign subreddit looks like Legacy (Cosmetic & Widgets)

12 Upvotes

Description


Hi. I'm currently writing a walkthrough guide on how to achieve a similar look of your Legacy subreddit for your Redesign. The guide is still work in progress.

Opinions and comments are recommended.

Preview


This is the look I achieved on Legacy & Redesign.

  1. Preview of Legacy subreddit look.
  2. Preview of Redesign subreddit look. (excuse my paint crop skills)

Guide link:


r/RedesignHelp • • Mar 14 '18

Question Does anyone have any examples of subs that use the new CSS widget?

2 Upvotes

I'd just like to see how people are using it.

r/RedesignHelp • • May 01 '18

CSS Another CSS Widget Example that may be helpful: Message the Mods button

8 Upvotes

Right now, the message the mods button is a small mail icon on the mod box. This is a quick fix if you would like a more obvious one.

This has been customized for /r/MildlyInteresting, so the blockquote dimensions may be off if you change the text (haven't tried), but the button will work perfectly fine by itself if you don't want the additional text. Example.

Markdown

> Include All Relevant Links When Messaging the Moderators!
>
>[Message the Moderators](https://www.reddit.com/message/compose?to=%2Fr%2Fmildlyinteresting)

CSS

a {
    background-color: #edf4f8;
    padding-right: 30px;
    padding-left: 31px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #498cb6;
    text-decoration: none;
    position: relative;
    top: 10; 
    border-radius: 5px;
    border: 1px solid #498cb6;
    font-family: sans-serif;
    white-space: nowrap;
    transition: .5s ease;
}

a:hover {
    background-color: #6ca3c4;
    white-space: nowrap;
    color: white;
    transition: .5s ease;
}

blockquote {
    width: 270px;
    margin-left: 0px;
    background-color: #c8dde9;
    border: 1px solid #498cb6;
    padding-left: 0px;
    padding-right: 3px;
    padding-top: 0.5px;
    padding-bottom: 0.5px;
    color: #498cb6;
    font-family: sans-serif;
    text-align: center;
    border-radius: 5px;
}

r/RedesignHelp • • May 09 '20

CSS I made a simple CSS widget for social media

23 Upvotes

Hey, I get a lot of messages asking how I made a widget for one of my subreddits. I figured I'd make a simple version for people to use on their sub.

This is not a tutorial on how to make a CSS widget. You need to know what a CSS widget is, and the basics of setting one up. The CSS widget option is found when you click "Advanced" during widget creation.

/u/SolariaHues created a detailed guide on how to use this widget. Check it out by clicking HERE


Example preview: https://imgur.com/bEWulEF

CSS: https://gitlab.com/josh981/reddit-css-widget/-/blob/master/style.css

Spritesheet: https://gitlab.com/josh981/reddit-css-widget/-/blob/master/reddit-social-icons.png

Example Markdown: https://gitlab.com/josh981/reddit-css-widget/-/blob/master/markdown.txt

Notes:

  • The name of the image must be "reddit-social-icons"
  • You can configure the widget header background color and text color in the CSS.
  • If the images are not showing up after saving the widget, delete:

      /*DELETE THIS COMMENT AFTER SAVING ONCE, THEN SAVE AGAIN IF YOU CAN'T SEE THE IMAGES (FIXES COMMON REDDIT BUG)*/
  • The widget height is dependent on how many social media buttons you have. The height in the example is 205px.
  • This works with https links, not http links.

Feel free to reach out to me for suggestions/feedback/support. My time is limited, but I will reply when I am available.

r/RedesignHelp • • Mar 22 '18

Help! Help with CSS widgets

2 Upvotes

Would someone be able to show me an example of a custom CSS widget and it's code? I don't understand how to use both the markdown and CSS to make the widget work and I feel like looking at an actual example will be very helpful.

r/RedesignHelp • • Apr 25 '18

Tips Examples of CSS widgets on the sidebar of r/infj

14 Upvotes

Hey everybody!

If you're like me, you're not a seasoned CSS-er and have to google a lot of stuff. Getting my stuff to work with the redesign was a bit of trouble, but after a few hours I've got things pretty.

Since I flailed a little at the start, I thought I'd pay it forward and provide some examples of my widgets (which you can see on https://new.reddit.com/r/infj) with the markdown and the CSS.

------------------------------------------------------------------------------------------------------------------------------------------------------

Grouped (Fancy) Buttons

see "Wiki Shortcuts" widget

Markdown:

Wiki Shortcuts

[](https://www.reddit.com/r/infj/wiki/faqs)

[](https://www.reddit.com/r/infj/wiki/faqs#wiki_compatibility_per_type)

[](https://www.reddit.com/r/infj/wiki/index#wiki_mbti_typology)

[](https://www.reddit.com/r/infj/wiki/index#wiki_posting_guide)

[](https://www.reddit.com/r/infj/wiki/index#wiki_support_and_counseling)

CSS:

body [href$='https://www.reddit.com/r/infj/wiki/faqs'] {
  background: url(%%wiki-1%%);
  display: inline-block;
  text-align: center;
  min-width: 275px;
  min-height: 39px;
}

body [href$='https://www.reddit.com/r/infj/wiki/faqs#wiki_compatibility_per_type'] {
  background: url(%%wiki-2%%);
  display: inline-block;
  text-align: center;
  min-width: 275px;
  min-height: 39px;
}

/*...you get the idea*/

h1 {
  color: rgb(164, 167, 168);
  border-bottom: 2px solid rgba(55, 60, 63, 0.08);
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 12px;
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 4px;
  font-family: IBMPlexSans, sans-serif;
}

The h1{} code mimics the default widget title style so it'll match the rest of your sidebar (if you like). The images are 275px wide exactly, any more than that and they get cut off (you've got a few pixels wiggle room I think). The height of the widget is set to 340 pixels.

------------------------------------------------------------------------------------------------------------------------------------------------------

(Fancy) Table

see the last widget on the bottom, pastel colored table of links

Markdown:

| | | | |

:--:|:--:|:--:|:--:

[ESTJ](http://www.reddit.com/r/ESTJ) | [ESTP](http://www.reddit.com/r/ESTP) | [ISTJ](http://www.reddit.com/r/ISTJ) | [ISTP](http://www.reddit.com/r/ISTP)

[ESFJ](http://www.reddit.com/r/ESFJ) | [ESFP](http://www.reddit.com/r/ESFP) | [ISFJ](http://www.reddit.com/r/ISFJ) | [ISFP](http://www.reddit.com/r/ISFP)

[ENFP](http://www.reddit.com/r/ENFP) | [ENFJ](http://www.reddit.com/r/ENFJ) | [INFP](http://www.reddit.com/r/INFP) | [INFJ](http://www.reddit.com/r/INFJ)

[ENTP](http://www.reddit.com/r/ENTP) | [ENTJ](http://www.reddit.com/r/ENTJ) | [INTP](http://www.reddit.com/r/INTP) | [INTJ](http://www.reddit.com/r/INTJ)

CSS:

body {
  letter-spacing: 0.5px;
  line-height: 12px;
  text-transform: uppercase;
  font-family: IBMPlexSans, sans-serif;
}

body [href$='/r/ESTJ'] {
  display: block;
  background: #fbdef2;
  color: #555555;
  font-weight: bold;
  font-size: 10px;
  text-align: center;
  margin: 0px 0px;
  padding: 16px 0px;
  min-width: 65px;
  min-height: 30px
}

body [href$='/r/ESFJ'] {
  display: block;
  background: #f9e8e2;
  color: #555555;
  font-weight: bold;
  font-size: 10px;
  text-align: center;
  margin: 0px 0px;
  padding: 16px 0px;
  min-width: 65px;
  min-height: 30px
}

...you get the idea.

I saw a few examples of using CSS but couldn't find any examples of the actual text on my own (and there's no stylesheet to steal from now on the new reddit), so I hope this helps someone out.


ETA: If you're using an image as a background for a CSS widget, the full width of the widget boxes is 300px (height limited to 500px).