From 66d8871415502de187b96f9cbaee490844e4864e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 17 Jan 2020 16:02:43 +0100 Subject: [PATCH] Minor style changes on upgrade page (#21566) --- public/app/features/admin/LicenseChrome.tsx | 12 ++--------- public/app/features/admin/UpgradePage.tsx | 23 ++++++++++++++++----- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/public/app/features/admin/LicenseChrome.tsx b/public/app/features/admin/LicenseChrome.tsx index 526dd620e07..3b0c87f8ec7 100644 --- a/public/app/features/admin/LicenseChrome.tsx +++ b/public/app/features/admin/LicenseChrome.tsx @@ -6,7 +6,6 @@ import { GrafanaTheme } from '@grafana/data'; const title = { fontWeight: 500, fontSize: '26px', lineHeight: '123%' }; const getStyles = stylesFactory((theme: GrafanaTheme) => { - const background = theme.colors.panelBg; const backgroundUrl = theme.isDark ? '/public/img/licensing/header_dark.svg' : '/public/img/licensing/header_light.svg'; @@ -14,15 +13,8 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => { return { container: css` - display: grid; - grid-template-columns: 100%; - column-gap: 20px; - row-gap: 40px; - padding: 42px 20px 0 77px; - background-color: ${background}; - @media (min-width: 1050px) { - grid-template-columns: 50% 50%; - } + padding: 36px 79px; + background: ${theme.colors.panelBg}; `, footer: css` text-align: center; diff --git a/public/app/features/admin/UpgradePage.tsx b/public/app/features/admin/UpgradePage.tsx index c24692ae11c..88926cd588e 100644 --- a/public/app/features/admin/UpgradePage.tsx +++ b/public/app/features/admin/UpgradePage.tsx @@ -33,17 +33,30 @@ interface UpgradeInfoProps { } export const UpgradeInfo: React.FC = ({ editionNotice }) => { + const columnStyles = css` + display: grid; + grid-template-columns: 100%; + column-gap: 20px; + row-gap: 40px; + + @media (min-width: 1050px) { + grid-template-columns: 50% 50%; + } + `; + return ( - - +
+ + +
); }; const GetEnterprise: React.FC = () => { return ( -
+

Get Grafana Enterprise

@@ -72,7 +85,7 @@ const ServiceInfo: React.FC = () => {

At your service

- + 24x7x365 support via @@ -116,7 +129,7 @@ const FeatureListing: React.FC = () => { LDAP, GitHub OAuth, Auth Proxy - +