From 32b7602e04b3c72e0f303f0fb0864e3c730350e1 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sat, 15 Aug 2020 11:15:26 +0200 Subject: [PATCH] Print: Hide accessibility jump links and cookie statement Hide the accessibility jump navigation links when printing Also only show the last modified and copyright footer info and hide all the footer 'places' links by default. Bug: T250232 Bug: T136786 Change-Id: I039b523d009ddb4f5948dff456ef2845a93439fa --- resources/print-common.less | 13 +++++++++++++ skin.json | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 resources/print-common.less diff --git a/resources/print-common.less b/resources/print-common.less new file mode 100644 index 0000000..75693c6 --- /dev/null +++ b/resources/print-common.less @@ -0,0 +1,13 @@ +.mw-jump-link { + display: none; +} + +#f-list > li { + display: none; +} + +#f-list > #copyright, +#f-list > #credits, +#f-list > #lastmod { + display: block; +} diff --git a/skin.json b/skin.json index 492e8cb..1d29e1d 100644 --- a/skin.json +++ b/skin.json @@ -48,6 +48,9 @@ }, "resources/screen-desktop.css": { "media": "screen" + }, + "resources/print-common.less": { + "media": "print" } } }, @@ -74,6 +77,9 @@ }, "resources/screen-mobile.less": { "media": "screen and (max-width: 550px)" + }, + "resources/print-common.less": { + "media": "print" } } },