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