diff sat_templates/templates/bulma/components/collapsible_card.html @ 403:65c53ec5e777

Bulma: complete redesign: This is a WIP full redesign of the whole web UI. Only chat is usable at the moment, many things are broken. The design uses the new Bulma v1+, has a look closer to industry standards, paves the way for a dark theme, and should be easy to use. It's a basis for coming features such as UI/UX for threads. rel 457
author Goffi <goffi@goffi.org>
date Fri, 11 Apr 2025 21:32:05 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sat_templates/templates/bulma/components/collapsible_card.html	Fri Apr 11 21:32:05 2025 +0200
@@ -0,0 +1,24 @@
+{% macro collapsible_card(title, header_color='has-background-primary-light', icon=none) %}
+    <div class="card collapsible-card">
+        <div class="card-header collapsible-header {{ header_color }}">
+            <p class="card-header-title">
+                {% if icon %}
+                    <span class="icon is-small mr-2">
+                        <i class="fas fa-{{ icon }}"></i>
+                    </span>
+                {% endif %}
+                {{ title }}
+                <span class="icon is-small ml-2 collapsible-icon">
+                    <i class="fas fa-chevron-down"></i>
+                </span>
+            </p>
+        </div>
+        <div class="collapsible-content">
+            <div class="card-content">
+                <div class="content">
+                    {{ caller() }}
+                </div>
+            </div>
+        </div>
+    </div>
+{% endmacro %}