From cfab901f09fe48a717109b8c62738039aa89ebca Mon Sep 17 00:00:00 2001 From: Tim Ktitarev Date: Sun, 22 Mar 2020 20:10:25 +0100 Subject: [PATCH] Adjusted size of status bar and text for small devices (for example an iPhone 5) --- src/App.vue | 30 ++++++++++++++++------- src/components/Question.vue | 8 ------- src/views/HelpPage.vue | 14 +++++------ src/views/Home.vue | 1 + src/views/Questionnaire.vue | 47 ++++++++++++++++++++++++++++++------- 5 files changed, 68 insertions(+), 32 deletions(-) diff --git a/src/App.vue b/src/App.vue index 90b8ffa..1577a34 100644 --- a/src/App.vue +++ b/src/App.vue @@ -87,6 +87,28 @@ background-color: #E94A47; } + /* slightly smaller font for very small devices */ + @media screen and (max-width: 330px) { + body { + font-size: 22px; + } + + button { + font-size: 0.8em; + } + } + + /* regular font for devices wider than 330px */ + @media screen and (min-width: 330px) { + body { + font-size: 24px; + } + + button { + font-size: 0.9em; + } + } + /* div element used to center a button or multiple buttons */ .button-wrapper { text-align: center; @@ -101,13 +123,5 @@ font-style: normal; font-weight: normal; line-height: 1.35em; - font-size: 24px; - } - - .fade-enter-active, .fade-leave-active { - transition: opacity .5s; - } - .fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ { - opacity: 0; } diff --git a/src/components/Question.vue b/src/components/Question.vue index 0f1ecbf..218b7cd 100644 --- a/src/components/Question.vue +++ b/src/components/Question.vue @@ -39,14 +39,6 @@ background: #e94a47; cursor: pointer; } - - /*.bottom-aligned { - position: absolute; - left: 0; - right: 0; - bottom: 0; - border: 1px solid black; - }*/