From 2f1647546e05d96120c2dc284879ab15f87a70e4 Mon Sep 17 00:00:00 2001 From: Fred Snyder Date: Tue, 14 Dec 2021 19:17:47 +0100 Subject: [PATCH] Add global :root css vars for page width --- src/components/kaboom/footer.ts | 2 +- src/components/kaboom/navBar.ts | 2 +- src/components/profiles.ts | 2 +- src/style.css | 7 ++++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/kaboom/footer.ts b/src/components/kaboom/footer.ts index 6546621..755f035 100644 --- a/src/components/kaboom/footer.ts +++ b/src/components/kaboom/footer.ts @@ -5,7 +5,7 @@ const footerCss = ` } .footer-container { - max-width: 1200px; + max-width: var(--max-width, 1200px); margin: 0 auto; } diff --git a/src/components/kaboom/navBar.ts b/src/components/kaboom/navBar.ts index 563c14e..9b6ce87 100644 --- a/src/components/kaboom/navBar.ts +++ b/src/components/kaboom/navBar.ts @@ -4,7 +4,7 @@ const navTemplate = document.createElement('template'); navTemplate.innerHTML = `