From d897c8d1d3629811b8683613494555013c27a254 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Thu, 20 Jul 2017 14:58:01 -0700 Subject: [PATCH] Print styles: footer Tones down license information and makes last updated primary information in printed view Additional changes: * variables now inherits from mediawiki.ui Bug: T169823 Change-Id: Ie678967a27baec8715cf86b6a0f7e7651f867be1 --- print.less | 39 +++++++++++++++++++++++++++++++++++++++ variables.less | 2 ++ 2 files changed, 41 insertions(+) diff --git a/print.less b/print.less index 1587085..0d31971 100644 --- a/print.less +++ b/print.less @@ -1,4 +1,5 @@ @import 'variables.less'; +@footerColor: #eee; @media print { @@ -160,4 +161,42 @@ } } } + + .printfooter { + margin-top: 10px; + border-top: 3px solid @pureBlack; + padding-top: 10px; + font-size: 10pt; + } + + #footer { + margin-top: 12px; + border-top: 1px solid @footerColor; + padding-top: 5px; + } + + #footer-info { + margin: 0; + padding: 0; + + li { + color: @colorGray9; + list-style: none; + display: block; + padding-bottom: 10px; + font-size: 10pt; + + a { + // override default black print style. + color: @colorGray9 !important; /* stylelint-disable-line declaration-no-important */ + } + } + } + + // Last updated as primary info. + #footer-info-lastmod { + color: @pureBlack; + font-size: 12pt; + font-weight: bold; + } } diff --git a/variables.less b/variables.less index 70e9575..8b40cb8 100755 --- a/variables.less +++ b/variables.less @@ -1,3 +1,5 @@ +@import 'mediawiki.ui/variables'; + @html-font-size: 100%; @font-family-serif: 'Linux Libertine', 'Georgia', 'Times', serif;