From 82d32141875782c165d5f450f5c85f28fc0d7d4d Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Sun, 18 Jun 2023 19:11:09 +0400 Subject: [PATCH] Max width: reduced, added to nav menu --- src/components/MenuItem.astro | 8 ++++++++ src/layouts/Layout.astro | 3 ++- src/layouts/Menu.astro | 7 ++++++- src/styles/max_width.less | 1 + 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/styles/max_width.less diff --git a/src/components/MenuItem.astro b/src/components/MenuItem.astro index dca56b9..3eaea11 100644 --- a/src/components/MenuItem.astro +++ b/src/components/MenuItem.astro @@ -24,6 +24,14 @@ const { name, link, icon } = Astro.props; // 0.6rem = horizontal padding padding: 0 0.6rem; font-size: 1.15rem; + + &:first-child { + padding-left: 0; + } + + &:last-child { + padding-right: 0; + } } a { diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7ae7b44..a177dc0 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -25,6 +25,7 @@ const { title, description } = Astro.props;