@readium/css
Version:
A set of reference stylesheets for EPUB Reading Systems
39 lines (32 loc) • 1.07 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/css */
:root:--scroll-view,
:root:--no-vertical-pagination {
/* 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,
:root:--no-vertical-pagination body {
box-sizing: border-box ;
max-width: var(--RS__defaultLineLength) ;
}
@supports (overflow: clip) {
:root:--scroll-view:not(:--no-overflow) {
overflow: auto;
}
:root:--scroll-view:not(:--no-overflow) body {
overflow: clip;
}
}