Initial commit
This commit is contained in:
commit
97e799fd52
61 changed files with 2252 additions and 0 deletions
16
yksa_web/templates/yksa/ui/_chip.html
Normal file
16
yksa_web/templates/yksa/ui/_chip.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{% comment %}
|
||||
Colourless metadata: a version, an identifier, a count, a role. Anything that
|
||||
carries no status. If you are reaching for a coloured badge to show a *fact*,
|
||||
you want this instead.
|
||||
|
||||
{% include "yksa/ui/_chip.html" with text=element.source.slug mono=1 %}
|
||||
|
||||
text the chip content (required)
|
||||
icon Bootstrap Icons name without the `bi-` prefix
|
||||
mono render monospace -- machine identifiers only
|
||||
title tooltip
|
||||
{% endcomment %}{% spaceless %}
|
||||
<span class="yksa-chip{% if mono %} font-monospace{% endif %}"{% if title %} title="{{ title }}"{% endif %}>
|
||||
{% if icon %}<i class="bi bi-{{ icon }}" aria-hidden="true"></i>{% endif %}{{ text }}
|
||||
</span>
|
||||
{% endspaceless %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue