Lucas T.
Lucas T.

Reputation: 406

Github's CSS Styleguide

I was reading Github's styleguide(https://github.com/styleguide/css) when I saw this:

  • Use // for comment blocks (instead of /* */).

Every web-designer that I've read about says to NOT DO this, and use /* */ instead. Why does Github recommends the other way?

Upvotes: 1

Views: 164

Answers (1)

laconbass
laconbass

Reputation: 17815

@Felix Kling 1st comment on the question seems a perfect answer.

GitHub seems to use SCSS, not pure CSS. SCSS supports //, CSS doesn't. As you can read at the very top of the page you linked to: "Welcome to the GitHub CSS Styleguide. It's pretty rad. Before reading this, you should have a general understanding for specificity, the SCSS syntax, and KSS documentation.

Upvotes: 1

Related Questions