2020-03-12 16:49:44 +00:00
|
|
|
@media print {
|
|
|
|
@wmui-color-base0: #000;
|
2019-09-26 20:46:01 +00:00
|
|
|
|
2020-03-12 16:49:44 +00:00
|
|
|
@color-base: @wmui-color-base0;
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2020-03-12 16:49:44 +00:00
|
|
|
@border-color-base: @wmui-color-base0;
|
|
|
|
@border-color-footer: #eee;
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2020-05-14 20:54:15 +00:00
|
|
|
/* These styles retain the existing typography in skin.less
|
2017-07-25 21:41:00 +00:00
|
|
|
In future (when deploying these styles) we may want to refactor skins.vector.styles
|
|
|
|
to apply certain styles in print as well as screen mode. */
|
2018-03-18 05:25:30 +00:00
|
|
|
.toc,
|
2017-11-02 18:04:58 +00:00
|
|
|
body {
|
2017-07-24 23:46:46 +00:00
|
|
|
padding: 10px;
|
2017-07-25 21:41:00 +00:00
|
|
|
font-family: @font-family-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tables, thumbs and lists are sans-serif in print mode (unlike screen mode) because these will render
|
|
|
|
// more legibly on print media in a smaller font sizes
|
2018-12-02 22:40:28 +00:00
|
|
|
.printfooter,
|
2020-04-23 22:16:28 +00:00
|
|
|
.mw-footer,
|
2017-07-25 21:41:00 +00:00
|
|
|
.thumb,
|
|
|
|
table,
|
|
|
|
ol,
|
|
|
|
dl,
|
|
|
|
ul,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2019-09-26 22:48:15 +00:00
|
|
|
font-family: @font-family-sans;
|
2017-07-24 23:46:46 +00:00
|
|
|
}
|
|
|
|
|
2018-01-16 16:00:06 +00:00
|
|
|
// Images, such as formulas, render best in serif. Math fallback images, for example, have an
|
|
|
|
// inline style attribute setting their dimensions in ex (x-height) units, which is relative the
|
|
|
|
// font size:
|
|
|
|
// <img
|
|
|
|
// src="https://wikimedia.org/api/rest_v1/media/math/render/svg/d03b01348b751e6f4eaff085b3effa9542e2935d"
|
|
|
|
// class="mwe-math-fallback-image-inline"
|
|
|
|
// aria-hidden="true"
|
2018-12-02 22:40:28 +00:00
|
|
|
// style="vertical-align: -2.171ex; width: 11.418ex; height: 5.676ex;"
|
2018-01-16 16:00:06 +00:00
|
|
|
// alt="r_{s}={\frac {2GM}{c^{2}}}">
|
2018-01-11 22:25:01 +00:00
|
|
|
img {
|
|
|
|
font-family: @font-family-serif;
|
|
|
|
}
|
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
// Normalize Blue links in the article
|
2019-12-14 00:43:42 +00:00
|
|
|
a:not( .image ) {
|
2017-11-02 18:04:58 +00:00
|
|
|
border-bottom: 1px solid #aaa;
|
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
.firstHeading {
|
|
|
|
font-size: 25pt;
|
|
|
|
line-height: 28pt;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
padding-bottom: 5px;
|
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
// Headings
|
|
|
|
.firstHeading,
|
|
|
|
h2 {
|
|
|
|
// To avoid the bottom border of section headings with floated elements
|
|
|
|
overflow: hidden;
|
2019-09-26 20:46:01 +00:00
|
|
|
border-bottom: 2px solid @border-color-base;
|
2017-11-02 18:04:58 +00:00
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
margin: 30px 0 0;
|
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
padding: 0;
|
|
|
|
position: relative;
|
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
h2 {
|
|
|
|
font-size: 18pt;
|
|
|
|
line-height: 24pt;
|
|
|
|
margin-bottom: 0.25em;
|
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
h3 {
|
2019-11-18 22:22:03 +00:00
|
|
|
font-size: 14pt;
|
2017-11-02 18:04:58 +00:00
|
|
|
line-height: 20pt;
|
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2019-11-08 22:20:36 +00:00
|
|
|
font-size: 12pt;
|
|
|
|
line-height: 16pt;
|
2017-11-02 18:04:58 +00:00
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
p {
|
2019-11-08 22:20:36 +00:00
|
|
|
font-size: 12pt;
|
2017-11-02 18:04:58 +00:00
|
|
|
line-height: 16pt;
|
|
|
|
margin-top: 5px;
|
|
|
|
text-align: justify;
|
|
|
|
|
|
|
|
// T175008
|
|
|
|
// When a paragraph is surrounded by floating elements from both
|
|
|
|
// sides, we want to make sure that there is at least some space
|
|
|
|
// before showing the text. Otherwise, small lengths of text may show
|
|
|
|
// between the surrounding elements, making the reading experience less
|
|
|
|
// enjoyable. If there is not enough space the following code will push
|
|
|
|
// the paragraph contents until after the floating element(s).
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
2019-09-26 20:46:01 +00:00
|
|
|
width: 120pt;
|
2017-11-02 18:04:58 +00:00
|
|
|
overflow: hidden;
|
2017-07-18 23:19:50 +00:00
|
|
|
}
|
2017-11-02 18:04:58 +00:00
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
blockquote {
|
2019-09-26 20:46:01 +00:00
|
|
|
border-left: 2px solid @border-color-base;
|
2017-11-02 18:04:58 +00:00
|
|
|
padding-left: 20px;
|
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
ol,
|
|
|
|
ul {
|
|
|
|
margin: 10px 0 0 1.6em;
|
|
|
|
padding: 0;
|
2017-07-18 23:19:50 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
li {
|
|
|
|
padding: 2px 0;
|
2019-11-08 22:20:36 +00:00
|
|
|
font-size: 12pt;
|
2017-12-15 11:53:09 +00:00
|
|
|
|
|
|
|
// T178667: Inline lists in new print styles should not
|
|
|
|
// have a smaller font size than surrounding content
|
|
|
|
table & {
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
}
|
2017-11-02 18:04:58 +00:00
|
|
|
}
|
2017-07-20 19:23:52 +00:00
|
|
|
|
2018-03-18 05:25:30 +00:00
|
|
|
.toc {
|
2017-11-02 18:04:58 +00:00
|
|
|
page-break-before: avoid;
|
|
|
|
page-break-after: avoid;
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
display: table;
|
2017-07-20 19:23:52 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
a {
|
|
|
|
border: 0;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2017-07-20 19:23:52 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
> ul {
|
|
|
|
> li {
|
|
|
|
margin-bottom: 4px;
|
|
|
|
font-weight: bold;
|
2017-07-20 19:23:52 +00:00
|
|
|
}
|
2017-11-02 18:04:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
2017-07-20 19:23:52 +00:00
|
|
|
|
|
|
|
ul {
|
2017-11-02 18:04:58 +00:00
|
|
|
padding-left: 30px;
|
2017-07-20 19:23:52 +00:00
|
|
|
}
|
2017-11-02 18:04:58 +00:00
|
|
|
}
|
2017-07-20 19:23:52 +00:00
|
|
|
|
2017-11-02 18:04:58 +00:00
|
|
|
li.toclevel-1 {
|
|
|
|
> a {
|
2019-11-08 22:20:36 +00:00
|
|
|
font-size: 12pt;
|
2017-11-02 18:04:58 +00:00
|
|
|
font-weight: bold;
|
2017-07-20 19:23:52 +00:00
|
|
|
}
|
|
|
|
}
|
Re-implement and improve mw-jump links with pure CSS
* Improve their accessibility by giving both links
a full label "Jump to x" and "Jump to y" instead
of "Jump to: ", "x", "y".
This also makes things much better for localisation, for which
we generally discourage use of concatenation.
* Use pure CSS for the toggling of the visibility on focus,
instead of relying on JavaScript. Especially given the
JS comes form core's 'jquery.mw-jump' module, which is
considered technical debt per T195256. Alternatively,
that could be copied to vector.js, but pure CSS
is possible, so why not.
* Use plain <a> links in the HTML instead of wrapped in a <div>.
This solves the long-standing problem whereby the margin
between #contentSub and #mw-content-text had to be awkwardly
negated and overridden in core and on various to make sure that
the wrapper itself would become visible as needed, in a way that
has margin around this. This whole problem doesn't apply when
simply using inline links that aren't part of the regular flow
with .mixin-screen-reader-text. On focus, the individually
focussed link appears in regular flow, without the need for
any custom styles.
* This uses :not(:focus) to naturally make it render in the default
way on focus, and visibibly hidden/clipped otherwise.
This is supported in IE9+ and Android 2+.
There is a way to make it work with CSS2 for IE7-8, by applying
the mixin to '.mw-jump-link' only and then undoing all of
'position', 'width', 'height', 'clip', and 'margin' on :focus.
But I'm not sure that's worth it here. The fallback in IE7-8
for not supporting ":not(:focus)" is that the accessibility
link is simply visible always, which seems like a good fallback
for accessibility, and doesn't hurt anything.
Bug: T195256
Change-Id: Icaadb290f692b3617688d32cbb66dfb007f1c82c
2018-05-21 16:28:07 +00:00
|
|
|
}
|
2017-11-02 18:04:58 +00:00
|
|
|
|
Re-implement and improve mw-jump links with pure CSS
* Improve their accessibility by giving both links
a full label "Jump to x" and "Jump to y" instead
of "Jump to: ", "x", "y".
This also makes things much better for localisation, for which
we generally discourage use of concatenation.
* Use pure CSS for the toggling of the visibility on focus,
instead of relying on JavaScript. Especially given the
JS comes form core's 'jquery.mw-jump' module, which is
considered technical debt per T195256. Alternatively,
that could be copied to vector.js, but pure CSS
is possible, so why not.
* Use plain <a> links in the HTML instead of wrapped in a <div>.
This solves the long-standing problem whereby the margin
between #contentSub and #mw-content-text had to be awkwardly
negated and overridden in core and on various to make sure that
the wrapper itself would become visible as needed, in a way that
has margin around this. This whole problem doesn't apply when
simply using inline links that aren't part of the regular flow
with .mixin-screen-reader-text. On focus, the individually
focussed link appears in regular flow, without the need for
any custom styles.
* This uses :not(:focus) to naturally make it render in the default
way on focus, and visibibly hidden/clipped otherwise.
This is supported in IE9+ and Android 2+.
There is a way to make it work with CSS2 for IE7-8, by applying
the mixin to '.mw-jump-link' only and then undoing all of
'position', 'width', 'height', 'clip', and 'margin' on :focus.
But I'm not sure that's worth it here. The fallback in IE7-8
for not supporting ":not(:focus)" is that the accessibility
link is simply visible always, which seems like a good fallback
for accessibility, and doesn't hurt anything.
Bug: T195256
Change-Id: Icaadb290f692b3617688d32cbb66dfb007f1c82c
2018-05-21 16:28:07 +00:00
|
|
|
.mw-jump-link,
|
|
|
|
.toc .tocnumber {
|
|
|
|
display: none;
|
2017-07-18 23:19:50 +00:00
|
|
|
}
|
2017-07-20 21:58:01 +00:00
|
|
|
|
|
|
|
.printfooter {
|
|
|
|
margin-top: 10px;
|
2019-09-26 20:46:01 +00:00
|
|
|
border-top: 3px solid @border-color-base;
|
2017-07-20 21:58:01 +00:00
|
|
|
padding-top: 10px;
|
|
|
|
font-size: 10pt;
|
2017-10-20 20:21:58 +00:00
|
|
|
clear: both;
|
2017-07-20 21:58:01 +00:00
|
|
|
}
|
|
|
|
|
2020-04-23 22:16:28 +00:00
|
|
|
.mw-footer {
|
2017-07-20 21:58:01 +00:00
|
|
|
margin-top: 12px;
|
2019-09-26 20:46:01 +00:00
|
|
|
border-top: 1px solid @border-color-footer;
|
2017-07-20 21:58:01 +00:00
|
|
|
padding-top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#footer-info {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
li {
|
2017-08-10 17:26:02 +00:00
|
|
|
color: #999;
|
2017-07-20 21:58:01 +00:00
|
|
|
list-style: none;
|
|
|
|
display: block;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
font-size: 10pt;
|
|
|
|
|
|
|
|
a {
|
|
|
|
// override default black print style.
|
2017-08-10 17:26:02 +00:00
|
|
|
color: #999 !important; /* stylelint-disable-line declaration-no-important */
|
2017-07-20 21:58:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Last updated as primary info.
|
|
|
|
#footer-info-lastmod {
|
2019-09-26 20:46:01 +00:00
|
|
|
color: @color-base;
|
2017-07-20 21:58:01 +00:00
|
|
|
font-size: 12pt;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2017-07-18 23:19:50 +00:00
|
|
|
}
|