From 60df471f10e3b532ac985da1a31f88b2125a2cc1 Mon Sep 17 00:00:00 2001 From: damonsson Date: Sat, 23 Nov 2024 04:03:38 +0100 Subject: [PATCH 1/2] replace font by Arial to save 800kb, fix contrast problem --- config/packages/sylius_twig_hooks.yaml | 7 +- templates/css_override.html.twig | 1 + templates/info_box.html.twig | 141 ------------------------- 3 files changed, 7 insertions(+), 142 deletions(-) create mode 100644 templates/css_override.html.twig diff --git a/config/packages/sylius_twig_hooks.yaml b/config/packages/sylius_twig_hooks.yaml index c0166e4..ff68e40 100644 --- a/config/packages/sylius_twig_hooks.yaml +++ b/config/packages/sylius_twig_hooks.yaml @@ -21,10 +21,15 @@ sylius_twig_hooks: priority: 100 'sylius_shop.base#javascripts': - analytics: + info_box: template: "analytics.html.twig" priority: 100 + 'sylius_shop.base#stylesheets': + override: + template: "css_override.html.twig" + priority: 100 + 'sylius_shop.account.login.content.login_container': analytics: template: "shop_demo_credentials.html.twig" diff --git a/templates/css_override.html.twig b/templates/css_override.html.twig new file mode 100644 index 0000000..b161d01 --- /dev/null +++ b/templates/css_override.html.twig @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/info_box.html.twig b/templates/info_box.html.twig index 326e67c..0e5400f 100644 --- a/templates/info_box.html.twig +++ b/templates/info_box.html.twig @@ -1,147 +1,6 @@ {% set admin_url = 'https://v2.demo.sylius.com/admin' %} {% set api_url = 'https://v2.demo.sylius.com/api/v2' %} - -
From 4ef91d81f9f4932295d8438a5a903305d9f48ecb Mon Sep 17 00:00:00 2001 From: damonsson Date: Sat, 23 Nov 2024 04:04:30 +0100 Subject: [PATCH 2/2] replace font by Arial to save 800kb, fix contrast problem --- config/packages/sylius_twig_hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/packages/sylius_twig_hooks.yaml b/config/packages/sylius_twig_hooks.yaml index ff68e40..5ec5f11 100644 --- a/config/packages/sylius_twig_hooks.yaml +++ b/config/packages/sylius_twig_hooks.yaml @@ -21,7 +21,7 @@ sylius_twig_hooks: priority: 100 'sylius_shop.base#javascripts': - info_box: + analytics: template: "analytics.html.twig" priority: 100