mirror of
https://github.com/tabler/tabler.git
synced 2026-08-23 03:14:23 +04:00
Merge branches 'dev' and 'dev-docs' of https://github.com/tabler/tabler into dev-docs
Conflicts: pages/_docs/badges.md
This commit is contained in:
@@ -60,3 +60,27 @@ If you don't want your badge to contain any text you can do it by leaving the ht
|
||||
{% endfor %}
|
||||
{% endcapture %}
|
||||
{% include example.html code=code centered=true %}
|
||||
|
||||
### Badge addons
|
||||
|
||||
You can add badge addon by adding `.badge-addon` class.
|
||||
|
||||
{% capture code %}
|
||||
{% 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" %}
|
||||
{% endcapture %}
|
||||
{% include example.html code=code %}
|
||||
|
||||
### Badge avatars
|
||||
|
||||
If you want to add an avatar to your badge just create `.badge-avatar` class.
|
||||
|
||||
{% capture code %}
|
||||
{% 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" %}
|
||||
{% endcapture %}
|
||||
{% include example.html code=code %}
|
||||
|
||||
Reference in New Issue
Block a user