-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
{% if (icon.type == mode) %} | ||
<sbb-tooltip-trigger class="icon {{ icon.mode }}" data-category="{{icon.category}}" data-id="{{icon.name}}" data-name="{{icon.name}}" data-size="{{icon.size}}" id="{{ icon.name }}" aria-describedby="{{ icon.name }}-content"> | ||
<sbb-icon name="{% if mode == "Pictograms" %}picto:{% endif %}{{icon.name}}" alt="{{ icon.name }}"></sbb-icon> | ||
<div class="only-for-search"> | ||
{{ icon.name }}<br> | ||
{% if mode == "KOM" %}{{ icon.group }}<br>{% endif %} | ||
{{ icon.category }}<br> | ||
{% if mode == "Pictograms" %}{{ icon.subcategory }}<br>{% endif %} | ||
{{ icon.tags }}<br> | ||
{% if mode == "KOM" %} | ||
{% for size in icon.sizes %} | ||
{{size.size}} | ||
{% endfor %} | ||
{% endif %} | ||
</div> | ||
</sbb-tooltip-trigger> | ||
<sbb-icon name="{% if mode == "Pictograms" %}picto:{% endif %}{{icon.name}}" alt="{{ icon.name }}"></sbb-icon><div class="only-for-search">{{ icon.name }}<br>{% if mode == "KOM" %}{{ icon.group }}<br>{% endif %}{{ icon.category }}<br>{% if mode == "Pictograms" %}{{ icon.subcategory }}<br>{% endif %}{{ icon.tags }}<br>{% if mode == "KOM" %}{% for size in icon.sizes %}{{size.size}}{% endfor %}{% endif %}</div> | ||
</sbb-tooltip-trigger> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
{% for category in categories %} | ||
<sbb-title level="4" id="{{category}}" data-category="{{category}}" data-id="id-{{category}}" data-name="{{category}}" data-size="small, medium, large">{{category}}</sbb-title> | ||
{% for icon in icons %} | ||
{% if category == icon.category %} | ||
{% include "./item.njk" %} | ||
{% endif %} | ||
{% endfor %} | ||
<sbb-title level="4" id="{{category}}" data-category="{{category}}" data-id="id-{{category}}" data-name="{{category}}" data-size="small, medium, large">{{category}}</sbb-title> | ||
{% for icon in icons %}{% if category == icon.category %}{% include "./item.njk" %}{% endif %}{% endfor %} | ||
{% endfor %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
{% for icon in icons %} | ||
<sbb-tooltip id="{{ icon.name }}" trigger="{{ icon.name }}" hover-trigger="true"> | ||
<div class="icon-content" id="{{ icon.name }}-content"> | ||
<sbb-title level="5">{{ icon.name }}</sbb-title> | ||
<p class="sbb-text-s tooltip-max-width"> | ||
{{ translations[page.lang].iconcategory }}: {{ icon.category }}<br> | ||
{% if mode == "Pictograms" %} | ||
{% else %} | ||
{{ translations[page.lang].icontags }}: {{ icon.tags }} | ||
{% endif %} | ||
</p> | ||
{% if mode == "KOM" %} | ||
<div class="icon-items"> | ||
{% for size in icon.sizes %} | ||
<div class="icon-item"> | ||
<div class="icon-preview"> | ||
<sbb-icon name="{{icon.group}}-{{size}}" alt="{{image.group}}-{{size}}"></sbb-icon> | ||
</div> | ||
<p class="sbb-text-s">{{size}}</p> | ||
{% if (icon.type == mode) %} | ||
<sbb-tooltip id="{{ icon.name }}-trigger" trigger="{{ icon.name }}" hover-trigger="true"> | ||
<div class="icon-content" id="{{ icon.name }}-content"> | ||
<sbb-title level="5">{{ icon.name }}</sbb-title> | ||
<p class="sbb-text-s tooltip-max-width"> | ||
{{ translations[page.lang].iconcategory }}: {{ icon.category }}<br> | ||
{% if mode == "Pictograms" %} | ||
{% else %} | ||
{{ translations[page.lang].icontags }}: {{ icon.tags }} | ||
{% endif %} | ||
</p> | ||
{% if mode == "KOM" %} | ||
<div class="icon-items"> | ||
{% for size in icon.sizes %} | ||
<div class="icon-item"> | ||
<div class="icon-preview"> | ||
<sbb-icon name="{{icon.group}}-{{size}}" alt="{{image.group}}-{{size}}"></sbb-icon> | ||
</div> | ||
{% endfor %} | ||
<p class="sbb-text-s">{{size}}</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</sbb-tooltip> | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</sbb-tooltip> | ||
{% endif %} | ||
{% endfor %} |