red heart

This commit is contained in:
Lorin Werthen 2016-12-12 14:34:43 +01:00
parent abd74d9812
commit 2cc92cc60d
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
3 changed files with 12 additions and 7 deletions

View file

@ -119,3 +119,7 @@ footer.footer {
.subnav { .subnav {
margin-top: -20px; margin-top: -20px;
} }
.heart {
color: $red;
}

View file

@ -29,7 +29,7 @@
</a> </a>
</p> </p>
<p> <p>
Made with <%= fa :heart %> by Zeus WPI Made with <%= fa :heart, class: 'heart' %> by Zeus WPI
</p> </p>
<p> <p>
<a href="https://github.com/ZeusWPI/zeus.ugent.be"> <a href="https://github.com/ZeusWPI/zeus.ugent.be">

View file

@ -1,12 +1,13 @@
module FontAwesomeHelper module FontAwesomeHelper
def fa(icon, size: nil, li: false, stack: nil, inverse: false) def fa(icon, opts = {})
classes = ['fa', "fa-#{icon}"] classes = ['fa', "fa-#{icon}"]
classes << "fa-#{size}" if size classes << "fa-#{opts[:size]}" if opts[:size]
classes << 'fa-li' if li classes << 'fa-li' if opts[:li]
classes << "fa-stack-#{stack}" if stack classes << "fa-stack-#{opts[:stack]}" if opts[:stack]
classes << 'fa-inverse' if inverse classes << 'fa-inverse' if opts[:inverse]
classes << opts[:class]
"<i class='#{classes.join(' ')}'></i>" "<i class='#{classes.reject(&:nil?).join(' ')}'></i>"
end end
end end