mirror of
https://github.com/tabler/tabler.git
synced 2025-12-26 11:16:12 +04:00
added bagde-avatar badge-tag and changed color of the dafault badge
This commit is contained in:
@@ -56,3 +56,25 @@ If you don't want your badge to contain any text you can do it by leaving the ht
|
||||
<a href="#" class="badge bg-{{ color[0] }}"></a>
|
||||
{% endfor %}
|
||||
{% endexample %}
|
||||
|
||||
### Badge addons
|
||||
|
||||
You can add badge addon by adding `.badge-addon` class.
|
||||
|
||||
{% example %}
|
||||
{% include ui/badge.html text="task" color="green" addon="finished" %}
|
||||
{% include ui/badge.html text="bundle" color="purple" addon="passing" %}
|
||||
{% include ui/badge.html text="CSS gzip size" color="red-lt" addon="20.9kB" addon-color="red" %}
|
||||
{% endexample %}
|
||||
|
||||
### Badge avatars
|
||||
|
||||
If you want to add an avatar to your badge just create `.badge-avatar` class.
|
||||
|
||||
{% example %}
|
||||
{% include ui/badge.html person-id=1 color="blue" %}
|
||||
{% include ui/badge.html person-id=2 color="blue" %}
|
||||
{% include ui/badge.html person-id=3 color="blue" %}
|
||||
{% include ui/badge.html person-id=4 color="blue" %}
|
||||
{% include ui/badge.html person-id=5 color="blue" %}
|
||||
{% endexample %}
|
||||
Reference in New Issue
Block a user