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

11 wiersze
446 B
Bash
Executable File

#!/usr/bin/env -S bash -eux
cd "$(dirname $0)/.." # change into base directory
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