mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00

less_to_scss: $ echo '.p { #gradient > .horizontal(red,blue) }' | rake less_to_scss[master] .p { @include gradient-horizontal(red,blue) }
16 lines
433 B
Ruby
16 lines
433 B
Ruby
class Converter
|
|
module FontsConversion
|
|
def process_font_assets
|
|
log_status 'Processing fonts...'
|
|
files = read_files('fonts', bootstrap_font_files)
|
|
save_to = @save_to[:fonts]
|
|
files.each do |name, content|
|
|
save_file "#{save_to}/#{name}", content
|
|
end
|
|
end
|
|
|
|
def bootstrap_font_files
|
|
@bootstrap_font_files ||= get_paths_by_type('fonts', /\.(eot|svg|ttf|woff)$/)
|
|
end
|
|
end
|
|
end
|