diff options
author | eug-vs <eug-vs@keemail.me> | 2021-07-05 00:18:34 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-07-05 00:18:34 +0300 |
commit | 3fe6701f6ac5dcf949467f0ac582ec67e52fe288 (patch) | |
tree | 1468ead932cefefc1845be04f2be0f35fb42db2f /compile_emoji_sedstring.sh | |
parent | 37813f9e21e810e1cc2c50913b00d1c0e49e9942 (diff) | |
download | eug-vs-xyz-3fe6701f6ac5dcf949467f0ac582ec67e52fe288.tar.gz |
feat: improve custom emoji accessibility
Diffstat (limited to 'compile_emoji_sedstring.sh')
-rwxr-xr-x | compile_emoji_sedstring.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compile_emoji_sedstring.sh b/compile_emoji_sedstring.sh index ef22247..2fb2f6d 100755 --- a/compile_emoji_sedstring.sh +++ b/compile_emoji_sedstring.sh @@ -1,7 +1,10 @@ #!/bin/sh +SIZE=24px +STYLE="margin-bottom: -4px;" + cd public/emoji; for EMOJI in *; do BASENAME=${EMOJI%.*} - echo "s|:${BASENAME}:|<img src=\\\"public/emoji/${EMOJI}\\\" height=\\\"24px\\\" style=\\\"margin-bottom: -4px\\\">|g; " + echo "s|:${BASENAME}:|<img src=\\\"public/emoji/${EMOJI}\\\" alt=\\\"${BASENAME}-icon\\\" height=\\\"${SIZE}\\\" width=\\\"${SIZE}\\\" style=\\\"${STYLE}\\\">|g; " done |