diff --git a/themes/OpenFisca-2022/assets/css/print.css b/themes/OpenFisca-2022/assets/css/print.css new file mode 100644 index 00000000..83736f50 --- /dev/null +++ b/themes/OpenFisca-2022/assets/css/print.css @@ -0,0 +1,22 @@ +header, +footer { + display: none !important; +} + +a { + color: inherit !important; +} + +.hero-isDark .hero_content, +.hero-isDark .hero_content * { + background-color: transparent !important; + color: black !important; +} + +.banner { + display: none !important; +} + +.card { + border-color: black !important; +} diff --git a/themes/OpenFisca-2022/layouts/partials/head.html b/themes/OpenFisca-2022/layouts/partials/head.html index cbc79472..fed28b67 100644 --- a/themes/OpenFisca-2022/layouts/partials/head.html +++ b/themes/OpenFisca-2022/layouts/partials/head.html @@ -4,8 +4,11 @@ {{ $styles := resources.Get "css/loader.css" | toCSS | postCSS (dict "config" "./assets/css/postcss.config.cjs" "inlineImports" true) }} - {{ if hugo.IsProduction }}{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}{{ end }} - + {{ if hugo.IsProduction }}{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}{{ end }} + + {{ $printStyles := resources.Get "css/print.css" | toCSS | postCSS (dict "config" "./assets/css/postcss.config.cjs" "inlineImports" true) }} + {{ if hugo.IsProduction }}{{ $printStyles = $printStyles | minify | fingerprint | resources.PostProcess }}{{ end }} +