From 7e4a00705793cae9c94af9fd0999aa9f1c071931 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 23 Sep 2019 15:29:42 +0200 Subject: [PATCH] Responsive header --- src/App.vue | 16 ----- src/components/ContentSelection.vue | 52 ++++++++-------- src/components/Header.vue | 95 +++++++++++++++-------------- src/scss/main.scss | 18 +++++- src/views/Home.vue | 10 +++ 5 files changed, 103 insertions(+), 88 deletions(-) diff --git a/src/App.vue b/src/App.vue index 3cec95b..f05598c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,22 +6,6 @@ - - diff --git a/src/scss/main.scss b/src/scss/main.scss index e7d62fc..d581a0b 100644 --- a/src/scss/main.scss +++ b/src/scss/main.scss @@ -54,6 +54,21 @@ body { background-color: #ffad5c; } +.container { + padding-top: 0; + margin-top: 0; + width: 1024px; + + @media screen and (max-width: $responsive-screen) { + width: 100%; + max-width: unset; + } + + @media screen and (max-width: $small-screen) { + padding: 0; + } +} + main { padding: 0 70px; background-color: #fff; @@ -106,7 +121,8 @@ main { } @media screen and (max-width: $small-screen) { - min-width: auto !important; + width: 100% !important; + min-width: unset !important; padding: 0 5px !important; } } diff --git a/src/views/Home.vue b/src/views/Home.vue index 31a3fb3..dae1c6b 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -335,6 +335,12 @@ } } } + + @media screen and (max-width: $small-screen) { + .jpt-button { + width: 100%; + } + } } .jpt-button-legend { @@ -383,6 +389,10 @@ font-size: 16px; margin: 50px auto; width: 500px; + + @media screen and (max-width: $small-screen) { + width: 100%; + } } }