From b8a73054c75c88b90d41f8a3a203812c621e9c07 Mon Sep 17 00:00:00 2001 From: s-ol Date: Fri, 29 Mar 2019 10:05:49 +0100 Subject: keep last content and display nice errors when problems occur --- scss/_browser.scss | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'scss') diff --git a/scss/_browser.scss b/scss/_browser.scss index 6a0d78b..4d4a260 100644 --- a/scss/_browser.scss +++ b/scss/_browser.scss @@ -67,6 +67,30 @@ } } + .error-wrap { + flex: 0 0 auto; + padding: 1em 2em; + overflow: hidden; + + background: $gray-fail; + + &.empty { + display: none; + } + + > span { + display: inline-block; + margin-bottom: 0.5em; + + font-weight: bold; + color: #f00; + } + + > pre { + margin: 0; + } + } + .content { flex: 1 1 auto; overflow: auto; -- cgit v1.2.3