UNPKG

@readium/css

Version:

A set of reference stylesheets for EPUB Reading Systems

30 lines (25 loc) 992 B
/* Readium CSS Hyphenation pref A submodule managing hyphens for user settings Part of “User Overrides Advanced” class – “advanced settings” flag required. Repo: https://github.com/readium/css */ /* Managing the user override */ :root[style*="--USER__bodyHyphens"] { -webkit-hyphens: var(--USER__bodyHyphens) !important; -moz-hyphens: var(--USER__bodyHyphens) !important; -ms-hyphens: var(--USER__bodyHyphens) !important; -epub-hyphens: var(--USER__bodyHyphens) !important; hyphens: var(--USER__bodyHyphens) !important; } /* Sorry, we can’t use `:matches`, `:-moz-any` or `:-webkit-any` because MS doesn’t support it yet */ :root[style*="--USER__bodyHyphens"] body, :root[style*="--USER__bodyHyphens"] p, :root[style*="--USER__bodyHyphens"] li, :root[style*="--USER__bodyHyphens"] div, :root[style*="--USER__bodyHyphens"] dd { -webkit-hyphens: inherit; -moz-hyphens: inherit; -ms-hyphens: inherit; -epub-hyphens: inherit; hyphens: inherit; }