11/*
2- * Readium CSS (v. 2.0.0-beta.13 )
2+ * Readium CSS (v. 2.0.0-beta.14 )
33 * Developers: Jiminy Panoz
44 * Copyright (c) 2017. Readium Foundation. All rights reserved.
55 * Use of this source code is governed by a BSD-style license which is detailed in the
@@ -66,17 +66,20 @@ body{
6666 max-width : var (--RS__defaultLineLength ) !important ;
6767 padding : 0 var (--RS__pageGutter ) !important ;
6868 margin : 0 auto !important ;
69- overflow : hidden;
7069 box-sizing : border-box;
7170}
7271
72+ : root : not ([style *= "readium-noOverflow-on" ]) body {
73+ overflow : hidden;
74+ }
75+
7376@supports (overflow : clip){
7477
75- : root {
78+ : root : not ([ style *= "readium-noOverflow-on" ]) {
7679 overflow : clip;
7780 }
7881
79- body {
82+ : root : not ([ style *= "readium-noOverflow-on" ]) body {
8083 overflow : clip;
8184 overflow-clip-margin : content-box;
8285 }
@@ -96,16 +99,19 @@ body{
9699
97100: root [style *= "readium-scroll-on" ] body {
98101 max-width : var (--RS__defaultLineLength ) !important ;
102+ }
103+
104+ : root [style *= "readium-scroll-on" ]: not ([style *= "readium-noOverflow-on" ]) body {
99105 overflow : auto;
100106}
101107
102108@supports (overflow : clip){
103109
104- : root [style *= "readium-scroll-on" ]{
110+ : root [style *= "readium-scroll-on" ]: not ([ style *= "readium-noOverflow-on" ]) {
105111 overflow : auto;
106112 }
107113
108- : root [style *= "readium-scroll-on" ] body {
114+ : root [style *= "readium-scroll-on" ]: not ([ style *= "readium-noOverflow-on" ]) body {
109115 overflow : clip;
110116 }
111117}
@@ -352,47 +358,47 @@ body{
352358 hyphens : inherit;
353359}
354360
355- : root [style *= "readium-font-on" ][ style *= " --USER__fontFamily" ]{
361+ : root [style *= "--USER__fontFamily" ]{
356362 font-family : var (--USER__fontFamily ) !important ;
357363}
358364
359- : root [style *= "readium-font-on" ][ style *= " --USER__fontFamily" ] * {
365+ : root [style *= "--USER__fontFamily" ] * {
360366 font-family : revert !important ;
361367}
362368
363- : root [style *= "readium-font-on" ][ style *= " AccessibleDfA" ]{
369+ : root [style *= "AccessibleDfA" ]{
364370 font-family : AccessibleDfA, Verdana, Tahoma, "Trebuchet MS" , sans-serif !important ;
365371}
366372
367- : root [style *= "readium-font-on" ][ style *= " IA Writer Duospace" ]{
373+ : root [style *= "IA Writer Duospace" ]{
368374 font-family : "IA Writer Duospace" , Menlo, "DejaVu Sans Mono" , "Bitstream Vera Sans Mono" , Courier, monospace !important ;
369375}
370376
371- : root [style *= "readium-font-on" ][ style *= " AccessibleDfA" ], : root [ style *= "readium-font-on" ] [style *= "IA Writer Duospace" ],
377+ : root [style *= "AccessibleDfA" ], : root [style *= "IA Writer Duospace" ],
372378: root [style *= "readium-a11y-on" ]{
373379 font-style : normal !important ;
374380 font-weight : normal !important ;
375381}
376382
377- : root [style *= "readium-font-on" ][ style *= " AccessibleDfA" ] * : not (code ): not (var ): not (kbd ): not (samp ), : root [ style *= "readium-font-on" ] [style *= "IA Writer Duospace" ] * : not (code ): not (var ): not (kbd ): not (samp ),
383+ : root [style *= "AccessibleDfA" ] * : not (code ): not (var ): not (kbd ): not (samp ), : root [style *= "IA Writer Duospace" ] * : not (code ): not (var ): not (kbd ): not (samp ),
378384: root [style *= "readium-a11y-on" ] * : not (code ): not (var ): not (kbd ): not (samp ){
379385 font-family : inherit !important ;
380386 font-style : inherit !important ;
381387 font-weight : inherit !important ;
382388}
383389
384- : root [style *= "readium-font-on" ][ style *= " AccessibleDfA" ] * , : root [ style *= "readium-font-on" ] [style *= "IA Writer Duospace" ] * ,
390+ : root [style *= "AccessibleDfA" ] * , : root [style *= "IA Writer Duospace" ] * ,
385391: root [style *= "readium-a11y-on" ] * {
386392 text-decoration : none !important ;
387393 font-variant-caps : normal !important ;
388394 font-variant-numeric : normal !important ;
389395 font-variant-position : normal !important ;
390396}
391397
392- : root [style *= "readium-font-on" ][ style *= " AccessibleDfA" ] sup , : root [ style *= "readium-font-on" ] [style *= "IA Writer Duospace" ] sup ,
398+ : root [style *= "AccessibleDfA" ] sup , : root [style *= "IA Writer Duospace" ] sup ,
393399: root [style *= "readium-a11y-on" ] sup ,
394- : root [style *= "readium-font-on" ][ style *= " AccessibleDfA" ] sub ,
395- : root [style *= "readium-font-on" ][ style *= " IA Writer Duospace" ] sub ,
400+ : root [style *= "AccessibleDfA" ] sub ,
401+ : root [style *= "IA Writer Duospace" ] sub ,
396402: root [style *= "readium-a11y-on" ] sub {
397403 font-size : 1rem !important ;
398404 vertical-align : baseline !important ;
@@ -467,20 +473,20 @@ body{
467473 font-variant : none;
468474}
469475
470- : root [style *= "readium-font-on" ][ style *= " --USER__fontWeight" ] body {
476+ : root [style *= "--USER__fontWeight" ] body {
471477 font-weight : var (--USER__fontWeight ) !important ;
472478}
473479
474- : root [style *= "readium-font-on" ][ style *= " --USER__fontWeight" ] b ,
475- : root [style *= "readium-font-on" ][ style *= " --USER__fontWeight" ] strong {
480+ : root [style *= "--USER__fontWeight" ] b ,
481+ : root [style *= "--USER__fontWeight" ] strong {
476482 font-weight : bolder;
477483}
478484
479- : root [style *= "readium-font-on" ][ style *= " --USER__fontWidth" ] body {
485+ : root [style *= "--USER__fontWidth" ] body {
480486 font-stretch : var (--USER__fontWidth ) !important ;
481487}
482488
483- : root [style *= "readium-font-on" ][ style *= " --USER__fontOpticalSizing" ] body {
489+ : root [style *= "--USER__fontOpticalSizing" ] body {
484490 font-optical-sizing : var (--USER__fontOpticalSizing ) !important ;
485491}
486492
0 commit comments