| 1 |
@import '../../../minerva.less/minerva.variables.less'; |
| 2 |
@import '../../../minerva.less/minerva.mixins.less'; |
| 3 |
@import 'toc.less'; |
| 4 |
|
| 5 |
// Content formatting and typography |
| 6 |
// |
| 7 |
// Our content is predominately text, hence visual hierarchy must be clear. |
| 8 |
html { |
| 9 |
/* We do not support browsers that render at widths below 320px */ |
| 10 |
min-width: 320px; |
| 11 |
} |
| 12 |
|
| 13 |
body { |
| 14 |
font-family: @font-family-base; |
| 15 |
line-height: 1.4; |
| 16 |
-webkit-tap-highlight-color: rgba( 0, 0, 0, 0.2 ); |
| 17 |
overflow-y: scroll; |
| 18 |
} |
| 19 |
|
| 20 |
.content { |
| 21 |
line-height: @line-height-content; |
| 22 |
// Deal with long links (T62387) |
| 23 |
word-wrap: break-word; |
| 24 |
|
| 25 |
/* Emulate Center - from mediawiki.skinning/elements.css */ |
| 26 |
.center { |
| 27 |
width: 100%; |
| 28 |
text-align: center; |
| 29 |
|
| 30 |
> *, |
| 31 |
.thumb { |
| 32 |
margin-left: auto; |
| 33 |
margin-right: auto; |
| 34 |
} |
| 35 |
} |
| 36 |
} |
| 37 |
|
| 38 |
.nomobile { |
| 39 |
// No mobile should trump any other class. e.g. .content table { display: table; } |
| 40 |
display: none !important; |
| 41 |
} |
| 42 |
|
| 43 |
// Support iOS 9+ browsers: Enable Dynamic Type resizing, see |
| 44 |
// http://www.interactiveaccessibility.com/blog/text-resizing-web-pages-ios-using-dynamic-type |
| 45 |
// & T204807. |
| 46 |
@supports ( font: -apple-system-body ) { |
| 47 |
html { |
| 48 |
font: -apple-system-body; // stylelint-disable-line font-family-no-missing-generic-family-keyword |
| 49 |
} |
| 50 |
|
| 51 |
// Most iOS browsers' default font size is 16px but Dynamic Type's default |
| 52 |
// font size is 17px. We need to scale down @font-size-root by this ratio |
| 53 |
// in order to make them relative to these browsers' defaults again. |
| 54 |
// By doing this, the default Dynamic Type text size |
| 55 |
// will appear identical to the browser's default text size. |
| 56 |
@dynamic-type-scaling-factor: ( 16 / 17 ); |
| 57 |
|
| 58 |
body { |
| 59 |
font-size: @font-size-root * @dynamic-type-scaling-factor; |
| 60 |
} |
| 61 |
} |