@evidentpoint/readium-css
Version:
A set of reference stylesheets for EPUB Reading Systems
30 lines (23 loc) • 1.02 kB
CSS
/* Readium CSS
Scroll module for vertical-writing
A set of styles to scroll ePublications in “writing-mode: vertical-*”
This module overrides pagination
Repo: https://github.com/readium/readium-css */
:root:--scroll-view {
/* Reset html size so that the user can scroll */
min-width: 0 ;
width: auto ;
max-width: none ;
max-height: 100vh ;
/* Reset columns, auto + auto = columns can’t be created */
/* There is a weird gap in Safari/Webkit, as if overflow paged-x… */
-webkit-columns: auto auto ;
-moz-columns: auto auto ;
columns: auto auto ;
}
/* Make sure line-length is limited in all configs */
:root:--scroll-view body {
--RS__maxLineLength: 40.01rem ; /* Fixes fragmentation update issues in Webkit i.e. value must be slightly different than the one for pagination */
}
/* Scroll mode horizontal */
/* Do we add a top/bottom margin for body in vertical scroll or not? */