From 322fa7b1aa5f48e8f1efa4a67ddb0fae06f06f00 Mon Sep 17 00:00:00 2001 From: Greg Newman Date: Wed, 1 Mar 2023 09:34:08 -0500 Subject: [PATCH 1/5] :sparkles: adds google search Issue: #36 --- static/css/styles.css | 30 +++++++++++++++++++----------- templates/includes/_header.html | 20 ++++++++++++++++---- 2 files changed, 35 insertions(+), 15 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 747a60e5..8a1fdb0a 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -887,14 +887,18 @@ input[type=file] { left: 0px; } +.inset-y-0 { + top: 0px; + bottom: 0px; +} + .inset-x-0 { left: 0px; right: 0px; } -.inset-y-0 { - top: 0px; - bottom: 0px; +.right-3 { + right: 0.75rem; } .top-0 { @@ -917,10 +921,6 @@ input[type=file] { left: 0px; } -.right-3 { - right: 0.75rem; -} - .top-14 { top: 3.5rem; } @@ -1277,6 +1277,10 @@ input[type=file] { width: 33.333333%; } +.w-\[100px\] { + width: 100px; +} + .w-6 { width: 1.5rem; } @@ -1313,6 +1317,10 @@ input[type=file] { width: 200px; } +.w-\[110px\] { + width: 110px; +} + .min-w-0 { min-width: 0px; } @@ -1877,6 +1885,10 @@ input[type=file] { padding-left: 0.75rem; } +.pl-2 { + padding-left: 0.5rem; +} + .pl-8 { padding-left: 2rem; } @@ -1897,10 +1909,6 @@ input[type=file] { padding-bottom: 0.25rem; } -.pl-2 { - padding-left: 0.5rem; -} - .pb-16 { padding-bottom: 4rem; } diff --git a/templates/includes/_header.html b/templates/includes/_header.html index b459ff86..d5473fef 100644 --- a/templates/includes/_header.html +++ b/templates/includes/_header.html @@ -7,7 +7,7 @@
{% endblock forum_body %} diff --git a/templates/partials/messages.html b/templates/partials/messages.html index c1eb87b9..b44cf02b 100644 --- a/templates/partials/messages.html +++ b/templates/partials/messages.html @@ -1,10 +1,10 @@ -
-{% if messages %} -{% for message in messages %} -
- - {{ message }} -
-{% endfor %} -{% endif %} +
+ {% if messages %} + {% for message in messages %} +
+ + {{ message }} +
+ {% endfor %} + {% endif %}
From afa09a49ebe2011b7ab54b6f4b05daf71db255d7 Mon Sep 17 00:00:00 2001 From: Greg Newman Date: Wed, 1 Mar 2023 10:20:44 -0500 Subject: [PATCH 5/5] blackened --- config/settings.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/config/settings.py b/config/settings.py index beaa7423..c830041b 100755 --- a/config/settings.py +++ b/config/settings.py @@ -359,13 +359,13 @@ BASE_CONTENT = env("BOOST_CONTENT_DIRECTORY", "/website") # Machina settings MACHINA_DEFAULT_AUTHENTICATED_USER_FORUM_PERMISSIONS = [ - 'can_see_forum', - 'can_read_forum', - 'can_start_new_topics', - 'can_reply_to_topics', - 'can_edit_own_posts', - 'can_post_without_approval', - 'can_create_polls', - 'can_vote_in_polls', - 'can_download_file', + "can_see_forum", + "can_read_forum", + "can_start_new_topics", + "can_reply_to_topics", + "can_edit_own_posts", + "can_post_without_approval", + "can_create_polls", + "can_vote_in_polls", + "can_download_file", ]