1 @import 'variables.less';
4 // We have to render the wordmark image before the print dialog is invoked, otherwise the image
5 // won't render in the printed file. Use a little hack to render the image outside the viewport
6 // and bring it in the viewport in print view.
7 .vector-experimental-print-styles {
9 // We could also use a CSS background to display the logo.
10 // The problem is that the logo won't be printed unless the user prints the background too.
11 // Note. This specification does not fully define the interaction of :before and :after with
12 // replaced elements (such as IMG in HTML). This will be defined in more detail in a future
13 // specification. See https://www.w3.org/TR/CSS2/generate.html#before-after-content
14 & when( @printLogo = 1 ) {
16 content: @printLogoUrl;
18 height: ~'@{printLogoHeight}px';
20 line-height: 0; // line-height is needed for correctly displaying the size of the content box.
23 width: ~'@{printLogoWidth}px';
31 /* These styles retain the existing typography in screen.less
32 In future (when deploying these styles) we may want to refactor skins.vector.styles
33 to apply certain styles in print as well as screen mode. */
35 body.vector-experimental-print-styles {
37 font-family: @font-family-serif;
42 // Tables, thumbs and lists are sans-serif in print mode (unlike screen mode) because these will render
43 // more legibly on print media in a smaller font sizes
53 font-family: @font-family-sans-serif;
56 .vector-experimental-print-styles {
58 // Normalize Blue links in the article
60 border-bottom: 1px solid #aaa;
69 // Bring back the wordmark to the viewport (see above how it's rendered outside the viewport).
70 & when( @printLogo = 1 ) {
81 // To avoid the bottom border of section headings with floated elements
83 border-bottom: 2px solid @pureBlack;
105 margin-bottom: 0.25em;
127 // When a paragraph is surrounded by floating elements from both
128 // sides, we want to make sure that there is at least some space
129 // before showing the text. Otherwise, small lengths of text may show
130 // between the surrounding elements, making the reading experience less
131 // enjoyable. If there is not enough space the following code will push
132 // the paragraph contents until after the floating element(s).
133 @paragraphMinWidth: 120pt;
138 width: @paragraphMinWidth;
143 border-left: 2px solid @pureBlack;
149 margin: 10px 0 0 1.6em;
158 // Using #toc rather than .toc to override default print style
160 page-break-before: avoid;
161 page-break-after: avoid;
210 display: inline-block;
217 border-top: 3px solid @pureBlack;
224 border-top: 1px solid @footerColor;
236 padding-bottom: 10px;
240 // override default black print style.
241 color: #999 !important; /* stylelint-disable-line declaration-no-important */
246 // Last updated as primary info.
247 #footer-info-lastmod {