Better formatting for CSS errors

This commit is contained in:
Robin Ward 2017-08-16 11:47:50 -04:00
parent 3b7657e4b3
commit c8220e11f9
1 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,9 @@ module Stylesheet
error.gsub!("\n", '\A ')
error.gsub!("'", '\27 ')
"footer { white-space: pre; }
footer:after { content: '#{error}' }"
"#main { display: none; }
body { white-space: pre; }
body:before { font-family: monospace; content: '#{error}' }"
end
def self.compile_asset(asset, options = {})