Skip to content

Commit 710e2b4

Browse files
Merge pull request #142 from Trivadis/feature/issue-139-serverity-icons
minimize use of new CSS features, ensure custom-properties are not used
2 parents 13e1a5d + 3072c41 commit 710e2b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/run-in-container/genpdf.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ function fix_unsupported_css() {
4848
sed -e 's|<style>:root.*</style>|<style>html,body,input{font-family:"Roboto"}code,kbd,pre{font-family:"Roboto Mono"}</style>|g' temp.html > index.html
4949
rm temp.html
5050

51-
OPTIONS='{"stage":false,"features":{"color-functional-notation":{"preserver":false}}}'
51+
# see https://preset-env.cssdb.org/features/#stage-0
52+
# all stages should work as long as custom-properties are converted
53+
OPTIONS='{"stage":0,"features":{"custom-properties":true}}'
5254
cp assets/stylesheets/main.1d29e8d0.min.css assets/stylesheets/main.1d29e8d0.min.ori.css
5355
csstools-cli postcss-preset-env assets/stylesheets/main.1d29e8d0.min.css --replace --plugin-options ${OPTIONS}
5456

0 commit comments

Comments
 (0)