@readium/css
Version:
A set of reference stylesheets for EPUB Reading Systems
28 lines (21 loc) • 803 B
CSS
/* Readium CSS
Font size pref
A submodule managing font-size for user settings
Part of “User Overrides” class – no flag required.
Repo: https://github.com/readium/css */
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] body {
zoom: var(--USER__fontSize) ;
}
:root:--iOS-patch[style*="--USER__fontSize"] body {
-webkit-text-size-adjust: var(--USER__fontSize) ;
}
/* Older deprecated implementation for when zoom is not supported
or it is explicitly enabled because you don’t want the new one */
@supports not (zoom: 1) {
:root[style*="--USER__fontSize"] {
font-size: var(--USER__fontSize) ;
}
}
:root:--deprecated-font-size[style*="--USER__fontSize"] {
font-size: var(--USER__fontSize) ;
}