From 8758973e05d86ed25acad035df49b1fea33e30e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Lente?= Date: Fri, 27 Sep 2024 11:15:03 +0200 Subject: [PATCH 1/3] UI: Implement template markup web-assets v2 component nav-pills base Make base changes to templates markup to use web-assets v2 nav-pills component. --- .../bid_main/components/sidebar_nav_item.html | 5 ++- templates/layout.html | 40 ++++++++++--------- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/bid_main/templates/bid_main/components/sidebar_nav_item.html b/bid_main/templates/bid_main/components/sidebar_nav_item.html index 6856950..87e9f10 100644 --- a/bid_main/templates/bid_main/components/sidebar_nav_item.html +++ b/bid_main/templates/bid_main/components/sidebar_nav_item.html @@ -1,4 +1,7 @@ - {% if icon %}{% endif %} + {% if icon %} + + {% endif %} + {{ title }} diff --git a/templates/layout.html b/templates/layout.html index c11b780..fed9ea7 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -42,31 +42,33 @@
{% block sidebar %} -
- -
+
{% endblock %}
-- 2.30.2 From 177b1faf5fa2f441284434d707542431ec21c25a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Lente?= Date: Fri, 27 Sep 2024 11:16:03 +0200 Subject: [PATCH 2/3] Cleanup: Remove style redundant nav-pills overrides --- bid_main/static/bid_main/styles/main.sass | 28 ----------------------- 1 file changed, 28 deletions(-) diff --git a/bid_main/static/bid_main/styles/main.sass b/bid_main/static/bid_main/styles/main.sass index 2659054..14c200b 100644 --- a/bid_main/static/bid_main/styles/main.sass +++ b/bid_main/static/bid_main/styles/main.sass @@ -375,34 +375,6 @@ form position: relative top: calc(var(--border-width) * -1) -// TODO: Move to web-assets. This is copied over from Extensions. -.nav-pills - @extend .dropdown-menu - - box-shadow: none - display: block - position: relative - -.nav-pills-item - @extend .dropdown-item - - +margin(1, bottom) - white-space: normal - - &.active - background-color: var(--color-accent-bg) - +fw-normal - - &:last-child - +margin(0, bottom) - -.nav-pills-divider - @extend .dropdown-divider - - +margin(0, top) - +margin(1, bottom) - - /* Larger icons */ i.icon.icon-lg svg -- 2.30.2 From 3e43b1f80f645d570c966de941d581a026541271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Lente?= Date: Fri, 27 Sep 2024 11:20:28 +0200 Subject: [PATCH 3/3] UI: Improve template layout component nav-pills markup semantics --- templates/layout.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/layout.html b/templates/layout.html index fed9ea7..4074a23 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -43,7 +43,7 @@
{% block sidebar %}
- +
{% endblock %} -- 2.30.2