summaryrefslogtreecommitdiff
path: root/web/src/index.css
diff options
context:
space:
mode:
authorSorin Sbarnea <ssbarnea@redhat.com>2020-04-27 14:22:54 +0100
committerSorin Sbarnea <ssbarnea@redhat.com>2020-06-08 09:44:41 +0100
commitfe030227871110f802698946a89502a725a091a5 (patch)
tree9715aed874762f4219728f5dd49bd9f53eb60986 /web/src/index.css
parentb79a83f323dae193ddd0c64e5ab2190b3f46b1d7 (diff)
downloadzuul-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.css29
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";
+}