faw_icon 0.4.2 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/lib/faw_icon/helper.rb +1 -0
- data/lib/faw_icon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15b9dbf3d06ffd3784bacb087db692f4ecbdf46e6e40f1f66794d17632209f60
|
4
|
+
data.tar.gz: 5c6ff460462e1438c75b03337e091c2d0766da3c929374aabc910053f5f4730c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 656459ecc1e2f9d17690d024612f6361a8c17e7f65acba99c6d1b98109fe8dc287af00af7cbe9237e729f4765c24ef682a770ae896a97c19a9c78491e0346ff6
|
7
|
+
data.tar.gz: 8095adb7f78bd0d16eb22de88c38eb75738e55a442b668d50d7bbc07ffa8b4ef1f11e16966fb02d873da97074bdc4dc961c4e505171b79d57014b31b084f3c08
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -66,6 +66,7 @@ A mapping for the properties has been introduced in an attempt to make them more
|
|
66
66
|
| class | name | yes | fa-user | user | string |
|
67
67
|
| class | fixed_width | no | fa-fw | true | boolean |
|
68
68
|
| class | spin | no | fa-spin | true | boolean |
|
69
|
+
| class | extra_class | no | N/A | any custom css class | string |
|
69
70
|
| data-fa-transform | transform | no | grow-6 | grow-6 | string |
|
70
71
|
| data-fa-mask | mask | no | fas fa-comment | fas fa-comment | string |
|
71
72
|
|
@@ -75,6 +76,7 @@ The `style` and `name` are required params and the rest optional ones go into a
|
|
75
76
|
Then just use them like this
|
76
77
|
|
77
78
|
<%= faw_icon 'solid', 'magic' %>
|
79
|
+
<%= faw_icon 'solid', 'star', {extra_class: 'active'} %>
|
78
80
|
<%= faw_icon 'solid', 'user', {size: '10x'} %>
|
79
81
|
<%= faw_icon 'light', 'info', {fixed_width: true} %>
|
80
82
|
<%= faw_icon 'regular', 'sync', {spin: true} %>
|
data/lib/faw_icon/helper.rb
CHANGED
@@ -21,6 +21,7 @@ module FawIcon
|
|
21
21
|
html_props[:class] << "#{fa_prefix}-#{options[:size]}" if options[:size]
|
22
22
|
html_props[:class] << "#{fa_prefix}-fw" if options[:fixed_width]
|
23
23
|
html_props[:class] << "#{fa_prefix}-spin" if options[:spin]
|
24
|
+
html_props[:class] << options[:extra_class] if options[:extra_class]
|
24
25
|
|
25
26
|
tag = []
|
26
27
|
tag << "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"#{view_box.join(' ')}\" class=\"#{html_props[:class].join(' ')}\""
|
data/lib/faw_icon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faw_icon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alexwebgr
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|