From 2b6546bd76b5edcf27bf0b9e4d14464ea4eaac91 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Sat, 14 Sep 2024 20:12:22 +0100 Subject: [PATCH] server sidebar support smaller screens --- apps/static/css/home/index.css | 41 ++++++++++++++++++++++++++++++++++ apps/templates/home/index.html | 16 ++++++------- 2 files changed, 49 insertions(+), 8 deletions(-) diff --git a/apps/static/css/home/index.css b/apps/static/css/home/index.css index 02786c3..f9d5738 100644 --- a/apps/static/css/home/index.css +++ b/apps/static/css/home/index.css @@ -30,6 +30,39 @@ transition: border-radius .15s ease-in; } */ +.server-sidebar { + width: 16rem; +} + +@media (max-width: 992px) { + .server-sidebar { + width: 4.5rem; + } + + .server-item > button { + padding: 0.25rem !important; + } + + .server-item > button > div { + justify-content: center !important; + } + + .server-item .server-item-labels { + display: none !important; + } + + .server-sidebar > ul > li:has(> #newServerBtn) { + display: flex; + justify-content: center !important; + } + + #newServerBtn { + width: 45px !important; + height: 45px !important; + padding: 0 !important; + } +} + .server-item { max-width: calc(16rem - 1rem); } @@ -99,4 +132,12 @@ td > .btn-link { #serverTabs .nav-link:not(.active) { color: var(--bs-text-body); +} + +.dot-icon { + height: .75rem; + width: .75rem; + background-color: var(--bs-primary); + border-radius: 50%; + display: inline-block; } \ No newline at end of file diff --git a/apps/templates/home/index.html b/apps/templates/home/index.html index cc17c2d..404e5d1 100644 --- a/apps/templates/home/index.html +++ b/apps/templates/home/index.html @@ -11,13 +11,13 @@ {% block content %}
-
-
-