From 7d009c36de58819c6a444b67203646137a14b7fa Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sat, 29 Oct 2022 21:06:11 -0500 Subject: [PATCH] Change sidebar style --- dmoj/urls.py | 4 +++- resources/blog.scss | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dmoj/urls.py b/dmoj/urls.py index 2f01db5..1fbcd15 100644 --- a/dmoj/urls.py +++ b/dmoj/urls.py @@ -1090,9 +1090,11 @@ urlpatterns = [ ] ), ), - # url("__debug__/", include("debug_toolbar.urls")), # debug_toolbar use ] + url_static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) +if hasattr(settings, "INTERNAL_IPS"): + urlpatterns.append(url("__debug__/", include("debug_toolbar.urls"))) + favicon_paths = [ "apple-touch-icon-180x180.png", "apple-touch-icon-114x114.png", diff --git a/resources/blog.scss b/resources/blog.scss index ab475e5..aa5e0ab 100644 --- a/resources/blog.scss +++ b/resources/blog.scss @@ -174,8 +174,14 @@ .left-sidebar-item { .sidebar-icon { + font-size: large; width: 1.2em; display: inline-block; + + i { + position: relative; + bottom: -1.5px; + } } } .left-sidebar-item:hover { @@ -280,7 +286,7 @@ } .left-sidebar-item { - border-radius: 0 2em 2em 0; + border-radius: 0 0.5em 0.5em 0; } .feed-table {