weloveiconfonts_rails 1.0.3 → 1.1.0
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/app/helpers/we_love_icon_fonts_helper.rb +31 -1
- data/lib/weloveiconfonts_rails.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: 099fa8710fdfd9d9855d7b40ce01d5d57a91cb6d
|
4
|
+
data.tar.gz: 9e05f8bfc3f5600a4828c066bf067a61ab2f9d58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3c5322937d9da9c4d8eac4ff5a2a93d9f2b677bc1d044731b98bfd0ce112c2d413554317acd334aef5b07dbab006864343c7de58149ef5ff9d40efc3885bd06
|
7
|
+
data.tar.gz: 4437c53b5e139a9685eda71149f2e059d36944f7d60145faf45cb6f5f93c556eeb6ec62c4571856c282ec1a5b1fc714d7e9b8004b434eb03ebed2bd7f1e3b17c
|
@@ -1,7 +1,37 @@
|
|
1
1
|
module WeLoveIconFontsHelper
|
2
2
|
def iconfont_facebook(options = {})
|
3
|
-
options[:background] = '#
|
3
|
+
options[:background] = '#4b70ab' if options[:background].to_s.empty?
|
4
4
|
options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
|
5
5
|
iconfont('fontawesome-facebook', options)
|
6
6
|
end
|
7
|
+
|
8
|
+
def iconfont_linkedin(options = {})
|
9
|
+
options[:background] = '#0087be' if options[:background].to_s.empty?
|
10
|
+
options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
|
11
|
+
iconfont('zocial-linkedin', options)
|
12
|
+
end
|
13
|
+
|
14
|
+
def iconfont_github(options = {})
|
15
|
+
options[:background] = '#333333' if options[:background].to_s.empty?
|
16
|
+
options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
|
17
|
+
iconfont('fontawesome-github', options)
|
18
|
+
end
|
19
|
+
|
20
|
+
def iconfont_bitbucket(options = {})
|
21
|
+
options[:background] = '#205081' if options[:background].to_s.empty?
|
22
|
+
options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
|
23
|
+
iconfont('zocial-bitbucket', options)
|
24
|
+
end
|
25
|
+
|
26
|
+
def iconfont_mail(options = {})
|
27
|
+
options[:background] = '#dd4b39' if options[:background].to_s.empty?
|
28
|
+
options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
|
29
|
+
iconfont('zocial-email', options)
|
30
|
+
end
|
31
|
+
|
32
|
+
def iconfont_document(options = {})
|
33
|
+
options[:background] = '#fb7629' if options[:background].to_s.empty?
|
34
|
+
options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
|
35
|
+
iconfont('entypo-doc-text', options)
|
36
|
+
end
|
7
37
|
end
|