From 4bf1139427533d17ad94f29d2e4126c10292e96e Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 13 Jun 2023 14:24:24 +0530 Subject: [PATCH] chore: remove get_shade usage This function doesn't do anything --- frappe/hooks.py | 1 - frappe/templates/includes/website_theme/navbar.css | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frappe/hooks.py b/frappe/hooks.py index 84081bcec1..ed2b25bc1b 100644 --- a/frappe/hooks.py +++ b/frappe/hooks.py @@ -134,7 +134,6 @@ jinja = { "filters": [ "frappe.utils.data.global_date_format", "frappe.utils.markdown", - "frappe.website.utils.get_shade", "frappe.website.utils.abs_url", ], } diff --git a/frappe/templates/includes/website_theme/navbar.css b/frappe/templates/includes/website_theme/navbar.css index 39117b6b39..0de9a4827e 100644 --- a/frappe/templates/includes/website_theme/navbar.css +++ b/frappe/templates/includes/website_theme/navbar.css @@ -3,7 +3,7 @@ background-repeat: repeat-x; background-image: none; border: none; - border-bottom: 1px solid {{ get_shade(theme.top_bar_color, 10) }}; + border-bottom: 1px solid {{ theme.top_bar_color }}; padding-top: 15px; padding-bottom: 15px; } @@ -34,7 +34,7 @@ .navbar .nav > .open > a:hover, .navbar .nav > .open > a:focus, .navbar .nav > .open > a:active { - color: {{ get_shade(theme.top_bar_text_color, 15) }}; + color: {{ theme.top_bar_text_color }}; background-color: transparent; -webkit-box-shadow: none; -moz-box-shadow: none;