fa_rails 0.1.6 → 0.1.7
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/fa_rails.gemspec +1 -1
- data/lib/fa/layer.rb +2 -1
- data/spec/lib/fa_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ac278955afe8bc5772e25b2806da5a0f1e7b7db
|
4
|
+
data.tar.gz: e0b8550186a7cbdb50fd3dc6f91966eaec1a2e20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab5cb1238034715484cf1aa1167b342e4118e0b4b5551a5efcd60e6829e63c7dd785e388cbc852fb52d5b2863e35fc6cd1fd02c2eb76247fad0cc0adf0b3f38e
|
7
|
+
data.tar.gz: cbb80eb2e7e10643c3ef999738566a56cedb27dba5a018f44393df4b45a0a22f7ad1efdcd8276f57610765be1253d5e994ca059b0b11c0ac158bc3fd9ed82cb8
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -135,14 +135,14 @@ FA::Span.new('counter', 5).safe
|
|
135
135
|
|
136
136
|
# Gray envelope icon with red exclamation mark overlayed, with tooltip 'Invalid email address'
|
137
137
|
FA::Layer.new([{ name: 'envelope', options: { css: :gray } }, { name: 'exclamation', options: { css: :red } }], title: 'Invalid email address').safe
|
138
|
-
#=> "<span class='icon fa-layers fa-fw ' title='Invalid email address'>" \
|
138
|
+
#=> "<span class='icon fa-layers fa-stack fa-fw ' title='Invalid email address'>" \
|
139
139
|
# "<i class='fas gray fa-envelope' data-fa-transform='grow-0' title=''></i>" \
|
140
140
|
# "<i class='fas red fa-exclamation' data-fa-transform='grow-0' title=''></i>" \
|
141
141
|
# "</span>"
|
142
142
|
|
143
143
|
# Blue envelope with red counter on the top left corner, with value 7
|
144
144
|
FA::Layer.new([{ name: 'envelope', options: { css: :blue } }, { name: 'counter', text: 7, options: { css: :red, position: :tl } }]).safe
|
145
|
-
#=> "<span class='icon fa-layers fa-fw ' title=''>" \
|
145
|
+
#=> "<span class='icon fa-layers fa-stack fa-fw ' title=''>" \
|
146
146
|
# "<i class='fas gray fa-envelope' data-fa-transform='grow-0' title=''></i>" \
|
147
147
|
# "<span class='red fa-layers-counter ' data-fa-transform='grow-0'>7" \
|
148
148
|
# "</span>" \
|
data/fa_rails.gemspec
CHANGED
data/lib/fa/layer.rb
CHANGED
@@ -23,7 +23,8 @@ module FA
|
|
23
23
|
|
24
24
|
# Outputs the formatted stack of icons and spans directly.
|
25
25
|
def raw
|
26
|
-
span_top = "<span class='icon fa-layers fa-fw #{@css}'
|
26
|
+
span_top = "<span class='icon fa-layers fa-stack fa-fw #{@css}' " \
|
27
|
+
"title='#{@title}'>"
|
27
28
|
span_bottom = '</span>'
|
28
29
|
|
29
30
|
@icons.each do |i|
|
data/spec/lib/fa_spec.rb
CHANGED
@@ -54,7 +54,7 @@ RSpec.describe FA do
|
|
54
54
|
]
|
55
55
|
|
56
56
|
expect(FA::Layer.new(icons, grow: 2).safe).to eql(
|
57
|
-
"<span class='icon fa-layers fa-fw ' title=''>" \
|
57
|
+
"<span class='icon fa-layers fa-stack fa-fw ' title=''>" \
|
58
58
|
"<i class='fas fa-square' data-fa-transform='grow-2' title=''></i>" \
|
59
59
|
"<i class='fas fa-circle' data-fa-transform='grow-3' title=''></i>" \
|
60
60
|
"<i class='far fa-exclamation' data-fa-transform='grow-2' title=''>" \
|
@@ -69,7 +69,7 @@ RSpec.describe FA do
|
|
69
69
|
]
|
70
70
|
|
71
71
|
expect(FA::Layer.new(icons).safe).to eql(
|
72
|
-
"<span class='icon fa-layers fa-fw ' title=''>" \
|
72
|
+
"<span class='icon fa-layers fa-stack fa-fw ' title=''>" \
|
73
73
|
"<i class='fas fa-square' data-fa-transform='grow-0' title=''></i>" \
|
74
74
|
"<span class='fa-layers-counter fa-layers-top-left' " \
|
75
75
|
"data-fa-transform='grow-0'>17</span></span>"
|