]>
Commit | Line | Data |
---|---|---|
a7cf03c1 | 1 | <script lang="ts"> |
58f7d521 | 2 | import { _ } from 'svelte-i18n'; |
a7cf03c1 | 3 | import { getGlyphHash } from '$lib/utils/glyph_hash'; |
66dc4cae | 4 | |
a7cf03c1 | 5 | export let uuid: string; |
66dc4cae BB |
6 | </script> |
7 | ||
852ee620 | 8 | <div class="inline-block w-12 h-12 mt-1 bg-white border border-black border-solid p-0.5 box-content glyphicon" role="img" aria-label={$_('glyph.title')} title={$_('glyph.title')}> |
58f7d521 | 9 | {#each getGlyphHash(uuid) as fragment} |
852ee620 | 10 | <span class="block text-2xl float-left w-6 h-6 text-center leading-6 {fragment.glyph}" style="color: {fragment.color} "> |
58f7d521 RBR |
11 | {fragment.glyph} |
12 | </span> | |
13 | {/each} | |
66dc4cae BB |
14 | </div> |
15 | ||
16 | <style> | |
58f7d521 RBR |
17 | .glyphicon { |
18 | border: 1px solid black; | |
58f7d521 | 19 | } |
66dc4cae | 20 | |
58f7d521 RBR |
21 | .☽ { |
22 | font-size: 2rem; | |
23 | line-height: 19px; | |
24 | } | |
66dc4cae | 25 | </style> |