Sha256: f746d74472f34893d5b0157d5b59b5fbd67da02f3cfd9672be443ed320977a4b
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
require_relative '../utils' module Reustyle module Helpers module Icons def self.icon(name, size, color, role ='presentation', pseudo = false, classes = []) " <svg class='us-icon--#{name} us-icon--#{color} us-icon--#{size} #{pseudo ? "us-icon--#{pseudo}" : ""} #{classes.join(' ') unless classes.nil?}' role='#{role}' xmlns='http://www.w3.org/2000/svg'> <use xlink:href='/icons.svg#icon-#{name}'></use> </svg> " end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reustyle-2.0.11 | lib/reustyle/helpers/icon_helper.rb |
reustyle-2.0.10 | lib/ustyle/helpers/icon_helper.rb |