Make emojis in docs larger

pull/699/head
binwiederhier 2023-04-06 21:51:25 -04:00
parent 35ad4a0c03
commit ea538338cf
3 changed files with 1832 additions and 1822 deletions

File diff suppressed because it is too large Load Diff

View File

@ -71,7 +71,17 @@ figure video {
} }
.remove-md-box td { .remove-md-box td {
padding: 0 10px padding: 0 10px;
}
.emoji-table td {
vertical-align: middle !important;
}
.emoji-table .e {
font-size: 2.5em;
padding: 0 2px !important;
text-align: center !important;
} }
/* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */ /* Lightbox; thanks to https://yossiabramov.com/blog/vanilla-js-lightbox */

View File

@ -29,7 +29,7 @@ You can [tag messages](../publish/#tags-emojis) with emojis 🥳 🎉 and other
converted to emojis. This is a reference of all supported emojis. To learn more about the feature, please refer to the converted to emojis. This is a reference of all supported emojis. To learn more about the feature, please refer to the
[tagging and emojis page](../publish/#tags-emojis). [tagging and emojis page](../publish/#tags-emojis).
<table class="remove-md-box"><tr> <table class=\"remove-md-box emoji-table\"><tr>
" > "$1" " > "$1"
count="$(cat "$SCRIPTDIR/emoji.json" | jq -r '.[] | .emoji' | wc -l)" count="$(cat "$SCRIPTDIR/emoji.json" | jq -r '.[] | .emoji' | wc -l)"
@ -37,9 +37,9 @@ converted to emojis. This is a reference of all supported emojis. To learn more
for col in 0 1 2; do for col in 0 1 2; do
from="$(($col * $percolumn + 1))" from="$(($col * $percolumn + 1))"
to="$(($col * $percolumn + 1 + $percolumn))" to="$(($col * $percolumn + 1 + $percolumn))"
echo "<td><table><thead><tr><th>Tag</th><th>Emoji</th></tr></thead><tbody>" >> "$1" echo "<td><table><thead><tr><th>Tag</th><th style='text-align: center'>Emoji</th></tr></thead><tbody>" >> "$1"
cat "$SCRIPTDIR/emoji.json" \ cat "$SCRIPTDIR/emoji.json" \
| jq -r '.[] | "<tr><td><code>" + .aliases[0] + "</code></td><td>" + .emoji + "</td></tr>"' \ | jq -r '.[] | "<tr><td class=c><code>" + .aliases[0] + "</code></td><td class=e>" + .emoji + "</td></tr>"' \
| sed -n "${from},${to}p" >> "$1" | sed -n "${from},${to}p" >> "$1"
echo "</tbody></table></td>" >> "$1" echo "</tbody></table></td>" >> "$1"
done done