From f85f186cea8130b4eb233a252bafb22118740e94 Mon Sep 17 00:00:00 2001 From: Eugene Morozov Date: Thu, 22 Jun 2017 07:09:26 +0300 Subject: [PATCH] Hide wagtail icon from printed page representation. --- CHANGELOG.txt | 1 + CONTRIBUTORS.rst | 1 + docs/releases/1.12.rst | 1 + .../static_src/wagtailadmin/scss/userbar.scss | 8 ++++++++ 4 files changed, 11 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 886b7a4a5f..76f14f7838 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -11,6 +11,7 @@ Changelog * Fix: Initial disabled state of InlinePanel add button is now set correctly on non-default tabs (Matthew Downey) * Fix: Redirects with unicode characters now work (Rich Brennan) * Fix: Prevent explorer view from crashing when page model definitions are missing, allowing the offending pages to be deleted (Matt Westcott) + * Fix: Hide the userbar from printed page representation (Eugene Morozov) 1.11.1 (07.07.2017) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 05f8d3fcf5..fefcfe55bf 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -245,6 +245,7 @@ Contributors * Rob van der Linde * Paul Kamp * dwasyl +* Eugene Morozov Translators =========== diff --git a/docs/releases/1.12.rst b/docs/releases/1.12.rst index 7f04f65509..0fea4b807f 100644 --- a/docs/releases/1.12.rst +++ b/docs/releases/1.12.rst @@ -31,6 +31,7 @@ Bug fixes * Initial disabled state of InlinePanel add button is now set correctly on non-default tabs (Matthew Downey) * Redirects with unicode characters now work (Rich Brennan) * Prevent explorer view from crashing when page model definitions are missing, allowing the offending pages to be deleted (Matt Westcott) + * Hide the userbar from printed page representation (Eugene Morozov) Upgrade considerations diff --git a/wagtail/wagtailadmin/static_src/wagtailadmin/scss/userbar.scss b/wagtail/wagtailadmin/static_src/wagtailadmin/scss/userbar.scss index 448293b11c..87d086e4c1 100644 --- a/wagtail/wagtailadmin/static_src/wagtailadmin/scss/userbar.scss +++ b/wagtail/wagtailadmin/static_src/wagtailadmin/scss/userbar.scss @@ -99,6 +99,14 @@ $positions: ( height: auto; } + +@media print { + .#{$namespace}-userbar { + display: none; + } +} + + .#{$namespace}-userbar-trigger { display: flex; align-items: center;