From c8220e11f9cb247874358afa3c194c8e24107ee6 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 16 Aug 2017 11:47:50 -0400 Subject: [PATCH] Better formatting for CSS errors --- lib/stylesheet/compiler.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/stylesheet/compiler.rb b/lib/stylesheet/compiler.rb index e886c6bdcef..5aff8dfdba4 100644 --- a/lib/stylesheet/compiler.rb +++ b/lib/stylesheet/compiler.rb @@ -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 = {})