Method: IsoDoc::Convert#convert_scss
- Defined in:
- lib/isodoc/css.rb
#convert_scss(filename, stylesheet, stripwordcss) ⇒ Object
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/isodoc/css.rb', line 77 def convert_scss(filename, stylesheet, stripwordcss) load_scss_paths(filename) Dir.mktmpdir do |dir| variables_file_path = File.join(dir, "variables.scss") File.write(variables_file_path, scss_fontheader(stripwordcss)) SassC.load_paths << dir modified_stylesheet = %( @use "variables" as *;\n#{stylesheet}) compile_scss(modified_stylesheet) end end |