mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
Use Autoprefixer for CSS postprocessing
This commit is contained in:
parent
9f7814d384
commit
85a8c027fa
1
.browserslistrc
Normal file
1
.browserslistrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
cover 97%
|
@ -1,7 +1,23 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if ! [ -x "$(command -v sass)" ]; then
|
||||||
|
echo 'Error: sass is not installed.' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [ -x "$(command -v postcss)" ]; then
|
||||||
|
echo 'Error: postcss is not installed.' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [ -x "$(command -v autoprefixer)" ]; then
|
||||||
|
echo 'Error: autoprefixer is not installed.' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
FILES=(sass_processed/style.css sass_processed/content-description.css sass_processed/table.css sass_processed/ranks.css)
|
||||||
|
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
sass --update resources:sass_processed
|
sass -f --update resources:sass_processed
|
||||||
pleeease compile sass_processed/style.css -t resources/style.css
|
|
||||||
mv sass_processed/content-description.css resources/content-description.css
|
echo
|
||||||
mv sass_processed/table.css resources/table.css
|
postcss "${FILES[@]}" --verbose --use autoprefixer -d resources
|
||||||
mv sass_processed/ranks.css resources/ranks.css
|
|
||||||
|
Loading…
Reference in New Issue
Block a user