From edce456d15db923ef3436cf80a572588228e83b1 Mon Sep 17 00:00:00 2001 From: Luke Schoen Date: Fri, 3 May 2019 18:08:39 +0200 Subject: [PATCH] refactor: Relates to #1060. Consistent top padding across apps (#1077) * refactor: Relates to #1060. Remove min-height and padding-top from CardSummary for consistent top padding * fix: Increase top padding across apps * feat: Add shorter height on mobile devices * review-fix: Reduce margin between tab items and contents --- packages/apps/src/Apps.tsx | 4 ++-- packages/ui-app/src/CardSummary.tsx | 3 +-- packages/ui-app/src/SummaryBox.tsx | 6 +++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/apps/src/Apps.tsx b/packages/apps/src/Apps.tsx index 2dd9b26e77..b29bd4bfbc 100644 --- a/packages/apps/src/Apps.tsx +++ b/packages/apps/src/Apps.tsx @@ -34,11 +34,11 @@ const Wrapper = styled.div` min-height: 100vh; header { - margin-bottom: 0.8rem; + margin-bottom: 1.4rem; text-align: center; ${media.TABLET` - margin-bottom: 1.1rem; + margin-bottom: 2rem; `} } `; diff --git a/packages/ui-app/src/CardSummary.tsx b/packages/ui-app/src/CardSummary.tsx index 20d17dcace..d8c02b40f5 100644 --- a/packages/ui-app/src/CardSummary.tsx +++ b/packages/ui-app/src/CardSummary.tsx @@ -22,8 +22,7 @@ const Card = styled.article` flex: 0 1 auto; flex-flow: row wrap; justify-content: flex-end; - min-height: 5.7rem; - padding: 0.5rem 1.5rem; + padding: 0rem 1.5rem 0.5rem 1.5rem; > div { font-size: 2.1rem; diff --git a/packages/ui-app/src/SummaryBox.tsx b/packages/ui-app/src/SummaryBox.tsx index 5cae669cdd..760c863097 100644 --- a/packages/ui-app/src/SummaryBox.tsx +++ b/packages/ui-app/src/SummaryBox.tsx @@ -17,7 +17,7 @@ const StyledSummary = styled.div` display: flex; flex-wrap: no-wrap; justify-content: space-between; - margin-bottom: 2.5em; + margin-bottom: 1.4rem; > section { display: flex; @@ -49,6 +49,10 @@ const StyledSummary = styled.div` } } + @media(min-width: 768px) { + margin-bottom: 2.8rem; + } + .ui.label { padding-left: 0; padding-right: 0;