diff --git a/src/components/Sidebar/Sidebar.astro b/src/components/Sidebar/Sidebar.astro index fab16cee..55313e80 100644 --- a/src/components/Sidebar/Sidebar.astro +++ b/src/components/Sidebar/Sidebar.astro @@ -81,3 +81,23 @@ const endSections = [ + +
diff --git a/src/components/Sidebar/Sidebar.scss b/src/components/Sidebar/Sidebar.scss index 2102b5de..3d82d921 100644 --- a/src/components/Sidebar/Sidebar.scss +++ b/src/components/Sidebar/Sidebar.scss @@ -76,4 +76,55 @@ color: #000000; } } + + display: block; + + @media (max-width: 768px) { + display: none; + + .Sidebar__item { + flex-direction: column; + } + + .Sidebar__item__title { + font-size: 0.1rem; + } + } +} + +.Sidebar__mobile { + display: none; + width: 100vw; + z-index: 1; + position: fixed; + background-color: #ffffff; + bottom: 0; + justify-content: center; + border-top-width: 0.1rem; + border-color: #f1f1f1; + border-style: solid; + @media (max-width: 768px) { + display: flex; + } + + &__inner { + display: flex; + justify-content: space-between; + width: 50%; + min-width: 14rem; + padding: 0.5rem; + gap: 0.5rem; + } +} + +@media (max-width: 768px) { + .Sidebar__item { + flex-direction: column; + justify-content: center; + gap: 0.2rem; + } + .Sidebar__item__title { + font-size: 0.6rem; + padding-left: 0rem; + } } diff --git a/src/layouts/Content/Content.scss b/src/layouts/Content/Content.scss index 09b9574b..81377d33 100644 --- a/src/layouts/Content/Content.scss +++ b/src/layouts/Content/Content.scss @@ -7,10 +7,6 @@ } @media (max-width: 768px) { - &__sidebar { - display: none; - } - &__page { margin-left: 0; }