foundicons-rails 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in foundicons-rails.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Marten Klitzke
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.
@@ -0,0 +1,62 @@
1
+ # Foundation Icons for Rails
2
+
3
+ Basic integration for all 4 icon sets from Zurb Foundation
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'foundicons-rails'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install foundicons-rails
18
+
19
+ ## Usage
20
+
21
+ add the following to your application.css
22
+
23
+ ```
24
+ *= require 'foundicons'
25
+ ```
26
+
27
+ and/or for social icons
28
+
29
+ ```
30
+ *= require 'foundicons_social'
31
+ ```
32
+
33
+ and then in your markup
34
+
35
+ ```
36
+ <i class="foundicon-*"></i>
37
+ ```
38
+
39
+ or for social icons
40
+
41
+ ```
42
+ <i class="foundicon-social-*"></i>
43
+ ```
44
+
45
+ where * stands for the name of the icon.
46
+
47
+ You can also override the prefix "foundicon-" and "foundicon-social" with an initializer:
48
+
49
+ ```
50
+ FoundiconsRails.setup do |config|
51
+ config.prefix = "icon-"
52
+ config.social_refix = "icon-social-"
53
+ end
54
+ ```
55
+
56
+ ## Contributing
57
+
58
+ 1. Fork it
59
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
60
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
61
+ 4. Push to the branch (`git push origin my-new-feature`)
62
+ 5. Create new Pull Request
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,7 @@
1
+ $fontFileName: "/assets/foundicons";
2
+ $fontName: "Foundicons";
3
+ $classPrefix: "<%= FoundiconsRails.prefix %>";
4
+
5
+ @import "foundicons/settings";
6
+
7
+ @import "foundicons/icons-ie7";
@@ -0,0 +1,7 @@
1
+ $fontFileName: "/assets/foundicons";
2
+ $fontName: "Foundicons";
3
+ $classPrefix: "<%= FoundiconsRails.prefix %>";
4
+
5
+ @import "foundicons/settings";
6
+
7
+ @import "foundicons/icons";
@@ -0,0 +1,7 @@
1
+ $fontFileName: "/assets/foundicons_social";
2
+ $fontName: "FoundiconsSocial";
3
+ $classPrefix: "<%= FoundiconsRails.social_prefix %>";
4
+
5
+ @import "foundicons/settings";
6
+
7
+ @import "foundicons/social_icons-ie7";
@@ -0,0 +1,7 @@
1
+ $fontFileName: "/assets/foundicons_social";
2
+ $fontName: "FoundiconsSocial";
3
+ $classPrefix: "<%= FoundiconsRails.social_prefix %>";
4
+
5
+ @import "foundicons/settings";
6
+
7
+ @import "foundicons/social_icons";
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'foundicons-rails/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "foundicons-rails"
8
+ gem.version = FoundiconsRails::VERSION
9
+ gem.authors = ["Marten Klitzke"]
10
+ gem.email = ["m.klitzke@gmail.com"]
11
+ gem.description = %q{Foundation Icons for Rails}
12
+ gem.summary = %q{Basic integration for all 4 icon sets from Zurb Foundation}
13
+ gem.homepage = "https://github.com/mortik/foundicons-rails"
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
19
+ end
@@ -0,0 +1,17 @@
1
+ require "foundicons-rails/version"
2
+
3
+ module FoundiconsRails
4
+ class Engine < ::Rails::Engine
5
+ end
6
+
7
+ mattr_accessor :prefix
8
+ @@prefix = "foundicon-"
9
+
10
+ mattr_accessor :social_prefix
11
+ @@social_prefix = "foundicon-social-"
12
+
13
+ def self.setup
14
+ yield self
15
+ p self.prefix
16
+ end
17
+ end
@@ -0,0 +1,3 @@
1
+ module FoundiconsRails
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" > <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
2
+ <defs >
3
+ <font id="generalfoundicons" horiz-adv-x="955" ><font-face
4
+ font-family="General Foundicons"
5
+ units-per-em="1000"
6
+ panose-1="0 0 0 0 0 0 0 0 0 0"
7
+ ascent="1000"
8
+ descent="0"
9
+ alphabetic="0" />
10
+ <missing-glyph horiz-adv-x="250" />
11
+ <glyph unicode=" " glyph-name="space" horiz-adv-x="250" />
12
+ <glyph unicode="~" glyph-name="asciitilde" horiz-adv-x="1000" />
13
+ </font>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" > <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
2
+ <defs >
3
+ <font id="socialfoundicons" horiz-adv-x="933" ><font-face
4
+ font-family="Social Foundicons"
5
+ units-per-em="1000"
6
+ panose-1="0 0 0 0 0 0 0 0 0 0"
7
+ ascent="1000"
8
+ descent="0"
9
+ alphabetic="0" />
10
+ <missing-glyph horiz-adv-x="250" />
11
+ <glyph unicode=" " glyph-name="space" horiz-adv-x="250" />
12
+ <glyph unicode="~" glyph-name="asciitilde" horiz-adv-x="1000" />
13
+ </font>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,55 @@
1
+ /* general icons for IE7 */
2
+ [class*="#{$classPrefix}"] {
3
+ font-family: $fontName;
4
+ font-weight: normal;
5
+ font-style: normal;
6
+ }
7
+
8
+ /* icons */
9
+ @include ie-class(settings,"000");
10
+ @include ie-class(heart,"001");
11
+ @include ie-class(star,"002");
12
+ @include ie-class(plus,"003");
13
+ @include ie-class(minus,"004");
14
+ @include ie-class(checkmark,"005");
15
+ @include ie-class(remove,"006");
16
+ @include ie-class(mail,"007");
17
+ @include ie-class(calendar,"008");
18
+ @include ie-class(page,"009");
19
+ @include ie-class(tools,"00a");
20
+ @include ie-class(globe,"00b");
21
+ @include ie-class(home,"00c");
22
+ @include ie-class(quote,"00d");
23
+ @include ie-class(people,"00e");
24
+ @include ie-class(monitor,"00f");
25
+ @include ie-class(laptop,"010");
26
+ @include ie-class(phone,"011");
27
+ @include ie-class(cloud,"012");
28
+ @include ie-class(error,"013");
29
+ @include ie-class(right-arrow,"014");
30
+ @include ie-class(left-arrow,"015");
31
+ @include ie-class(up-arrow,"016");
32
+ @include ie-class(down-arrow,"017");
33
+ @include ie-class(trash,"018");
34
+ @include ie-class(add-doc,"019");
35
+ @include ie-class(edit,"01a");
36
+ @include ie-class(lock,"01b");
37
+ @include ie-class(unlock,"01c");
38
+ @include ie-class(refresh,"01d");
39
+ @include ie-class(paper-clip,"01e");
40
+ @include ie-class(video,"01f");
41
+ @include ie-class(photo,"020");
42
+ @include ie-class(graph,"021");
43
+ @include ie-class(idea,"022");
44
+ @include ie-class(mic,"023");
45
+ @include ie-class(cart,"024");
46
+ @include ie-class(address-book,"025");
47
+ @include ie-class(compass,"026");
48
+ @include ie-class(flag,"027");
49
+ @include ie-class(location,"028");
50
+ @include ie-class(clock,"029");
51
+ @include ie-class(folder,"02a");
52
+ @include ie-class(inbox,"02b");
53
+ @include ie-class(website,"02c");
54
+ @include ie-class(smiley,"02d");
55
+ @include ie-class(search,"02e");
@@ -0,0 +1,72 @@
1
+ /* font-face */
2
+ @include face;
3
+
4
+ /* global foundicon styles */
5
+ [class*="#{$classPrefix}"] {
6
+ display: inline;
7
+ width: auto;
8
+ height: auto;
9
+ line-height: inherit;
10
+ vertical-align: baseline;
11
+ background-image: none;
12
+ background-position: 0 0;
13
+ background-repeat: repeat;
14
+ -webkit-font-smoothing: antialiased;
15
+ }
16
+
17
+ [class*="#{$classPrefix}"]:before {
18
+ font-family: $fontName;
19
+ font-weight: normal;
20
+ font-style: normal;
21
+ text-decoration: inherit;
22
+ -webkit-font-smoothing: antialiased;
23
+ }
24
+
25
+ /* icons */
26
+ @include i-class(settings,"000");
27
+ @include i-class(heart,"001");
28
+ @include i-class(star,"002");
29
+ @include i-class(plus,"003");
30
+ @include i-class(minus,"004");
31
+ @include i-class(checkmark,"005");
32
+ @include i-class(remove,"006");
33
+ @include i-class(mail,"007");
34
+ @include i-class(calendar,"008");
35
+ @include i-class(page,"009");
36
+ @include i-class(tools,"00a");
37
+ @include i-class(globe,"00b");
38
+ @include i-class(home,"00c");
39
+ @include i-class(quote,"00d");
40
+ @include i-class(people,"00e");
41
+ @include i-class(monitor,"00f");
42
+ @include i-class(laptop,"010");
43
+ @include i-class(phone,"011");
44
+ @include i-class(cloud,"012");
45
+ @include i-class(error,"013");
46
+ @include i-class(right-arrow,"014");
47
+ @include i-class(left-arrow,"015");
48
+ @include i-class(up-arrow,"016");
49
+ @include i-class(down-arrow,"017");
50
+ @include i-class(trash,"018");
51
+ @include i-class(add-doc,"019");
52
+ @include i-class(edit,"01a");
53
+ @include i-class(lock,"01b");
54
+ @include i-class(unlock,"01c");
55
+ @include i-class(refresh,"01d");
56
+ @include i-class(paper-clip,"01e");
57
+ @include i-class(video,"01f");
58
+ @include i-class(photo,"020");
59
+ @include i-class(graph,"021");
60
+ @include i-class(idea,"022");
61
+ @include i-class(mic,"023");
62
+ @include i-class(cart,"024");
63
+ @include i-class(address-book,"025");
64
+ @include i-class(compass,"026");
65
+ @include i-class(flag,"027");
66
+ @include i-class(location,"028");
67
+ @include i-class(clock,"029");
68
+ @include i-class(folder,"02a");
69
+ @include i-class(inbox,"02b");
70
+ @include i-class(website,"02c");
71
+ @include i-class(smiley,"02d");
72
+ @include i-class(search,"02e");
@@ -0,0 +1,24 @@
1
+ @mixin i-class($name,$pua) {
2
+ .#{$classPrefix}#{$name}:before {
3
+ content: "\f#{$pua}";
4
+ }
5
+ }
6
+
7
+ @mixin ie-class($name,$pua) {
8
+ .#{$classPrefix}#{$name} {
9
+ *zoom: expression( this.runtimeStyle['zoom'] = "1", this.innerHTML = "&#xf#{$pua};");
10
+ }
11
+ }
12
+
13
+ @mixin face {
14
+ @font-face {
15
+ font-family: $fontName;
16
+ src: url('#{$fontFileName}.eot');
17
+ src: url('#{$fontFileName}.eot?#iefix') format('embedded-opentype'),
18
+ url('#{$fontFileName}.woff') format('woff'),
19
+ url('#{$fontFileName}.ttf') format('truetype'),
20
+ url('#{$fontFileName}.svg##{$fontName}') format('svg');
21
+ font-weight: normal;
22
+ font-style: normal;
23
+ }
24
+ }
@@ -0,0 +1,38 @@
1
+ /* general icons for IE7 */
2
+ [class*="#{$classPrefix}"] {
3
+ font-family: $fontName;
4
+ font-weight: normal;
5
+ font-style: normal;
6
+ }
7
+
8
+ /* icons */
9
+ @include ie-class(thumb-up,"000");
10
+ @include ie-class(thumb-down,"001");
11
+ @include ie-class(rss,"002");
12
+ @include ie-class(facebook,"003");
13
+ @include ie-class(twitter,"004");
14
+ @include ie-class(pinterest,"005");
15
+ @include ie-class(github,"006");
16
+ @include ie-class(path,"007");
17
+ @include ie-class(linkedin,"008");
18
+ @include ie-class(dribbble,"009");
19
+ @include ie-class(stumble-upon,"00a");
20
+ @include ie-class(behance,"00b");
21
+ @include ie-class(reddit,"00c");
22
+ @include ie-class(google-plus,"00d");
23
+ @include ie-class(youtube,"00e");
24
+ @include ie-class(vimeo,"00f");
25
+ @include ie-class(flickr,"010");
26
+ @include ie-class(slideshare,"011");
27
+ @include ie-class(picassa,"012");
28
+ @include ie-class(skype,"013");
29
+ @include ie-class(steam,"014");
30
+ @include ie-class(instagram,"015");
31
+ @include ie-class(foursquare,"016");
32
+ @include ie-class(delicious,"017");
33
+ @include ie-class(chat,"018");
34
+ @include ie-class(torso,"019");
35
+ @include ie-class(tumblr,"01a");
36
+ @include ie-class(video-chat,"01b");
37
+ @include ie-class(digg,"01c");
38
+ @include ie-class(wordpress,"01d");
@@ -0,0 +1,55 @@
1
+ /* font-face */
2
+ @include face;
3
+
4
+ /* global foundicon styles */
5
+ [class*="#{$classPrefix}"] {
6
+ display: inline;
7
+ width: auto;
8
+ height: auto;
9
+ line-height: inherit;
10
+ vertical-align: baseline;
11
+ background-image: none;
12
+ background-position: 0 0;
13
+ background-repeat: repeat;
14
+ -webkit-font-smoothing: antialiased;
15
+ }
16
+
17
+ [class*="#{$classPrefix}"]:before {
18
+ font-family: $fontName;
19
+ font-weight: normal;
20
+ font-style: normal;
21
+ text-decoration: inherit;
22
+ -webkit-font-smoothing: antialiased;
23
+ }
24
+
25
+ /* icons */
26
+ @include i-class(thumb-up,"000");
27
+ @include i-class(thumb-down,"001");
28
+ @include i-class(rss,"002");
29
+ @include i-class(facebook,"003");
30
+ @include i-class(twitter,"004");
31
+ @include i-class(pinterest,"005");
32
+ @include i-class(github,"006");
33
+ @include i-class(path,"007");
34
+ @include i-class(linkedin,"008");
35
+ @include i-class(dribbble,"009");
36
+ @include i-class(stumble-upon,"00a");
37
+ @include i-class(behance,"00b");
38
+ @include i-class(reddit,"00c");
39
+ @include i-class(google-plus,"00d");
40
+ @include i-class(youtube,"00e");
41
+ @include i-class(vimeo,"00f");
42
+ @include i-class(flickr,"010");
43
+ @include i-class(slideshare,"011");
44
+ @include i-class(picassa,"012");
45
+ @include i-class(skype,"013");
46
+ @include i-class(steam,"014");
47
+ @include i-class(instagram,"015");
48
+ @include i-class(foursquare,"016");
49
+ @include i-class(delicious,"017");
50
+ @include i-class(chat,"018");
51
+ @include i-class(torso,"019");
52
+ @include i-class(tumblr,"01a");
53
+ @include i-class(video-chat,"01b");
54
+ @include i-class(digg,"01c");
55
+ @include i-class(wordpress,"01d");
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: foundicons-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Marten Klitzke
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-24 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Foundation Icons for Rails
15
+ email:
16
+ - m.klitzke@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE.txt
24
+ - README.md
25
+ - Rakefile
26
+ - app/assets/stylesheets/foundicons-ie7.scss.erb
27
+ - app/assets/stylesheets/foundicons.scss.erb
28
+ - app/assets/stylesheets/foundicons_social-ie7.scss.erb
29
+ - app/assets/stylesheets/foundicons_social.scss.erb
30
+ - foundicons-rails.gemspec
31
+ - lib/foundicons-rails.rb
32
+ - lib/foundicons-rails/version.rb
33
+ - vendor/assets/fonts/foundicons.eot
34
+ - vendor/assets/fonts/foundicons.svg
35
+ - vendor/assets/fonts/foundicons.ttf
36
+ - vendor/assets/fonts/foundicons.woff
37
+ - vendor/assets/fonts/foundicons_social.eot
38
+ - vendor/assets/fonts/foundicons_social.svg
39
+ - vendor/assets/fonts/foundicons_social.ttf
40
+ - vendor/assets/fonts/foundicons_social.woff
41
+ - vendor/assets/stylesheets/foundicons/_icons-ie7.scss
42
+ - vendor/assets/stylesheets/foundicons/_icons.scss
43
+ - vendor/assets/stylesheets/foundicons/_settings.scss
44
+ - vendor/assets/stylesheets/foundicons/_social_icons-ie7.scss
45
+ - vendor/assets/stylesheets/foundicons/_social_icons.scss
46
+ homepage: https://github.com/mortik/foundicons-rails
47
+ licenses: []
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ requirements: []
65
+ rubyforge_project:
66
+ rubygems_version: 1.8.23
67
+ signing_key:
68
+ specification_version: 3
69
+ summary: Basic integration for all 4 icon sets from Zurb Foundation
70
+ test_files: []