From dd4332f07c58155666aa8821986a47811446cf8f Mon Sep 17 00:00:00 2001 From: Trisha Gupta Date: Tue, 17 Jul 2018 21:36:53 +0530 Subject: [PATCH] Bug 1475025 - Vertically center the various error pages r=johannh --HG-- extra : rebase_source : 3f43e92511c39a58e7bcb1e524175490dcf24639 --- browser/base/content/aboutNetError.js | 2 -- browser/themes/shared/aboutNetError-new.css | 1 + toolkit/themes/shared/in-content/info-pages.inc.css | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/aboutNetError.js b/browser/base/content/aboutNetError.js index 7dac762a5022..ebc4267b6c85 100644 --- a/browser/base/content/aboutNetError.js +++ b/browser/base/content/aboutNetError.js @@ -178,7 +178,6 @@ function initPage() { } if (showCaptivePortalUI) { initPageCaptivePortal(); - updateContainerPosition(); return; } if (gIsCertError) { @@ -295,7 +294,6 @@ function initPage() { span.textContent = document.location.hostname; } } - updateContainerPosition(); } function updateContainerPosition() { diff --git a/browser/themes/shared/aboutNetError-new.css b/browser/themes/shared/aboutNetError-new.css index 52f2a6bd7a3e..6d3aeb5922fa 100644 --- a/browser/themes/shared/aboutNetError-new.css +++ b/browser/themes/shared/aboutNetError-new.css @@ -13,6 +13,7 @@ body.certerror { border-color: #ffe900; border-width: 16px; width: 100%; + justify-content: normal; } body.captiveportal .title { diff --git a/toolkit/themes/shared/in-content/info-pages.inc.css b/toolkit/themes/shared/in-content/info-pages.inc.css index 05e69b237a0c..d261777ab108 100644 --- a/toolkit/themes/shared/in-content/info-pages.inc.css +++ b/toolkit/themes/shared/in-content/info-pages.inc.css @@ -17,6 +17,7 @@ body { min-height: 100vh; padding: 40px 48px; align-items: center; + justify-content: center; } body.wide-container {