From 07ea625cb228b36b8d87de32141024ec98d875da Mon Sep 17 00:00:00 2001 From: Lynx Kotoura Date: Thu, 12 Oct 2017 04:18:46 +0900 Subject: [PATCH] Fix styles of error pages (#5335) Signed-off-by: Lynx Kotoura Signed-off-by: Lynx Kotoura --- app/javascript/styles/basics.scss | 36 +++++++++++++++++++------------ 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/app/javascript/styles/basics.scss b/app/javascript/styles/basics.scss index b829191ad4d..43c32c8bc6a 100644 --- a/app/javascript/styles/basics.scss +++ b/app/javascript/styles/basics.scss @@ -29,8 +29,7 @@ body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", mastodon-font-sans-serif, sans-serif; } - &.app-body, - &.error { + &.app-body { position: fixed; width: 100%; height: 100%; @@ -70,25 +69,34 @@ body { } &.error { + position: absolute; text-align: center; color: $ui-primary-color; - padding: 20px; + background: $ui-base-color; + width: 100%; + height: 100%; + padding: 0; display: flex; justify-content: center; align-items: center; - .dialog img { - display: block; - max-width: 470px; - width: 100%; - height: auto; - margin-top: -120px; - } + .dialog { + vertical-align: middle; + margin: 20px; - .dialog h1 { - font-size: 20px; - line-height: 28px; - font-weight: 400; + img { + display: block; + max-width: 470px; + width: 100%; + height: auto; + margin-top: -120px; + } + + h1 { + font-size: 20px; + line-height: 28px; + font-weight: 400; + } } } }