diff --git a/hypha/core/wagtail_hooks.py b/hypha/core/wagtail_hooks.py new file mode 100644 index 0000000000000000000000000000000000000000..4785e6adf97e8d8f2c708a637c8c5c17ef2d4f56 --- /dev/null +++ b/hypha/core/wagtail_hooks.py @@ -0,0 +1,10 @@ +from django.templatetags.static import static +from django.utils.html import format_html +from wagtail import hooks + + +@hooks.register("insert_global_admin_css") +def global_admin_css(): + return format_html( + '<link rel="stylesheet" href="{}">', static("css/wagtail_global_admin.css") + ) diff --git a/hypha/static_src/sass/wagtail_global_admin.css b/hypha/static_src/sass/wagtail_global_admin.css new file mode 100644 index 0000000000000000000000000000000000000000..006c9afc5be610161d1539268b7740da53909741 --- /dev/null +++ b/hypha/static_src/sass/wagtail_global_admin.css @@ -0,0 +1,3 @@ +.sidebar form[role="search"] { + display: none; +}