From 54ad0b848ab53fb4d6496e870c30c138305428ca Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sun, 9 Jul 2017 19:50:49 +0200 Subject: [PATCH 1/3] Don't display the Symfony debug toolbar when printing the page --- .../Resources/views/Profiler/toolbar.css.twig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig index c148954f5a9c8..401dae2a2f1c5 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig @@ -527,3 +527,11 @@ padding: 5px 0; margin-right: 10px; } + +/***** Media query print: Do not print the Toolbar. *****/ +@media print { + .sf-toolbar, .sf-error-toolbar { + display: none; + visibility: hidden; + } +} From 346556a3de835e650c9588fe0bd9fa40d7f2d0d8 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 10 Jul 2017 09:22:36 +0200 Subject: [PATCH 2/3] Removed an unnecessary CSS style --- .../WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig index 401dae2a2f1c5..3f93bdf6b6292 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig @@ -532,6 +532,5 @@ @media print { .sf-toolbar, .sf-error-toolbar { display: none; - visibility: hidden; } } From eefa82148522ff5c045915afb31c6aae9e9aa97e Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 10 Jul 2017 11:40:23 +0200 Subject: [PATCH 3/3] Removed an unnecessary selector --- .../WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig index 3f93bdf6b6292..16a3310d77178 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig @@ -530,7 +530,7 @@ /***** Media query print: Do not print the Toolbar. *****/ @media print { - .sf-toolbar, .sf-error-toolbar { + .sf-toolbar { display: none; } }