Skip to content

Commit

Permalink
Separate Bourbon.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswsinc committed Aug 15, 2015
1 parent 3cb7691 commit b9ed1f3
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ _Contains over 750 icons. Total file size: 212kb (compare to stand-alone FontAwe

## Including Classes via SCSS

_**Note:** Bourbon is a required dependency. See: <http://bourbon.io/> for details._

```scss
@import '/path/to/bourbon';
@import '/path/to/sharkicons/src/sharkicons';
@include sharkicons-font('/path/to/sharkicons/src');
@include sharkicon-short-classes;
Expand All @@ -58,6 +61,7 @@ _Contains over 750 icons. Total file size: 212kb (compare to stand-alone FontAwe
## Custom Classes via SCSS (`prefix` instead of `si`)

```scss
@import '/path/to/bourbon';
@import '/path/to/sharkicons/src/sharkicons';
@include sharkicons-font('/path/to/sharkicons/src');
@include sharkicon-custom-classes(prefix);
Expand All @@ -68,6 +72,7 @@ _Contains over 750 icons. Total file size: 212kb (compare to stand-alone FontAwe
## Scoping Classes via SCSS

```scss
@import '/path/to/bourbon';
@import '/path/to/sharkicons/src/sharkicons';
@include sharkicons-font('/path/to/sharkicons/src');

Expand All @@ -83,6 +88,7 @@ _Contains over 750 icons. Total file size: 212kb (compare to stand-alone FontAwe
_Note: you can do this without including the `sharkicon-[long|short]-classes` if you like._

```scss
@import '/path/to/bourbon';
@import '/path/to/sharkicons/src/sharkicons';
@include sharkicons-font('/path/to/sharkicons/src');
// @include sharkicon-short-classes;
Expand Down Expand Up @@ -111,6 +117,7 @@ Equivalent to:
Alternatively, you can pass a second argument to `sharkicon()` to set the before/after specification. The default value is `before`. You might want to change it to `after` in some special case.

```scss
@import '/path/to/bourbon';
@import '/path/to/sharkicons/src/sharkicons';
@include sharkicons-font('/path/to/sharkicons/src');
// @include sharkicon-short-classes;
Expand Down
5 changes: 2 additions & 3 deletions src/_sharkicons.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import 'map';
@import 'vendor/package/bourbon/bourbon-v4.2.3/bourbon';

// Font family.
@mixin sharkicons-font($dir: '') {
Expand All @@ -10,8 +9,8 @@
@at-root {
@font-face {
font-family: sharkicons;
src: url($dir + 'fonts/sharkicons.eot?f0bmis');
src: url($dir + 'fonts/sharkicons.eot?#iefixf0bmis') format('embedded-opentype'), url($dir + 'fonts/sharkicons.ttf?f0bmis') format('truetype'), url($dir + 'fonts/sharkicons.woff?f0bmis') format('woff'), url($dir + 'fonts/sharkicons.svg?f0bmis#sharkicons') format('svg');
src: url($dir + 'fonts/sharkicons.eot');
src: url($dir + 'fonts/sharkicons.eot?#iefix') format('embedded-opentype'), url($dir + 'fonts/sharkicons.ttf') format('truetype'), url($dir + 'fonts/sharkicons.woff') format('woff'), url($dir + 'fonts/sharkicons.svg#sharkicons') format('svg');
font-weight: normal;
font-style: normal;
}
Expand Down
2 changes: 1 addition & 1 deletion src/long-classes.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/long-classes.min.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/long-classes.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import 'vendor/package/bourbon/bourbon-v4.2.3/bourbon';
@import 'sharkicons';
@include sharkicons-font;
@include sharkicon-long-classes;
2 changes: 1 addition & 1 deletion src/short-classes.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/short-classes.min.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/short-classes.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import 'vendor/package/bourbon/bourbon-v4.2.3/bourbon';
@import 'sharkicons';
@include sharkicons-font;
@include sharkicon-short-classes;

0 comments on commit b9ed1f3

Please sign in to comment.