mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 03:26:02 +08:00
Better formatting for CSS errors
This commit is contained in:
parent
3b7657e4b3
commit
c8220e11f9
@ -11,8 +11,9 @@ module Stylesheet
|
|||||||
error.gsub!("\n", '\A ')
|
error.gsub!("\n", '\A ')
|
||||||
error.gsub!("'", '\27 ')
|
error.gsub!("'", '\27 ')
|
||||||
|
|
||||||
"footer { white-space: pre; }
|
"#main { display: none; }
|
||||||
footer:after { content: '#{error}' }"
|
body { white-space: pre; }
|
||||||
|
body:before { font-family: monospace; content: '#{error}' }"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.compile_asset(asset, options = {})
|
def self.compile_asset(asset, options = {})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user