From 40355a0af5baed780462104c0553aedc0c97bbb9 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 4 Aug 2021 09:10:00 +0200 Subject: [PATCH] Client - re-arrange style files + fix app-name padding --- fittrackee_client/src/App.vue | 78 +-------------------- fittrackee_client/src/components/Footer.vue | 8 ++- fittrackee_client/src/components/NavBar.vue | 76 ++++++++++---------- fittrackee_client/src/scss/base.scss | 34 +++++++++ fittrackee_client/src/scss/colors.scss | 11 +++ fittrackee_client/src/scss/fonts.scss | 56 +++++++++++++++ fittrackee_client/src/scss/vars.scss | 6 ++ 7 files changed, 151 insertions(+), 118 deletions(-) create mode 100644 fittrackee_client/src/scss/base.scss create mode 100644 fittrackee_client/src/scss/colors.scss create mode 100644 fittrackee_client/src/scss/fonts.scss create mode 100644 fittrackee_client/src/scss/vars.scss diff --git a/fittrackee_client/src/App.vue b/fittrackee_client/src/App.vue index 56ee3aaf..5036dcfd 100644 --- a/fittrackee_client/src/App.vue +++ b/fittrackee_client/src/App.vue @@ -19,81 +19,5 @@ diff --git a/fittrackee_client/src/components/Footer.vue b/fittrackee_client/src/components/Footer.vue index 9fb8f23a..6930836b 100644 --- a/fittrackee_client/src/components/Footer.vue +++ b/fittrackee_client/src/components/Footer.vue @@ -35,6 +35,8 @@ diff --git a/fittrackee_client/src/scss/base.scss b/fittrackee_client/src/scss/base.scss new file mode 100644 index 00000000..8a6a99fd --- /dev/null +++ b/fittrackee_client/src/scss/base.scss @@ -0,0 +1,34 @@ +@import 'colors'; +@import 'fonts'; +@import 'vars'; + +body { + margin: 0; +} + +#app { + font-family: 'PT Sans', Helvetica, Arial, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + color: var(--app-color); + + background-color: var(--app-background-color); + + margin: 0; + min-height: 100vh; +} + +a { + color: var(--app-a-color); + text-decoration: none; +} + +.container { + display: flex; + margin-left: auto; + margin-right: auto; + padding-left: 15px; + padding-right: 15px; + max-width: $container-width; + width: 100%; +} \ No newline at end of file diff --git a/fittrackee_client/src/scss/colors.scss b/fittrackee_client/src/scss/colors.scss new file mode 100644 index 00000000..af9d2ba7 --- /dev/null +++ b/fittrackee_client/src/scss/colors.scss @@ -0,0 +1,11 @@ +:root { + --app-background-color: #eaeaea; + --app-color: #2c3e50; + --app-a-color: #40578a; + + --nav-bar-background-color: #FFFFFF; + --nav-bar-link-active: #485b6e; + + --footer-background-color: #FFFFFF; + --footer-color: #8b8c8c; +} \ No newline at end of file diff --git a/fittrackee_client/src/scss/fonts.scss b/fittrackee_client/src/scss/fonts.scss new file mode 100644 index 00000000..d2ad9ef5 --- /dev/null +++ b/fittrackee_client/src/scss/fonts.scss @@ -0,0 +1,56 @@ +/* pt-sans-regular - latin */ +@font-face { + font-family: 'PT Sans'; + font-style: normal; + font-weight: 400; + src: url('~@/assets/fonts/pt-sans-v9-latin-regular.eot'); /* IE9 Compat Modes */ + src: local('PT Sans'), local('PTSans-Regular'), + url('~@/assets/fonts/pt-sans-v9-latin-regular.eot?#iefix') + format('embedded-opentype'), + /* IE6-IE8 */ url('~@/assets/fonts/pt-sans-v9-latin-regular.woff2') + format('woff2'), + /* Super Modern Browsers */ + url('~@/assets/fonts/pt-sans-v9-latin-regular.woff') format('woff'), + /* Modern Browsers */ url('~@/assets/fonts/pt-sans-v9-latin-regular.ttf') + format('truetype'), + /* Safari, Android, iOS */ + url('~@/assets/fonts/pt-sans-v9-latin-regular.svg#PTSans') format('svg'); /* Legacy iOS */ +} + +/* pt-sans-italic - latin */ +@font-face { + font-family: 'PT Sans'; + font-style: italic; + font-weight: 400; + src: url('~@/assets/fonts/pt-sans-v9-latin-italic.eot'); /* IE9 Compat Modes */ + src: local('PT Sans Italic'), local('PTSans-Italic'), + url('~@/assets/fonts/pt-sans-v9-latin-italic.eot?#iefix') + format('embedded-opentype'), + /* IE6-IE8 */ url('~@/assets/fonts/pt-sans-v9-latin-italic.woff2') + format('woff2'), + /* Super Modern Browsers */ + url('~@/assets/fonts/pt-sans-v9-latin-italic.woff') format('woff'), + /* Modern Browsers */ url('~@/assets/fonts/pt-sans-v9-latin-italic.ttf') + format('truetype'), + /* Safari, Android, iOS */ + url('~@/assets/fonts/pt-sans-v9-latin-italic.svg#PTSans') format('svg'); /* Legacy iOS */ +} + +/* pt-sans-700 - latin */ +@font-face { + font-family: 'PT Sans'; + font-style: normal; + font-weight: 700; + src: url('~@/assets/fonts/pt-sans-v9-latin-700.eot'); /* IE9 Compat Modes */ + src: local('PT Sans Bold'), local('PTSans-Bold'), + url('~@/assets/fonts/pt-sans-v9-latin-700.eot?#iefix') + format('embedded-opentype'), + /* IE6-IE8 */ url('~@/assets/fonts/pt-sans-v9-latin-700.woff2') + format('woff2'), + /* Super Modern Browsers */ url('~@/assets/fonts/pt-sans-v9-latin-700.woff') + format('woff'), + /* Modern Browsers */ url('~@/assets/fonts/pt-sans-v9-latin-700.ttf') + format('truetype'), + /* Safari, Android, iOS */ + url('~@/assets/fonts/pt-sans-v9-latin-700.svg#PTSans') format('svg'); /* Legacy iOS */ +} \ No newline at end of file diff --git a/fittrackee_client/src/scss/vars.scss b/fittrackee_client/src/scss/vars.scss new file mode 100644 index 00000000..6284c770 --- /dev/null +++ b/fittrackee_client/src/scss/vars.scss @@ -0,0 +1,6 @@ +/* +* === MEDIA QUERIES === +*/ +$container-width: 1140px; +$medium-limit: 1000px; +$small-limit: 500px; \ No newline at end of file