Debian Codegraph @

skins/Vector/resources/skins.vector.styles.legacy/print.less

raw
1 @wmui-color-base0: #000;
2
3 @color-base: @wmui-color-base0;
4
5 @border-color-base: @wmui-color-base0;
6 @border-color-footer: #eee;
7
8 /* These styles retain the existing typography in skin.less
9 In future (when deploying these styles) we may want to refactor skins.vector.styles
10 to apply certain styles in print as well as screen mode. */
11 .toc,
12 body {
13 padding: 10px;
14 font-family: @font-family-serif;
15 }
16
17 // Tables, thumbs and lists are sans-serif in print mode (unlike screen mode) because these will render
18 // more legibly on print media in a smaller font sizes
19 .printfooter,
20 .mw-footer,
21 .thumb,
22 figure,
23 table,
24 ol,
25 dl,
26 ul,
27 .mw-heading3,
28 h3,
29 .mw-heading4,
30 h4,
31 .mw-heading5,
32 h5,
33 .mw-heading6,
34 h6 {
35 font-family: @font-family-sans;
36 }
37
38 // Images, such as formulas, render best in serif. Math fallback images, for example, have an
39 // inline style attribute setting their dimensions in ex (x-height) units, which is relative the
40 // font size:
41 // <img
42 // src="https://wikimedia.org/api/rest_v1/media/math/render/svg/d03b01348b751e6f4eaff085b3effa9542e2935d"
43 // class="mwe-math-fallback-image-inline"
44 // aria-hidden="true"
45 // style="vertical-align: -2.171ex; width: 11.418ex; height: 5.676ex;"
46 // alt="r_{s}={\frac {2GM}{c^{2}}}">
47 img {
48 font-family: @font-family-serif;
49 }
50
51 // Normalize Blue links in the article
52 .mw-body a:not( .image ) {
53 border-bottom: 1px solid #aaa;
54 }
55
56 .firstHeading {
57 font-size: 25pt;
58 line-height: 28pt;
59 margin-bottom: 20px;
60 padding-bottom: 5px;
61 }
62
63 // Headings
64 .firstHeading,
65 .mw-heading2,
66 h2 {
67 // To avoid the bottom border of section headings with floated elements
68 overflow: hidden;
69 border-bottom: 2px solid @border-color-base;
70 }
71
72 .mw-heading3,
73 h3,
74 .mw-heading4,
75 h4,
76 .mw-heading5,
77 h5,
78 .mw-heading6,
79 h6 {
80 margin: 30px 0 0;
81 }
82
83 .mw-heading2,
84 h2,
85 .mw-heading3,
86 h3,
87 .mw-heading4,
88 h4,
89 .mw-heading5,
90 h5,
91 .mw-heading6,
92 h6 {
93 padding: 0;
94 position: relative;
95 }
96
97 .mw-heading2,
98 h2 {
99 font-size: 18pt;
100 line-height: 24pt;
101 margin-bottom: 0.25em;
102 }
103
104 .mw-heading3,
105 h3 {
106 font-size: 14pt;
107 line-height: 20pt;
108 }
109
110 .mw-heading4,
111 h4,
112 .mw-heading5,
113 h5,
114 .mw-heading6,
115 h6 {
116 font-size: 12pt;
117 line-height: 16pt;
118 }
119
120 p {
121 font-size: 12pt;
122 line-height: 16pt;
123 margin-top: 5px;
124 text-align: justify;
125
126 // T175008
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 &::before {
134 content: '';
135 display: block;
136 width: 120pt;
137 overflow: hidden;
138 }
139 }
140
141 blockquote {
142 border-left: 2px solid @border-color-base;
143 padding-left: 20px;
144 }
145
146 ol,
147 ul {
148 margin: 10px 0 0 1.6em;
149 padding: 0;
150
151 li {
152 padding: 2px 0;
153 font-size: 12pt;
154
155 // T178667: Inline lists in new print styles should not
156 // have a smaller font size than surrounding content
157 table & {
158 font-size: inherit;
159 }
160 }
161 }
162
163 .toc {
164 page-break-before: avoid;
165 page-break-after: avoid;
166 background: none;
167 border: 0;
168 display: table;
169
170 a {
171 border: 0;
172 font-weight: normal;
173 }
174
175 > ul {
176 > li {
177 margin-bottom: 4px;
178 font-weight: bold;
179 }
180 }
181
182 ul {
183 margin: 0;
184 list-style: none;
185
186 ul {
187 padding-left: 30px;
188 }
189 }
190
191 li.toclevel-1 {
192 > a {
193 font-size: 12pt;
194 font-weight: bold;
195 }
196 }
197 }
198
199 #mw-navigation,
200 /* Used by a variety of templates and historically part of the Vector skin. */
201 .noprint,
202 .mw-jump-link,
203 .mw-portlet-lang,
204 .toc .tocnumber {
205 display: none;
206 }
207
208 .printfooter {
209 margin-top: 10px;
210 border-top: 3px solid @border-color-base;
211 padding-top: 10px;
212 font-size: 10pt;
213 clear: both;
214 }
215
216 .mw-footer {
217 margin-top: 12px;
218 border-top: 1px solid @border-color-footer;
219 padding-top: 5px;
220 }
221
222 #footer-info {
223 margin: 0;
224 padding: 0;
225
226 li {
227 color: #999;
228 list-style: none;
229 display: block;
230 padding-bottom: 10px;
231 font-size: 10pt;
232
233 a {
234 // override default black print style.
235 color: #999 !important; /* stylelint-disable-line declaration-no-important */
236 }
237 }
238 }
239
240 // Last updated as primary info.
241 #footer-info-lastmod {
242 color: @color-base;
243 font-size: 12pt;
244 font-weight: bold;
245 }