use different way for bootstrap icons
This commit is contained in:
parent
8a28bd5ce2
commit
26acdaf66a
@ -25,16 +25,10 @@
|
|||||||
href="{{ button.href | default('#') }}"
|
href="{{ button.href | default('#') }}"
|
||||||
class="btn btn-{{ button.theme | default('primary') }} my-2 d-inline-flex"
|
class="btn btn-{{ button.theme | default('primary') }} my-2 d-inline-flex"
|
||||||
>
|
>
|
||||||
{{ button.text }}
|
|
||||||
{% if button.icon %}
|
{% if button.icon %}
|
||||||
<svg
|
<i class="bi-{{ button.icon }}"></i>
|
||||||
class="bi"
|
|
||||||
width="{{ button.icon.width }}"
|
|
||||||
height="{{ button.icon.height }}"
|
|
||||||
>
|
|
||||||
<use xlink:href="#{{ button.icon.name }}"/>
|
|
||||||
</svg>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ button.text }}
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
data-bs-placement="top"
|
data-bs-placement="top"
|
||||||
data-bs-title="Add a reaction"
|
data-bs-title="Add a reaction"
|
||||||
>
|
>
|
||||||
<i class="bi bi-heart-fill" style="font-size: 1rem; color: pink;"></i>
|
<i class="bi-heart-fill" style="font-size: 1rem; color: pink;"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -30,7 +30,7 @@
|
|||||||
{% for reaction in reactions %}
|
{% for reaction in reactions %}
|
||||||
{# TODO: limit total number of reactions shown #}
|
{# TODO: limit total number of reactions shown #}
|
||||||
<span class="badge rounded-pill">
|
<span class="badge rounded-pill">
|
||||||
<svg class="bi" width="1rem" height="1rem"><use xlink:href="#{{ reaction }}" /></svg>
|
<i class="bi-{{ reaction }}"></i>
|
||||||
</span>
|
</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
n. (list index)
|
n. (list index)
|
||||||
- href | yes | none
|
- href | yes | none
|
||||||
- text | yes | none
|
- text | yes | none
|
||||||
|
- icon | no | none
|
||||||
... (etc)
|
... (etc)
|
||||||
-->
|
-->
|
||||||
<header data-bs-theme="{{ theme | default('dark') }}">
|
<header data-bs-theme="{{ theme | default('dark') }}">
|
||||||
@ -29,13 +30,7 @@
|
|||||||
{% if link.href and link.text %}
|
{% if link.href and link.text %}
|
||||||
<li><a href={{ link.href }} class="text-{{ text_theme | default('white') }}">
|
<li><a href={{ link.href }} class="text-{{ text_theme | default('white') }}">
|
||||||
{% if link.icon %}
|
{% if link.icon %}
|
||||||
<svg
|
<i class="bi-{{ link.icon }}"></i>
|
||||||
class="bi"
|
|
||||||
width="{{ link.icon.width }}"
|
|
||||||
height="{{ link.icon.height }}"
|
|
||||||
>
|
|
||||||
<use xlink:href="#{{ link.icon.name }}"/>
|
|
||||||
</svg>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ link.text }}
|
{{ link.text }}
|
||||||
</a></li>
|
</a></li>
|
||||||
|
Loading…
Reference in New Issue
Block a user