class Sass::CompileError
def to_css
-
(String)
-
def to_css content = full_message(highlight: false, order: :top) <<~CSS.freeze /* #{content.gsub('*/', "*\u2060/").gsub("\r\n", "\n").split("\n").join("\n * ")} */ body::before { position: static; display: block; padding: 1em; margin: 0 0 1em; border-width: 0 0 2px; border-bottom-style: solid; font-family: monospace, monospace; white-space: pre; content: #{Serializer.serialize_quoted_string(content).gsub(/[^[:ascii:]][\h\t ]?/) do |match| ordinal = match.ord replacement = "\\#{ordinal.to_s(16)}" if match.length > 1 replacement << ' ' if ordinal < 0x100000 replacement << match[1] end replacement end}; } CSS end