funkwhale/front/scripts/fix-fomantic-css.sh

13 wiersze
572 B
Bash
Czysty Zwykły widok Historia

2021-04-07 07:18:17 +00:00
#!/usr/bin/env -S bash -eux
cd "$(dirname $0)/.." # change into base directory
2020-05-15 12:12:36 +00:00
find node_modules/fomantic-ui-css/components -name "*.min.css" -delete
mkdir -p node_modules/fomantic-ui-css/tweaked
echo 'Removing google font…'
sed -i '/@import url(/d' node_modules/fomantic-ui-css/components/site.css
echo "Replacing hardcoded values by CSS vars…"
scripts/fix-fomantic-css.py node_modules/fomantic-ui-css node_modules/fomantic-ui-css/tweaked
2022-07-20 18:49:11 +00:00
echo 'Fixing jQuery import…'
2022-11-18 21:12:21 +00:00
sed -i '1s/^/import jQuery from "jquery"\n/' `find node_modules/fomantic-ui-css/ -name '*.js'`