From 0cc5c3667b747d58850c0edf09f1ed9fdf76e692 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 7 Sep 2018 13:37:06 -0700 Subject: [PATCH] GUACAMOLE-598: Ensure fatal error message is hidden by default, shown only when a fatal error has actually occurred. --- .../webapp/app/index/styles/fatal-page-error.css | 15 +++++++++++++++ guacamole/src/main/webapp/index.html | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/guacamole/src/main/webapp/app/index/styles/fatal-page-error.css b/guacamole/src/main/webapp/app/index/styles/fatal-page-error.css index a6e28ba1f..9a50e9c9b 100644 --- a/guacamole/src/main/webapp/app/index/styles/fatal-page-error.css +++ b/guacamole/src/main/webapp/app/index/styles/fatal-page-error.css @@ -59,3 +59,18 @@ margin: 0 0.25em; margin-bottom: -0.2em; } + +/* Ensure fatal error is initially hidden, fading the error message in when + * needed */ + +.fatal-page-error-outer { + visibility: hidden; + opacity: 0; + transition: opacity, visibility; + transition-duration: 0.25s; +} + +.shown.fatal-page-error-outer { + visibility: visible; + opacity: 1; +} diff --git a/guacamole/src/main/webapp/index.html b/guacamole/src/main/webapp/index.html index ff920dbd5..1d51606a9 100644 --- a/guacamole/src/main/webapp/index.html +++ b/guacamole/src/main/webapp/index.html @@ -58,7 +58,7 @@ -
+