mirror of
https://github.com/tabler/tabler.git
synced 2026-07-26 13:04:39 +04:00
icon fix
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
<div class="alert alert-{{ include.type | default: 'primary'}}{%if include.close %} alert-dismissible{% endif %}{% if include.avatar %} alert-avatar{% endif %}" role="alert">
|
<div class="alert alert-{{ include.type | default: 'primary'}}{%if include.close %} alert-dismissible{% endif %}{% if include.avatar %} alert-avatar{% endif %}" role="alert">
|
||||||
{% if include.person-id %}{% include ui/avatar.html person-id=include.person-id %}{% endif %}
|
{% if include.person-id %}{% include ui/avatar.html person-id=include.person-id %}{% endif %}
|
||||||
{% if include.icon %}
|
{% if include.icon %}
|
||||||
{% include ui/icon.html icon=include.icon class="mr-1" %}
|
{% include ui/icon.html icon=include.icon class="mr-1" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ include.text | default: "This is a custom alert box!" }}
|
{{ include.text | default: "This is a custom alert box!" }}
|
||||||
|
|
||||||
{% if include.buttons %}
|
{% if include.buttons %}
|
||||||
<div class="btn-list">
|
<div class="btn-list">
|
||||||
<a href="#" class="btn btn-success">Save changes</a>
|
<a href="#" class="btn btn-success">Save changes</a>
|
||||||
<a href="#" class="btn">Cancel</a>
|
<a href="#" class="btn">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if include.close %}<a href="#" class="btn-close" data-dismiss="alert" aria-label="close"></a>{% endif %}
|
{% if include.close %}<a href="#" class="btn-close" data-dismiss="alert" aria-label="close"></a>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
{% if site.use-iconfont %}
|
{% if site.use-iconfont %}
|
||||||
<i class="icon ti ti-{{ icon-name }}{% if include.color %} {{ include.color }}{% endif %}{% if include.class %} {{ include.class }}{% endif %}"></i>
|
<i class="icon ti ti-{{ icon-name }}{% if include.color %} {{ include.color }}{% endif %}{% if include.class %} {{ include.class }}{% endif %}"></i>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% assign svg-icon = site.data.icons[icon-name] | default: '' %}
|
||||||
{{ svg-icon | replace_regex: 'class=\"[^"]+\"', replace-to }}
|
{{ svg-icon | replace_regex: 'class=\"[^"]+\"', replace-to }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user