Skip to content

Meta: split CSS by feature - #1983

Merged
fregante merged 4 commits into
masterfrom
css-features
Apr 25, 2019
Merged

fregante merged 4 commits into
masterfrom
css-features

Conversation

@fregante

@fregante fregante commented Apr 25, 2019 •

Copy link
Copy Markdown
Member

This enables:

  • Keeping a JavaScript feature's CSS right next to the JS file (so you don't have to go find show-names-related styles in content.css)
  • Having one file for each CSS feature (e.g. the scrollable code), rather than a monolithic file with no clear start and end

This will help us maintain CSS features better, to understand what we have and to avoid mixing unrelated CSS.

I'd like to merge this soon to allow contributors to use this style asap (like #1980) and then we can extract more features into their own files.

@fregante fregante added the meta Related to Refined GitHub itself label Apr 25, 2019
@fregante
fregante requested a review from sindresorhus April 25, 2019 16:29

@hkdobrev hkdobrev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big 👍 from me. This is a perfect example for good use of the CSS loader!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

3 participants