@readium/css
Version:
A set of reference stylesheets for EPUB Reading Systems
42 lines (34 loc) • 997 B
CSS
/* Readium CSS
Scroll module
A set of styles to scroll ePublications
This module overrides pagination
Repo: https://github.com/readium/css */
:root:--scroll-view {
/* Reset html size so that the user can scroll */
min-width: 0 ;
width: auto ;
max-width: none ;
min-height: 0 ;
height: auto ;
max-height: none ;
/* Reset columns, auto + auto = columns can’t be created */
-webkit-columns: auto auto ;
-moz-columns: auto auto ;
columns: auto auto ;
}
/* Make sure line-length is limited in all configs */
:root:--scroll-view body {
box-sizing: border-box ;
max-width: var(--RS__defaultLineLength) ;
}
:root:--scroll-view:not(:--no-overflow) body {
overflow: auto;
}
@supports (overflow: clip) {
:root:--scroll-view:not(:--no-overflow) {
overflow: auto;
}
:root:--scroll-view:not(:--no-overflow) body {
overflow: clip;
}
}