Cascading Style Sheets are a special type of document that are used to define the look of HTML pages.
They can include images, change fonts, sizes, spacing, etc.
Basically it's to make websites look pretty.
But they can also be used to add minor functionality like simple animations, hiding or highlighting specific elements (such as threads with specific tags which is how spoilers used to be hidden or how announcements are made to stand out more from regular threads).
Some people managed to replace text with images (that way "stickers" or emojis can be used on reddit) or even make them display meme images with custom text (aka you write text and that text is being replaced with a specific image displaying the same text on it. As an example in /r/megalounge you can have the text "[*Power to Automod*](/robobutler)" displayed like this).
TLDR: It makes websites look and behave slightly or not so slightly differently.
So what, then there will be a mobile and desktop version. To be clear CSS is not responsible for font color and the background image of a subreddit right?
Wow. Reddit should have fixed the hiding ads part like forever ago, simply moving the <link> to the subreddit css above a <link> to a css sheet that forces the ads to be displayed should work in preventing hiding ads, due to the "Cascading" part in CSS. i hope i did the reply right i'm pretty much a stranger here
Nothing indicates that you would be able to use themes, the only thing mentioned is widgets, which doesn't change what the page looks like, it only re-adds some functionality.
That was completely independent from their statement about giving subs tools for customization to keep a visual identity.
Custom community styles are a key component in allowing communities to express their identity, and we want to preserve this in the site redesign. For a long time, we’ve used CSS as the mechanism for subreddit customization, but we’ll be deprecating CSS during the redesign in favor of a new system over the coming months.
We’re designing a new set of tools to address the challenges with CSS but continue to allow communities to express their identities. These tools will allow moderators to select customization options for key areas of their subreddit across platforms.
Which is ridiculous, considering that pretty much every mobile browser that matters fully supports CSS. This is more their fault than anything; CSS isn't responsible for 'breaking the website' when they want to update things or 'not looking right' on mobile. It's their own fault that the scripts that generate the pages don't take responsive design into consideration whatsoever. If they would use responsive design guidelines, CSS and especially viewport targets could greatly ease mobile use and of course, since CSS cascades, downstream CSS at the subreddit shouldn't destroy their updates as long as they format and tag their HTML properly.
No, I'm not misunderstanding a thing. I use multiple css sources in many projects; typically when one particular page needs certain settings, similar to the way subreddit overrides work. That's the thing though, CSS cascades, the subreddit css will only override properties from the parent where a property in the child is the same selector or the selector doesn't exist in the parent. That being said, much of what most subreddits seem to modify in their specific CSS shouldn't have any effect on a responsive site, even some of the gaudier subreddits could simply use @-rules and pseudo-classes to tone it down as the screen size gets more limited. CSS is perfectly flexible, there's no need to give it up for some one-off skinning solution.
EDIT: None of this still addresses their claim that the subreddits' collective CSS is somehow responsible for them being slow to update and integrate new features, that is a completely bullshit scapegoating claim if I've ever heard one.
However usually only the websites owner have access to CSS which leaves them free to modify the website anytime.
Having thousands of custom styles means any change to the website or "core" css will break them and require them to be fixed.
This slows down development of reddits website and doesn't allow to easily also display a similar or the same style on any mobile version of reddit.
Edit: Just to clarify. It slows down the development because they either have to say "Fuck your styles" or do extensive testing and coordinate any update with... well thousands of subreddits and moderators.
Which has not even once worked completely (leaving a lot of subreddits with a slightly broken style for extended periods of time) and costs a lot of admin time / attention.
Also CSS will absolutely still exist. "Only" the option for moderators to modify the style for all desktop users who did not opt out will be gone.
HTML is the steel frame and the undercarriage, JavaScript is the motor, and CSS is the body and the interior. HTML sets the foundation, JS and a few other languages make it do things, and CSS makes it pretty and comfortable.
Lol its so funny how I didnt get any answers to my question for like a week and now it started this huge debate down here ^ but thanks for all the info people
38
u/Erasio May 09 '17 edited May 09 '17
Cascading Style Sheets are a special type of document that are used to define the look of HTML pages.
They can include images, change fonts, sizes, spacing, etc.
Basically it's to make websites look pretty.
But they can also be used to add minor functionality like simple animations, hiding or highlighting specific elements (such as threads with specific tags which is how spoilers used to be hidden or how announcements are made to stand out more from regular threads).
Some people managed to replace text with images (that way "stickers" or emojis can be used on reddit) or even make them display meme images with custom text (aka you write text and that text is being replaced with a specific image displaying the same text on it. As an example in /r/megalounge you can have the text "[*Power to Automod*](/robobutler)" displayed like this).
TLDR: It makes websites look and behave slightly or not so slightly differently.
15
u/rpgfan87 May 09 '17
If you think of a website like a car;
HTML is the steel frame and the undercarriage, JavaScript is the motor, and CSS is the body and the interior. HTML sets the foundation, JS and a few other languages make it do things, and CSS makes it pretty and comfortable.
1
u/ImYaDawg May 11 '17
Lol its so funny how I didnt get any answers to my question for like a week and now it started this huge debate down here ^ but thanks for all the info people
2
u/tweeblethescientist May 09 '17
Myspace page editor
0
u/[deleted] May 09 '17
[deleted] — view deleted comment