From e5050d65de5c732c832f0e35fce0082d2b756c33 Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Sun, 1 Dec 2024 15:10:34 +0100 Subject: [PATCH] Mobile layout (fix #2) --- frontend/assets/css/main.css | 8 +-- frontend/components/ChampionTitle.vue | 63 +++++++++++++++++--- frontend/components/ItemViewer.vue | 49 +++++++++++++--- frontend/components/NavBar.vue | 82 +++++++++++++++++++++++++++ frontend/components/RunePage.vue | 22 ++++++- frontend/components/RuneSelector.vue | 37 ++++++++++-- frontend/components/SideBar.vue | 12 +++- frontend/pages/champion/[alias].vue | 53 +++++++++++++++-- 8 files changed, 293 insertions(+), 33 deletions(-) create mode 100644 frontend/components/NavBar.vue diff --git a/frontend/assets/css/main.css b/frontend/assets/css/main.css index be3c4c4..5838c36 100644 --- a/frontend/assets/css/main.css +++ b/frontend/assets/css/main.css @@ -29,7 +29,7 @@ body { /* default value: font-size: 16px; */ } -@media only screen and (max-width: 550px) { +@media only screen and (max-width: 650px) { body { font-size: 12px; } @@ -40,15 +40,15 @@ body { /* Different title settings */ h1 { - font-size: 40px; + font-size: 2.5rem; font-weight: 500; } h2 { - font-size: 24px; + font-size: 1.5rem; font-weight: 400; } h3 { - font-size: 24px; + font-size: 1.5rem; font-weight: 300; } diff --git a/frontend/components/ChampionTitle.vue b/frontend/components/ChampionTitle.vue index bf88cd8..5a59009 100644 --- a/frontend/components/ChampionTitle.vue +++ b/frontend/components/ChampionTitle.vue @@ -17,17 +17,20 @@ const championDescription = championData.value.title