diff options
author | Sorin Sbarnea <ssbarnea@redhat.com> | 2020-04-27 14:22:54 +0100 |
---|---|---|
committer | Sorin Sbarnea <ssbarnea@redhat.com> | 2020-06-08 09:44:41 +0100 |
commit | fe030227871110f802698946a89502a725a091a5 (patch) | |
tree | 9715aed874762f4219728f5dd49bd9f53eb60986 /web/src/index.css | |
parent | b79a83f323dae193ddd0c64e5ab2190b3f46b1d7 (diff) | |
download | zuul-fe030227871110f802698946a89502a725a091a5.tar.gz |
Make task errors expandable
Add a 'more/less' button for displaying the unabridged stdout/stderr
in case is longer than the default max_lines.
Move styling from inline to the stylesheet and reuses existing
logging styles.
Change-Id: Ic7f25d3bd1495da143147e1e7d2e1473367d775d
Diffstat (limited to 'web/src/index.css')
-rw-r--r-- | web/src/index.css | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/web/src/index.css b/web/src/index.css index 476a55905..2d8849b8b 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -272,3 +272,32 @@ pre.zuul-log-output .highlight { background: rgb(255, 255, 204); } + +details.foldable pre { + white-space: pre-wrap; +} + +details.stderr pre { + color: #9b0000; +} + +/* Used to make the "more/less" fold, look like a normal hyperlink */ +details.foldable summary +{ + color: #0088ce; + text-decoration: none; + cursor: pointer; +} + +details.foldable summary:hover +{ + text-decoration: underline; +} + +details.foldable summary::before { + content: "more"; +} + +details.foldable[open] summary::before { + content: "less"; +} |