mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 16:10:55 +00:00
c1485615bb
Dynamic Type is a feature in iOS that lets users pick their reading size so that apps can adjust their text size accordingly. This commit makes the mobile site hook into that feature. If you go to settings > Accessibility > Larger Text in iOS and increase or decrease the reading size, the mobile site will now increase / decrease its text size relative to that setting. Notable changes: * Moved `font-size: 100% * @fontScalingFactor` from html to body. This rule would override Dynamic Type sizing which would effectively disable it. Moving it to the body makes the rule be relative to Dynamic Type instead of overriding it in iOS browsers while browsers that don't support Dynamic Type should observe no visible changes. * Removed intermediate variable @bodyLineHeight because it was only being used in one place. * Added @font-size-body-mobile and made it based on % instead of em (which is what @font-size-body uses). @font-size-mobile-bod is used by a media query in browsers that support Dynamic Type and by another media query in browsers that don't support Dynamic Type. * Added a feature query for Dynamic Type which will make Dynamic Type CSS rules only affect browsers that support Dynamic Type. This limits the feature to iOS 9+ feature but ensures that the css rules don't affect browsers that don't support Dynamic Type. * Scaled down Dynamic Type so that its default size would appear identical to the common browser default text size of 16px. By not doing this, the default font size in iOS browsers would be 17px (Dynamic Type's default) and would appear 1px larger than Android browsers. Bug: T204807 Change-Id: I8a4d621dba8dc56190bd8c974543d08dd374ba5e |
||
---|---|---|
.. | ||
skins.minerva.backtotop | ||
skins.minerva.base.reset | ||
skins.minerva.base.styles | ||
skins.minerva.categories | ||
skins.minerva.content.styles | ||
skins.minerva.content.styles.images | ||
skins.minerva.editor | ||
skins.minerva.icons.images | ||
skins.minerva.icons.images.scripts | ||
skins.minerva.icons.images.scripts.misc | ||
skins.minerva.icons.images.variants | ||
skins.minerva.icons.loggedin | ||
skins.minerva.icons.page.issues.default.color | ||
skins.minerva.icons.page.issues.medium.color | ||
skins.minerva.icons.page.issues.uncolored | ||
skins.minerva.loggedin.styles | ||
skins.minerva.mainMenu | ||
skins.minerva.mainMenu.icons | ||
skins.minerva.mainMenu.styles | ||
skins.minerva.mainPage.styles | ||
skins.minerva.newusers | ||
skins.minerva.notifications | ||
skins.minerva.notifications.badge | ||
skins.minerva.scripts | ||
skins.minerva.scripts.top | ||
skins.minerva.tablet.scripts | ||
skins.minerva.tablet.styles | ||
skins.minerva.talk | ||
skins.minerva.toggling | ||
skins.minerva.userpage.icons | ||
skins.minerva.userpage.styles | ||
skins.minerva.watchstar |