material-icons-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6057b98866cc58ecdb20f8abe90a9655455c8f71
4
- data.tar.gz: 1051fd77bf0e91488a12517e6f22dd8913313598
3
+ metadata.gz: 064a099b719c7c4ee51a3bb779ec37788059bb67
4
+ data.tar.gz: 1fcd316bd2343470342e6472cb3152058927784f
5
5
  SHA512:
6
- metadata.gz: a8725698917cde4247d720b85be6b170c269fdb103d6f30f5a4d42d6bfad1df009693c5c23569fe3b52915a5588fadc33f00d913e1c155f3dca5f24245ac83c1
7
- data.tar.gz: 1b6f5a0551995977af29d92ca5c62117426d29d55d71c6aa96e1f137ac7a00212d0feec30985e188e46b18fe23ea9f483393749932e451137f29c794fc3c104a
6
+ metadata.gz: f1fe79b508ac81d6d6a28c3ab4130d4d258a32e546ab0bafe2eb1044ec21df2dd2bfe831699440ddac4938b5d5c64d957832b05b2587f9df3c69396c56d96a68
7
+ data.tar.gz: 491a5ef79a05b24f2e6884da2b692d61404252bda21c6bcdfa6f2d99dfd965ff3b4f98c19638569fd97c6006a4facf9d75771890ebae4b1391dd55fe145d0d93
data/README.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # Material::Icons::Rails
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/material/icons/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
3
  ## Installation
8
4
 
9
5
  Add this line to your application's Gemfile:
@@ -22,7 +18,40 @@ Or install it yourself as:
22
18
 
23
19
  ## Usage
24
20
 
25
- TODO: Write usage instructions here
21
+ ### Require
22
+
23
+ Just require `material_icons` using sprockets in any stylesheet.
24
+
25
+ ### Helpers
26
+
27
+ CURRENTLY NOT SUPPORTED
28
+
29
+ ```ruby
30
+ material_icon('icon_name')
31
+ ```
32
+
33
+ Will generate:
34
+
35
+ ```html
36
+ <i class="material-icons">icon_name</i>
37
+ ```
38
+
39
+ ### Icons List
40
+
41
+ Check out the official google design site for the whole list of icons: [Material icons](https://www.google.com/design/icons/)
42
+
43
+ ### Font Version
44
+
45
+ Currently version of material-icons font in this gem is `2.0.0`, which is the latest stable one.
46
+
47
+ Feel free to submit an issue or a PR to update the font.
48
+
49
+ ### Font Formats and Compatibility
50
+
51
+ We use the [officially recommended stylesheet snippet](http://google.github.io/material-design-icons/#icon-font-for-the-web
52
+ ) to include the font, including formats eot, woff2, woff, and truetype.
53
+
54
+ Compatible with even IE 6.
26
55
 
27
56
  ## Development
28
57
 
@@ -32,5 +61,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
61
 
33
62
  ## Contributing
34
63
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/material-icons-rails.
36
-
64
+ Bug reports and pull requests are welcome on GitHub at https://github.com/zzborn1022/material-icons-rails.
@@ -0,0 +1,8 @@
1
+ require "material_icons/rails/version"
2
+
3
+ module MaterialIcons
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module MaterialIcons
2
+ module Rails
3
+ VERSION = "0.1.3"
4
+ end
5
+ end
@@ -0,0 +1,42 @@
1
+ /*
2
+ http://google.github.io/material-design-icons/
3
+ */
4
+
5
+ @font-face {
6
+ font-family: 'Material Icons';
7
+ font-style: normal;
8
+ font-weight: 400;
9
+ src: font-url(MaterialIcons-Regular.eot); /* For IE6-8 */
10
+ src: local('Material Icons'),
11
+ local('MaterialIcons-Regular'),
12
+ font-url(MaterialIcons-Regular.woff2) format('woff2'),
13
+ font-url(MaterialIcons-Regular.woff) format('woff'),
14
+ font-url(MaterialIcons-Regular.ttf) format('truetype');
15
+ }
16
+
17
+ .material-icons {
18
+ font-family: 'Material Icons';
19
+ font-weight: normal;
20
+ font-style: normal;
21
+ font-size: 24px; /* Preferred icon size */
22
+ display: inline-block;
23
+ width: 1em;
24
+ height: 1em;
25
+ line-height: 1;
26
+ text-transform: none;
27
+ letter-spacing: normal;
28
+ word-wrap: normal;
29
+ white-space: nowrap;
30
+ direction: ltr;
31
+
32
+ /* Support for all WebKit browsers. */
33
+ -webkit-font-smoothing: antialiased;
34
+ /* Support for Safari and Chrome. */
35
+ text-rendering: optimizeLegibility;
36
+
37
+ /* Support for Firefox. */
38
+ -moz-osx-font-smoothing: grayscale;
39
+
40
+ /* Support for IE. */
41
+ font-feature-settings: 'liga';
42
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material-icons-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Qiuhao
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-24 00:00:00.000000000 Z
11
+ date: 2015-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -46,11 +46,13 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - README.md
49
- - lib/material/icons/rails.rb
50
- - lib/material/icons/rails/version.rb
51
- - vendor/assets/stylesheets/MaterialIcons-Regular.woff
52
- - vendor/assets/stylesheets/MaterialIcons-Regular.woff2
53
- - vendor/assets/stylesheets/material_icons.sass
49
+ - lib/material_icons/rails.rb
50
+ - lib/material_icons/rails/version.rb
51
+ - vendor/assets/fonts/MaterialIcons-Regular.eot
52
+ - vendor/assets/fonts/MaterialIcons-Regular.ttf
53
+ - vendor/assets/fonts/MaterialIcons-Regular.woff
54
+ - vendor/assets/fonts/MaterialIcons-Regular.woff2
55
+ - vendor/assets/stylesheets/material_icons.scss
54
56
  homepage: https://github.com/zzborn1022/material-icons-rails
55
57
  licenses: []
56
58
  metadata: {}
@@ -1,10 +0,0 @@
1
- require "material/icons/rails/version"
2
-
3
- module Material
4
- module Icons
5
- module Rails
6
- class Engine < ::Rails::Engine
7
- end
8
- end
9
- end
10
- end
@@ -1,7 +0,0 @@
1
- module Material
2
- module Icons
3
- module Rails
4
- VERSION = "0.1.2"
5
- end
6
- end
7
- end
@@ -1,28 +0,0 @@
1
- // the original one from google server
2
- // %link{href: 'https://fonts.googleapis.com/icon?family=Material+Icons', rel: 'stylesheet'}
3
-
4
- // github
5
- // http://google.github.io/material-design-icons/
6
-
7
- // the proxied one by USTC LUG
8
- // %link{href: 'https://fonts.lug.ustc.edu.cn/icon?family=Material+Icons', rel: 'stylesheet'}
9
-
10
- // manually preloaded and added woff format
11
- @font-face
12
- font-family: 'Material Icons'
13
- font-style: normal
14
- font-weight: 400
15
- src: local('Material Icons'), local('MaterialIcons-Regular'), url('MaterialIcons-Regular.woff2') format('woff2'), url('MaterialIcons-Regular.woff') format('woff')
16
-
17
- .material-icons
18
- font-family: 'Material Icons'
19
- font-weight: normal
20
- font-style: normal
21
- font-size: 24px
22
- line-height: 1
23
- letter-spacing: normal
24
- text-transform: none
25
- display: inline-block
26
- word-wrap: normal
27
- -webkit-font-feature-settings: 'liga'
28
- -webkit-font-smoothing: antialiased