Skip to content

Commit

Permalink
Update label style for light/dark mode, eliminate unneeded loop
Browse files Browse the repository at this point in the history
  • Loading branch information
hancush committed Dec 10, 2024
1 parent d25049a commit 0d35e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lametro/static/css/wagtail_custom.css
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions lametro/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 0d35e98

Please sign in to comment.