UNPKG

@readium/css

Version:

A set of reference stylesheets for EPUB Reading Systems

29 lines (25 loc) 875 B
/* Readium CSS Text align pref A submodule managing text-align for user settings Part of “User Overrides Advanced” class – “advanced settings” flag required. Repo: https://github.com/readium/css */ :root[style*="--USER__textAlign"] { text-align: var(--USER__textAlign); } :root[style*="--USER__textAlign"] body, :root[style*="--USER__textAlign"] p:not( blockquote p, figcaption p, header p, hgroup p, :root:--experimental-header-filtering p[class*="title"], :root:--experimental-header-filtering div:has(+ *) > h1 + p, :root:--experimental-header-filtering div:has(+ *) > p:has(+ h1) ), :root[style*="--USER__textAlign"] li, :root[style*="--USER__textAlign"] dd { text-align: var(--USER__textAlign) !important; -moz-text-align-last: auto !important; -epub-text-align-last: auto !important; text-align-last: auto !important; }