Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
remove icon-font-path variable
Browse files Browse the repository at this point in the history
Remove icon-font-path variable for rails compatibility, the font-path is set by bootstrap-rails already
  • Loading branch information
Andre Meij committed Jun 11, 2014
1 parent c92b60f commit c8688b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions converter
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ rewrite_image_paths = lambda do |line, _|
end
end

remove_icon_font_path = lambda do |line, _|
if line =~ /^\s*\$icon-font-path/
""
else
line
end
end

mark_variables_default = lambda do |line, _|
if line =~ /^\s*\$/ && line.include?(':')
line.sub(';', ' !default;')
Expand All @@ -134,6 +142,7 @@ line_processors = [
if File.basename(src_file_path) =~ /variables/
line_processors += [
rewrite_image_paths,
remove_icon_font_path,
mark_variables_default
]
end
Expand Down

0 comments on commit c8688b5

Please sign in to comment.