From 1f14255b28f9c82e7f40c85435b889e14d53bc91 Mon Sep 17 00:00:00 2001 From: Tim Ktitarev Date: Sun, 22 Mar 2020 19:58:53 +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/Questionnaire.vue | 48 ++++++++++++++++++++++++++++++------- 4 files changed, 68 insertions(+), 32 deletions(-) diff --git a/src/App.vue b/src/App.vue index 7986880..88ee614 100644 --- a/src/App.vue +++ b/src/App.vue @@ -84,6 +84,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; @@ -98,13 +120,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 ec32091..eb1d067 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; - }*/