red heart
This commit is contained in:
parent
abd74d9812
commit
2cc92cc60d
3 changed files with 12 additions and 7 deletions
|
@ -119,3 +119,7 @@ footer.footer {
|
|||
.subnav {
|
||||
margin-top: -20px;
|
||||
}
|
||||
|
||||
.heart {
|
||||
color: $red;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
</a>
|
||||
</p>
|
||||
<p>
|
||||
Made with <%= fa :heart %> by Zeus WPI
|
||||
Made with <%= fa :heart, class: 'heart' %> by Zeus WPI
|
||||
</p>
|
||||
<p>
|
||||
<a href="https://github.com/ZeusWPI/zeus.ugent.be">
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
module FontAwesomeHelper
|
||||
def fa(icon, size: nil, li: false, stack: nil, inverse: false)
|
||||
def fa(icon, opts = {})
|
||||
classes = ['fa', "fa-#{icon}"]
|
||||
|
||||
classes << "fa-#{size}" if size
|
||||
classes << 'fa-li' if li
|
||||
classes << "fa-stack-#{stack}" if stack
|
||||
classes << 'fa-inverse' if inverse
|
||||
classes << "fa-#{opts[:size]}" if opts[:size]
|
||||
classes << 'fa-li' if opts[:li]
|
||||
classes << "fa-stack-#{opts[:stack]}" if opts[:stack]
|
||||
classes << 'fa-inverse' if opts[:inverse]
|
||||
classes << opts[:class]
|
||||
|
||||
"<i class='#{classes.join(' ')}'></i>"
|
||||
"<i class='#{classes.reject(&:nil?).join(' ')}'></i>"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue