From af9f76aae530b540d4d35afe12288a4cfcc78c17 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Thu, 28 Sep 2017 10:05:18 -0700 Subject: [PATCH] Style error pages --- ui/app/styles/components.scss | 1 + ui/app/styles/components/error-container.scss | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 ui/app/styles/components/error-container.scss diff --git a/ui/app/styles/components.scss b/ui/app/styles/components.scss index 50f6ef1c8..2a5e6cb78 100644 --- a/ui/app/styles/components.scss +++ b/ui/app/styles/components.scss @@ -2,6 +2,7 @@ @import "./components/boxed-section"; @import "./components/breadcrumbs"; @import "./components/empty-message"; +@import "./components/error-container"; @import "./components/gutter"; @import "./components/inline-definitions"; @import "./components/job-diff"; diff --git a/ui/app/styles/components/error-container.scss b/ui/app/styles/components/error-container.scss new file mode 100644 index 000000000..298d7fe52 --- /dev/null +++ b/ui/app/styles/components/error-container.scss @@ -0,0 +1,22 @@ +.error-container { + width: 100%; + height: 100%; + padding-top: 25vh; + display: flex; + justify-content: center; + background: $grey-lighter; + + .error-message { + max-width: 600px; + + .title, + .subtitle { + text-align: center; + } + } + + .error-stack-trace { + border: 1px solid $grey-light; + border-radius: $radius; + } +}