mirror of https://gitlab.com/octtspacc/sitoctt
Script per emoji locali
This commit is contained in:
parent
75e84d9a8f
commit
7b28b3fb2c
|
@ -1,2 +1,3 @@
|
||||||
public/*
|
public/*
|
||||||
|
Scripts.out/*
|
||||||
tmp.*
|
tmp.*
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
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
|
||||||
|
mv twemoji-amazing.css twemoji-amazing-local.css
|
||||||
|
|
||||||
|
# Replace spaces with tabs, save space
|
||||||
|
sed -i 's/ / /' twemoji-amazing-local.css
|
||||||
|
# Blank out CDN URL
|
||||||
|
sed -i 's/https:\/\/twemoji.maxcdn.com\/v\/latest\///' twemoji-amazing-local.css
|
||||||
|
|
||||||
|
# Personal CSS patches
|
||||||
|
cat >> twemoji-amazing-local.css << [EOF]
|
||||||
|
|
||||||
|
/*
|
||||||
|
Personal CSS patches from
|
||||||
|
https://gitlab.com/octtspacc/postoctt
|
||||||
|
*/
|
||||||
|
|
||||||
|
.twa span {
|
||||||
|
/* Prevents image and text emoji overlap */
|
||||||
|
font-size: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
[EOF]
|
||||||
|
|
||||||
|
#wget -O "twemoji-amazing-local.css" "https://octtspacc.gitlab.io/sitoctt-assets/twemoji-amazing.css"
|
||||||
|
#sed -i 's/https:\/\/twemoji.maxcdn.com\/v\/latest\///' twemoji-amazing-local.css
|
||||||
|
|
||||||
|
#From="https://twemoji.maxcdn.com/v/latest/svg"
|
||||||
|
#for i in $(grep " background-image: url(" "twemoji-amazing-local.css" | cut -c30- | cut -c${#From}- | rev | cut -c3- | rev)
|
||||||
|
#do
|
||||||
|
# wget -O "$i" "$From/$i"
|
||||||
|
#done
|
Loading…
Reference in New Issue