diff --git a/Iceshrimp.Frontend/Layout/MainLayout.razor.css b/Iceshrimp.Frontend/Layout/MainLayout.razor.css index 43282560..e29220bf 100644 --- a/Iceshrimp.Frontend/Layout/MainLayout.razor.css +++ b/Iceshrimp.Frontend/Layout/MainLayout.razor.css @@ -6,4 +6,18 @@ } .main { width: 100%; +} + +.widget-panel{ + +} +.sidebar { + +} + +@media (max-width: 700px) { + .widget-panel { + display: none; + } + } \ No newline at end of file diff --git a/Iceshrimp.Frontend/Layout/Sidebar.razor b/Iceshrimp.Frontend/Layout/Sidebar.razor index 470aeb81..772ee1bb 100644 --- a/Iceshrimp.Frontend/Layout/Sidebar.razor +++ b/Iceshrimp.Frontend/Layout/Sidebar.razor @@ -1,23 +1,54 @@ @using Iceshrimp.Frontend.Components +@using Iceshrimp.Assets.PhosphorIcons + +
+
@code { diff --git a/Iceshrimp.Frontend/Layout/Sidebar.razor.css b/Iceshrimp.Frontend/Layout/Sidebar.razor.css index abf4d27d..f2b19463 100644 --- a/Iceshrimp.Frontend/Layout/Sidebar.razor.css +++ b/Iceshrimp.Frontend/Layout/Sidebar.razor.css @@ -1,37 +1,91 @@ -.sidebar { - display: flex; - flex-direction: column; - height: 100vh; - max-width: 15rem; - min-width: 15rem; - flex-grow: 1; - background-color: var(--foreground-color); +@media (min-width: 701px) { + .sidebar { + display: flex; + flex-direction: column; + height: 100vh; + max-width: 15rem; + min-width: 15rem; + flex-grow: 1; + background-color: var(--foreground-color); + } + + .header { + height: 5rem; + } + + .sidebar-btn { + display: flex; + height: 2.5rem; + align-items: center; + justify-content: start; + border-radius: 1.25rem; + padding-inline: 0.5rem; + margin-bottom: 0.5rem; + margin-inline: 1rem; + color: black; + font-size: 0.9em; + background: var(--accent-color) + } + + .btn:hover { + background-color: var(--hover-color); + } + + .icon { + display: flex; + margin: 0.5rem; + align-items: center; + color: black; + } + + .bottom-bar { + display: none; + } } -.header { - height: 5rem; -} -.sidebar-btn { - display: flex; - height: 2.5rem; - align-items: center; - justify-content: start; - border-radius: 1.25rem; - padding-inline: 0.5rem; - margin-bottom: 0.5rem; - margin-inline: 1rem; - color: black; - font-size: 0.9em; - background: var(--accent-color) -} +@media (max-width: 700px) { + .sidebar { + display: none; + } + .bottom-bar { + width: 100vw; + position: fixed; + bottom: 0; + left: 0; + background-color: var(--foreground-color); + } + + .nav { + display: flex; + justify-content: space-around; + } + + .sidebar-btn { + display: inline-flex; + height: 3rem; + width: 4rem; + min-width: 4rem; + max-width: 4rem; + align-items: center; + justify-content: center; + border-radius: 1.25rem; + margin-bottom: 0.5rem; + margin-top: 0.5rem; + color: black; + background: var(--accent-color); + .text { + display: none; + } + } -.btn:hover { - background-color: var(--hover-color); -} + .btn:hover { + background-color: var(--hover-color); + } -.icon { - display: flex; - margin: 0.5rem; - align-items: center; - color: black; + .icon { + display: flex; + margin: 0.5rem; + align-items: center; + color: black; + } } \ No newline at end of file