MinervaNeue/resources/skins.minerva.content.styles
Nicholas Ray c1485615bb Enable Dynamic Type in iOS 9+ browsers
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
2018-10-08 20:20:44 +00:00
..
templates Add bottom margin to page issues 2018-08-30 19:22:49 +00:00
blockquotes.less Remove minerva.less from global import path 2018-05-29 12:19:00 +00:00
hacks.less Make Minerva section editing more like other skins 2018-10-04 14:07:27 -07:00
headings.less Remove minerva.less from global import path 2018-05-29 12:19:00 +00:00
images.less Remove minerva.less from global import path 2018-05-29 12:19:00 +00:00
links.less Move Parsoid output overrides to 'mediawiki.skinning.content.parsoid' skinStyles 2018-09-17 21:55:32 +00:00
lists.less Switch to outside list style 2017-11-02 10:56:51 -07:00
main.less Enable Dynamic Type in iOS 9+ browsers 2018-10-08 20:20:44 +00:00
sectionAnchor.less Minerva is its own skin 2017-07-12 08:12:40 -07:00
styles.less Minerva is its own skin 2017-07-12 08:12:40 -07:00
tables.less Remove minerva.less from global import path 2018-05-29 12:19:00 +00:00
text.less Move Parsoid output overrides to 'mediawiki.skinning.content.parsoid' skinStyles 2018-09-17 21:55:32 +00:00
thumbnails.less Move Parsoid output overrides to 'mediawiki.skinning.content.parsoid' skinStyles 2018-09-17 21:55:32 +00:00