js:foliate-js:reader

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
js:foliate-js:reader [2024/03/26 13:41] avillepreuxjs:foliate-js:reader [2024/03/26 13:52] (Version actuelle) – ancienne révision (2024/03/26 13:27) restaurée avillepreux
Ligne 113: Ligne 113:
 const getCSS = ({ spacing, justify, hyphenate }) => ` const getCSS = ({ spacing, justify, hyphenate }) => `
     @namespace epub "http://www.idpf.org/2007/ops";     @namespace epub "http://www.idpf.org/2007/ops";
-    #ebook {+    html {
         color-scheme: light dark;         color-scheme: light dark;
     }     }
     /* https://github.com/whatwg/html/issues/5426 */     /* https://github.com/whatwg/html/issues/5426 */
     @media (prefers-color-scheme: dark) {     @media (prefers-color-scheme: dark) {
-        #ebook a:link {+        a:link {
             color: lightblue;             color: lightblue;
         }         }
     }     }
-    #ebook p, #ebook li, #ebook blockquote, #ebook dd {+    p, li, blockquote, dd {
         line-height: ${spacing};         line-height: ${spacing};
         text-align: ${justify ? 'justify' : 'start'};         text-align: ${justify ? 'justify' : 'start'};
Ligne 134: Ligne 134:
     }     }
     /* prevent the above from overriding the align attribute */     /* prevent the above from overriding the align attribute */
-    #ebook [align="left"] { text-align: left; } +    [align="left"] { text-align: left; } 
-    #ebook [align="right"] { text-align: right; } +    [align="right"] { text-align: right; } 
-    #ebook [align="center"] { text-align: center; } +    [align="center"] { text-align: center; } 
-    #ebook [align="justify"] { text-align: justify; }+    [align="justify"] { text-align: justify; }
  
-    #ebook pre {+    pre {
         white-space: pre-wrap !important;         white-space: pre-wrap !important;
     }     }
-    #ebook aside[epub|type~="endnote"], +    aside[epub|type~="endnote"], 
-    #ebook aside[epub|type~="footnote"], +    aside[epub|type~="footnote"], 
-    #ebook aside[epub|type~="note"], +    aside[epub|type~="note"], 
-    #ebook aside[epub|type~="rearnote"] {+    aside[epub|type~="rearnote"] {
         display: none;         display: none;
     }     }
  • js/foliate-js/reader.1711456888.txt.gz
  • Dernière modification : 2024/03/26 13:41
  • de avillepreux