From 4bb325cd9aefada48e738182c67da5ef1a698dc7 Mon Sep 17 00:00:00 2001 From: Melvin Valster Date: Sat, 27 Jul 2019 00:04:46 +0200 Subject: [PATCH] Add normalize.css and fix some basic styling --- src/App.scss | 51 +++-- src/App.tsx | 4 +- src/components/Calculator.scss | 10 + src/components/Calculator.tsx | 1 + src/containers/Home.tsx | 2 +- src/sass/_normalize.scss | 349 +++++++++++++++++++++++++++++++++ 6 files changed, 386 insertions(+), 31 deletions(-) create mode 100644 src/components/Calculator.scss create mode 100644 src/sass/_normalize.scss diff --git a/src/App.scss b/src/App.scss index dd3467f..b3a0d1b 100644 --- a/src/App.scss +++ b/src/App.scss @@ -1,12 +1,8 @@ @import "sass/config"; +@import "sass/normalize"; -.main { - min-height: 85vh; -} - -html, body { - padding: 0; - height: 0; +*, *:before, *:after { + box-sizing: border-box; } body { @@ -15,7 +11,6 @@ body { font-family: Verdana; } -// Normalize etc. ul { margin: 0; } @@ -29,19 +24,6 @@ a { } } -.container { - max-width: 900px; - margin: 0 auto; -} - -.inline-items { - display: flex; - - & > * { - margin-right: 1em; - } -} - .yellow { color: $color-yellow; } .green { color: $quality-2; } @@ -53,15 +35,28 @@ a { } } -.calculator { - &__points { - color: white; - text-align: center; - } +.App { + min-height: 100vh; } -.index__class-picker { - margin: 2em 0; +main { + display: flex; + flex-direction: column; + min-height: 90vh; +} + +.container { + max-width: 900px; + margin: 0 auto; + padding: 0 1em; +} + +.inline-items { + display: flex; + + & > * { + margin-right: 1em; + } } footer { diff --git a/src/App.tsx b/src/App.tsx index fc0e5e6..d9dfa03 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -19,12 +19,12 @@ const App: React.FC = () => { {/* */}
-
+
-
+