|
1 |
| -<ul class="DO-NOT-COPY-THIS-CLASS-example-icon-list icons functional"> |
| 1 | +{{#unless icons}}<p>Please keep in mind that it's optional to set the variant combination of size ({{ icon-size }}) and style ({{ icon-style }}) as these are defined as default.<br>In case that you'll need another default in your project, you could overwrite the defaults by overwriting the <code>$icon-size</code> and <code>$icon-style</code> SCSS variables.</p>{{/unless }} |
| 2 | +<ol class="DO-NOT-COPY-THIS-CLASS-example-icon-list icons functional"> |
2 | 3 | {{#each icons }}<li>
|
3 |
| - <ul> |
4 |
| - {{#each @root.example-bgs }} |
5 |
| - <li class="DO-NOT-COPY-THIS-CLASS-example-bg-variants-{{ variant }}"> |
6 |
| - <ul> |
7 |
| - {{#each ../variants }} |
8 |
| - {{#if_eq @root.category "transportation"}} |
9 |
| - <li> |
10 |
| - <svg xmlns="http://www.w3.org/2000/svg" width="{{ size }}" height="{{ size }}" aria-hidden="true"> |
11 |
| - <use href="../../icons/functional/images/{{ @root.category }}/{{#if style}}{{style}}{{else}}regular{{/if }}/db_ic_{{ ../../icon }}{{#if style }}_{{ style }}{{/if }}_{{ size }}.svg#icon"></use> |
12 |
| - </svg> |
13 |
| - </li> |
14 |
| - {{else}} |
15 |
| - <li> |
16 |
| - <svg xmlns="http://www.w3.org/2000/svg" width="{{ size }}" height="{{ size }}" aria-hidden="true"> |
17 |
| - <use href="../../icons/functional/images/{{ @root.category }}/db_ic_{{ ../../icon }}{{#if style }}_{{ style }}{{/if }}_{{ size }}.svg#icon"></use> |
18 |
| - </svg> |
19 |
| - </li> |
20 |
| - {{/if_eq}} |
21 |
| - {{/each }} |
22 |
| - </ul> |
23 |
| - </li> |
24 |
| - {{/each }} |
25 |
| - </ul> |
| 4 | + <details> |
| 5 | + <summary> |
| 6 | + <figure> |
| 7 | + {{#if_eq @root.category "transportation"}} |
| 8 | + <svg xmlns="http://www.w3.org/2000/svg" width="{{ @root.icon-size }}" height="{{ @root.icon-size }}" aria-hidden="true"> |
| 9 | + <use href="../../icons/functional/images/{{ @root.category }}/{{#if style}}{{style}}{{else}}regular{{/if }}/db_ic_{{ icon }}{{#if style }}_{{ style }}{{/if }}_20.svg#icon"></use> |
| 10 | + </svg> |
| 11 | + {{else}} |
| 12 | + <svg xmlns="http://www.w3.org/2000/svg" width="{{ @root.icon-size }}" height="{{ @root.icon-size }}" aria-hidden="true"> |
| 13 | + <use href="../../icons/functional/images/{{ @root.category }}/db_ic_{{ icon }}{{#if style }}_{{ style }}{{/if }}_20.svg#icon"></use> |
| 14 | + </svg> |
| 15 | + {{/if_eq}} |
| 16 | + <figcaption>{{ icon }}{{#if style }}_{{ style }}{{/if }}</figcaption> |
| 17 | + </figure> |
| 18 | + </summary> |
| 19 | + <aside> |
| 20 | + <ol> |
| 21 | + {{#each @root.example-bgs }} |
| 22 | + <li class="DO-NOT-COPY-THIS-CLASS-example-bg-variants-{{ variant }}"> |
| 23 | + <ol> |
| 24 | + {{#each ../variants }} |
| 25 | + {{#if_eq @root.category "transportation"}} |
| 26 | + <li> |
| 27 | + <svg xmlns="http://www.w3.org/2000/svg" width="{{ size }}" height="{{ size }}" aria-hidden="true"> |
| 28 | + <use href="../../icons/functional/images/{{ @root.category }}/{{#if style}}{{style}}{{else}}regular{{/if }}/db_ic_{{ ../../icon }}{{#if style }}_{{ style }}{{/if }}_{{ size }}.svg#icon"></use> |
| 29 | + </svg> |
| 30 | + </li> |
| 31 | + {{else}} |
| 32 | + <li> |
| 33 | + <svg xmlns="http://www.w3.org/2000/svg" width="{{ size }}" height="{{ size }}" aria-hidden="true"> |
| 34 | + <use href="../../icons/functional/images/{{ @root.category }}/db_ic_{{ ../../icon }}{{#if style }}_{{ style }}{{/if }}_{{ size }}.svg#icon"></use> |
| 35 | + </svg> |
| 36 | + </li> |
| 37 | + {{/if_eq}} |
| 38 | + {{/each }} |
| 39 | + </ol> |
| 40 | + </li> |
| 41 | + {{/each }} |
| 42 | + </ol> |
| 43 | + <ul> |
| 44 | + <li>SCSS: <code>@include icon(glyph({{ icon }}))</code></li> |
| 45 | + <li>HTML: <code>data-icon="{{ icon }}"</code></li> |
| 46 | + </ul> |
| 47 | + </aside> |
26 | 48 | </li>{{/each }}
|
27 |
| -</ul> |
| 49 | +</ol> |
0 commit comments