Module: WeLoveIconFontsHelper
- Defined in:
- app/helpers/we_love_icon_fonts_helper.rb
Instance Method Summary collapse
- #iconfont_bitbucket(options = {}) ⇒ Object
- #iconfont_document(options = {}) ⇒ Object
- #iconfont_facebook(options = {}) ⇒ Object
- #iconfont_github(options = {}) ⇒ Object
- #iconfont_linkedin(options = {}) ⇒ Object
- #iconfont_mail(options = {}) ⇒ Object
Instance Method Details
#iconfont_bitbucket(options = {}) ⇒ Object
20 21 22 23 24 |
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 20 def iconfont_bitbucket( = {}) set_default(, :background, '#205081') set_default(, :foreground, '#ffffff') iconfont('zocial-bitbucket', ) end |
#iconfont_document(options = {}) ⇒ Object
32 33 34 35 36 |
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 32 def iconfont_document( = {}) set_default(, :background, '#fb7629') set_default(, :foreground, '#ffffff') iconfont('entypo-doc-text', ) end |
#iconfont_facebook(options = {}) ⇒ Object
2 3 4 5 6 |
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 2 def iconfont_facebook( = {}) set_default(, :background, '#4b70ab') set_default(, :foreground, '#ffffff') iconfont('fontawesome-facebook', ) end |
#iconfont_github(options = {}) ⇒ Object
14 15 16 17 18 |
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 14 def iconfont_github( = {}) set_default(, :background, '#333333') set_default(, :foreground, '#ffffff') iconfont('fontawesome-github', ) end |
#iconfont_linkedin(options = {}) ⇒ Object
8 9 10 11 12 |
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 8 def iconfont_linkedin( = {}) set_default(, :background, '#0087be') set_default(, :foreground, '#ffffff') iconfont('zocial-linkedin', ) end |
#iconfont_mail(options = {}) ⇒ Object
26 27 28 29 30 |
# File 'app/helpers/we_love_icon_fonts_helper.rb', line 26 def iconfont_mail( = {}) set_default(, :background, '#dd4b39') set_default(, :foreground, '#ffffff') iconfont('zocial-email', ) end |