2022-06-01 00:04:32 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-06-10 19:43:13 +02:00
|
|
|
File=twemoji-amazing-local.css
|
|
|
|
|
2022-06-01 00:04:32 +02:00
|
|
|
mkdir -p Scripts.out/Twemoji
|
|
|
|
cd Scripts.out/Twemoji
|
|
|
|
|
|
|
|
# Get latest Twemoji SVGs
|
|
|
|
git clone --depth 1 "https://github.com/twitter/twemoji"
|
|
|
|
mv twemoji/assets/svg svg
|
|
|
|
rm -rf twemoji
|
|
|
|
|
|
|
|
# Get latest Twemoji-Amazing CSS
|
|
|
|
wget https://nightly.link/SebastianAigner/twemoji-amazing/workflows/build_css/master/artifact.zip
|
|
|
|
unzip artifact.zip
|
|
|
|
rm artifact.zip
|
2022-06-10 19:43:13 +02:00
|
|
|
mv twemoji-amazing.css $File
|
2022-06-01 00:04:32 +02:00
|
|
|
|
|
|
|
# Replace spaces with tabs, save space
|
2022-06-10 19:43:13 +02:00
|
|
|
sed -i 's/ / /' $File
|
2022-06-01 00:04:32 +02:00
|
|
|
# Blank out CDN URL
|
2022-06-10 19:43:13 +02:00
|
|
|
sed -i 's/https:\/\/twemoji.maxcdn.com\/v\/latest\///' $File
|
2022-06-01 00:04:32 +02:00
|
|
|
|
|
|
|
# Personal CSS patches
|
2022-06-10 19:43:13 +02:00
|
|
|
cat >> $File << [EOF]
|
2022-06-01 00:04:32 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
Personal CSS patches from
|
2022-06-10 19:43:13 +02:00
|
|
|
https://gitlab.com/octtspacc/sitoctt
|
2022-06-01 00:04:32 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
.twa span {
|
2022-06-10 19:43:13 +02:00
|
|
|
/* Prevents image and text emoji overlap */
|
|
|
|
font-size: 0px;
|
2022-06-01 00:04:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[EOF]
|