From 9c207619b13d163f9ae6bf94469a1d5035a6fd0a Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 8 Jul 2023 17:50:00 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(size)=20set=20a=20small=20size?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.ts | 9 +++++++++ style.css | 16 ---------------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/main.ts b/main.ts index bace0b1..043c659 100644 --- a/main.ts +++ b/main.ts @@ -9,3 +9,12 @@ const display = params.get("display") if (display === "pure") { document.querySelector("header")?.remove() } + +const size = params.get("size") + +if (size === "small") { + const body = document.querySelector("body") + if (body) { + body.style.fontSize = "15px" + } +} diff --git a/style.css b/style.css index e9e687d..0f3e456 100644 --- a/style.css +++ b/style.css @@ -127,22 +127,6 @@ li { flex-wrap: wrap; } -@media only screen and (max-width: 1250px) { - :root { - --customer-height: 120px; - } - - body { - font-size: 22px; - } - - .customer-satisfaction { - padding: 0 0.5rem; - font-size: min(22px, 50vw); - height: initial; - } -} - @media only screen and (min-width: 750px) { .pilars { flex-direction: row;