Skip to content

Commit

Permalink
Merge pull request #124 from roman01la/master
Browse files Browse the repository at this point in the history
JSX icons
  • Loading branch information
DanBrooker committed Mar 7, 2015
2 parents 3c5e9c2 + 770889c commit d24ec17
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
Empty file added examples/jsx.jsx
Empty file.
Binary file added resources/fonts/file-icons.woff
Binary file not shown.
5 changes: 4 additions & 1 deletion stylesheets/file-icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,13 @@

// JavaScript icon
&[data-name$=".js"]:before { .js-icon; .medium-yellow; }
&[data-name$=".jsx"]:before { .js-icon; .medium-green; }
&[data-name$=".ts"]:before { .js-icon; .medium-purple; }
&[data-name$=".es6"]:before { .js-icon; .medium-yellow; }

// JSX icon
&[data-name$=".jsx"]:before { .react-icon; .medium-blue; }
/* &[data-name$=".jsx"]:before { .jsx-icon; .medium-blue; } */

// Coffee icon
&[data-name$=".coffee"]:before { .coffee-icon; .medium-maroon; }
&[data-name$=".cjsx"]:before { .coffee-icon; .dark-maroon; }
Expand Down
7 changes: 7 additions & 0 deletions stylesheets/fonts.less
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,10 @@
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: "file-icons";
src: url(atom://file-icons/resources/fonts/file-icons.woff) format("woff");
font-weight: normal;
font-style: normal;
}
7 changes: 7 additions & 0 deletions stylesheets/icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,10 @@
.haml-icon { .icons-xd; content: "\f15b"; font-size: 15px; }
.node-icon { .icons-xd; content: "\f17b"; }
.nginx-icon { .icons-xd; content: "\f146b"; font-size: 15px; }

// File Icons, custom

.file-icons { font-family: "file-icons"; font-size: large; text-align: center; top: 3px; }

.jsx-icon { .file-icons; content: "\f101" }
.react-icon { .file-icons; content: "\f100" }

0 comments on commit d24ec17

Please sign in to comment.