Skip to content

Commit 60759c6

Browse files
committed
font-awesome push
1 parent 165af27 commit 60759c6

33 files changed

+2331
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "font-awesome-sass",
3+
"homepage": "https://github.com/FortAwesome/font-awesome-sass",
4+
"version": "4.3.1",
5+
"_release": "4.3.1",
6+
"_resolution": {
7+
"type": "version",
8+
"tag": "4.3.1",
9+
"commit": "7facc47aa96f3230174083cefe5933d337ff97f2"
10+
},
11+
"_source": "git://github.com/FortAwesome/font-awesome-sass.git",
12+
"_target": "4.3.1",
13+
"_originalSource": "font-awesome-sass"
14+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
*.gem
2+
*.rbc
3+
.idea
4+
.bundle
5+
.config
6+
.yardoc
7+
.DS_Store
8+
Gemfile.lock
9+
InstalledFiles
10+
_yardoc
11+
coverage
12+
doc/
13+
lib/bundler/man
14+
pkg
15+
rdoc
16+
spec/reports
17+
test/tmp
18+
test/version_tmp
19+
tmp
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
# Specify your gem's dependencies in font-awesome-sass.gemspec
4+
gemspec
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2013 Travis Chase
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# FontAwesome::Sass
2+
3+
'font-awesome-sass' is a Sass-powered version of FontAwesome for your Ruby projects and plays nicely with
4+
Ruby on Rails, Compass, Sprockets, etc.
5+
6+
Refactored to support more Ruby environments with code and documentation humbly used from the excellent
7+
[bootstrap-sass](https://github.com/twbs/bootstrap-sass) project by the Bootstrap team
8+
9+
## Installation
10+
11+
Please see the appropriate guide for your environment of choice:
12+
13+
* [Ruby on Rails](#a-ruby-on-rails).
14+
* [Compass](#b-compass-without-rails) not on Rails.
15+
16+
### a. Ruby on Rails
17+
18+
In your Gemfile include:
19+
20+
```ruby
21+
gem 'font-awesome-sass', '~> 4.3.0'
22+
```
23+
24+
And then execute:
25+
26+
```sh
27+
bundle install
28+
```
29+
30+
Import the FontAwesome styles in your `app/assets/stylesheets/application.css.scss`. The `font-awesome-sprockets` file
31+
includes the sprockets assets helper Sass functions used for finding the proper path to the font file.
32+
33+
```scss
34+
@import "font-awesome-sprockets";
35+
@import "font-awesome";
36+
```
37+
38+
#### Rails Helper usage
39+
40+
In your view:
41+
42+
```ruby
43+
icon('flag')
44+
# => <i class="fa fa-flag"></i>
45+
```
46+
47+
```ruby
48+
icon('flag', '', class: 'strong')
49+
# => <i class="fa fa-flag strong"></i>
50+
```
51+
52+
```ruby
53+
icon('flag', 'Font Awesome', id: 'my-icon', class: 'strong')
54+
# => <i id="my-icon" class="fa fa-flag strong"></i> Font Awesome
55+
```
56+
57+
Note: the icon helper can take a hash of options that will be passed to the content_tag helper
58+
59+
### b. Compass without Rails
60+
61+
Install the gem
62+
63+
```sh
64+
gem install font-awesome-sass
65+
```
66+
67+
If you have an existing Compass project:
68+
69+
```ruby
70+
# config.rb:
71+
require 'font-awesome-sass'
72+
```
73+
74+
Import the FontAwesome styles
75+
76+
```scss
77+
@import "font-awesome-compass";
78+
@import "font-awesome";
79+
```
80+
81+
## Upgrading from FontAwesome::Sass 3.x
82+
83+
Prepend the `fa` class to existing icons:
84+
85+
3.x Syntax
86+
87+
```html
88+
<i class="icon-github"></i>
89+
```
90+
91+
4.x Syntax
92+
93+
```html
94+
<i class="fa fa-github"></i>
95+
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require "bundler/gem_tasks"

bower_components/font-awesome-sass/assets/fonts/font-awesome/fontawesome-webfont.svg

Lines changed: 565 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)