mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-19 01:01:00 +00:00
dd154b4ea7
The values have slightly changed: - Tablet breakpoint is decreased by 80px, pushing lesser devices into a mobile only experience but should make barely a difference to vast majority of our users. - Biggest difference is in `min-width-breakpoint-desktop`, which is increased by 120px in comparison to `@width-breakpoint-desktop: 1000px` Also removing one out-dated feature phone clause. TECHNICAL CHANGES: * The previous breakpoint was tied to the maximum content width. The previous maximum content width is preserved, and several media queries are adjusted to make use of it. * The header (logo) is not optimized for 640px-720px. For now a temporary fix is but in place which will be investigated as part of T366859 VISUAL CHANGES: * 6 visual changes which improve alignment in language and visual editor overlay and diffs (where wikidiff2 is not installed) Bug: T349793 Depends-On: I3afba8c51f60de9271054499bfa3ffbcc1a9d779 Change-Id: I9552d8ad7509aae90e15edda26e786465773d3ac
75 lines
1.9 KiB
Plaintext
75 lines
1.9 KiB
Plaintext
@import '../../../minerva.less/minerva.variables.less';
|
|
@import '../../../minerva.less/minerva.mixins.less';
|
|
@import 'toc.less';
|
|
|
|
// Content formatting and typography
|
|
//
|
|
// Our content is predominately text, hence visual hierarchy must be clear.
|
|
|
|
body {
|
|
font-family: @font-family-base;
|
|
line-height: 1.4;
|
|
-webkit-tap-highlight-color: rgba( 0, 0, 0, 0.2 );
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.content {
|
|
line-height: @line-height-content;
|
|
// Deal with long links (T62387)
|
|
word-wrap: break-word;
|
|
|
|
/* Emulate Center - from mediawiki.skinning/elements.css */
|
|
.center {
|
|
width: 100%;
|
|
text-align: center;
|
|
|
|
> *,
|
|
.thumb {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Feature phones < 320px viewport receive smaller font.
|
|
@media all and ( max-width: @min-width-breakpoint-mobile - 1 ) {
|
|
html {
|
|
font-size: @font-size-root--feature-phone;
|
|
}
|
|
|
|
.content {
|
|
margin: 0 12px;
|
|
}
|
|
}
|
|
|
|
.nomobile {
|
|
// No mobile should trump any other class. e.g. .content table { display: table; }
|
|
display: none !important;
|
|
}
|
|
|
|
// Support iOS 9+ browsers: Enable Dynamic Type resizing, see
|
|
// http://www.interactiveaccessibility.com/blog/text-resizing-web-pages-ios-using-dynamic-type
|
|
// & T204807.
|
|
@supports ( font: -apple-system-body ) {
|
|
html {
|
|
font: -apple-system-body; // stylelint-disable-line font-family-no-missing-generic-family-keyword
|
|
}
|
|
|
|
// Most iOS browsers' default font size is 16px but Dynamic Type's default
|
|
// font size is 17px. We need to scale down @font-size-root and
|
|
// @font-size-root--feature-phone by this ratio in order to make them relative to these
|
|
// browsers' defaults again. By doing this, the default Dynamic Type text size
|
|
// will appear identical to the browser's default text size.
|
|
@dynamic-type-scaling-factor: 16 / 17;
|
|
|
|
body {
|
|
font-size: @font-size-root * @dynamic-type-scaling-factor;
|
|
}
|
|
|
|
@media all and ( max-width: @min-width-breakpoint-mobile - 1 ) {
|
|
body {
|
|
font-size: @font-size-root--feature-phone * @dynamic-type-scaling-factor;
|
|
}
|
|
}
|
|
}
|