From f897612a7e4afbbc79d59ea92653cb9b4249ed42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heiko=20G=C3=B6b?= Date: Wed, 13 Oct 2021 09:52:34 +0200 Subject: [PATCH] nr 6. anpassen der css fuer pdfs --- src/Resources/theme.json | 4 ++-- .../documents/style_base_portrait.css.twig | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 src/Resources/views/documents/style_base_portrait.css.twig diff --git a/src/Resources/theme.json b/src/Resources/theme.json index 82c4aa7..532dd5c 100644 --- a/src/Resources/theme.json +++ b/src/Resources/theme.json @@ -19,8 +19,8 @@ "@Plugins" ], "asset": [ - "@Storefront", - "app/storefront/src/assets" + "@Storefront", + "app/storefront/src/assets" ], "config": { "tabs": { diff --git a/src/Resources/views/documents/style_base_portrait.css.twig b/src/Resources/views/documents/style_base_portrait.css.twig new file mode 100644 index 0000000..f846325 --- /dev/null +++ b/src/Resources/views/documents/style_base_portrait.css.twig @@ -0,0 +1,22 @@ + +{% sw_extends '@Framework/documents/style_base_portrait.css.twig' %} + {% block document_style %} + {{ parent() }} + + + .logo { + width: 40% !important; + max-width:11cm; + max-height: 2cm; + border: 2px solid red; + } + + body { + font-family: 'Source Sans Pro', sans-serif; + font-size: 32px!important; + line-height: 12px; + width: 100%; + } + + {% endblock %} +