diff --git a/lametro/static/css/wagtail_custom.css b/lametro/static/css/wagtail_custom.css index dcd57915..e534e032 100644 --- a/lametro/static/css/wagtail_custom.css +++ b/lametro/static/css/wagtail_custom.css @@ -1,9 +1,9 @@ [class*="alert"] { --font-color: #fff; - --a: 0.75; + --a: 0.6; background-color: rgba(var(--r), var(--g), var(--b), var(--a)); color: var(--font-color); - border: 1px solid #fff!important; + border: 1px solid rgba(var(--r), var(--g), var(--b), 1)!important; } .button[class*="alert"]:hover { diff --git a/lametro/wagtail_hooks.py b/lametro/wagtail_hooks.py index 286f692d..1d1e4ff9 100644 --- a/lametro/wagtail_hooks.py +++ b/lametro/wagtail_hooks.py @@ -39,8 +39,7 @@ def render(self, request): @hooks.register("construct_wagtail_userbar") def add_modeladmin_links(request, items): - for modeladmin_cls in (AlertAdmin,): - items.append(ModelAdminLink(modeladmin_cls)) + items.append(ModelAdminLink(AlertAdmin)) return items