Skip to content

Commit

Permalink
Clarify imports
Browse files Browse the repository at this point in the history
This commit:

- Adds `styles/` to all imports
- Adds `.less` to all imports
- Moves imports from `styles/*.less` to `index.less`

Reasoning: When importing other Less files in index.less it would be
possible to omit `styles` or `.less`, but to not cause any confusion
it's better to write out the full path.

Ref: atom/atom#13359
  • Loading branch information
simurai committed Dec 7, 2016
1 parent 592c14e commit f1ecccf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions index.less
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@

// Atom Syntax Theme: One

@import (reference) "styles/syntax-variables";
@import "styles/syntax-variables.less";

@import 'editor';
@import "styles/editor.less";

@import 'syntax/_base';
@import 'syntax/c';
@import 'syntax/cpp';
@import 'syntax/cs';
@import 'syntax/css';
@import 'syntax/gfm';
@import 'syntax/go';
@import 'syntax/ini';
@import 'syntax/java';
@import 'syntax/javascript';
@import 'syntax/json';
@import 'syntax/ruby';
@import 'syntax/python';
@import "styles/syntax/_base.less";
@import "styles/syntax/c.less";
@import "styles/syntax/cpp.less";
@import "styles/syntax/cs.less";
@import "styles/syntax/css.less";
@import "styles/syntax/gfm.less";
@import "styles/syntax/go.less";
@import "styles/syntax/ini.less";
@import "styles/syntax/java.less";
@import "styles/syntax/javascript.less";
@import "styles/syntax/json.less";
@import "styles/syntax/ruby.less";
@import "styles/syntax/python.less";
2 changes: 1 addition & 1 deletion styles/syntax-variables.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "colors";
@import "colors.less";

// Official Syntax Variables -----------------------------------

Expand Down

0 comments on commit f1ecccf

Please sign in to comment.