Skip to content

Commit

Permalink
fix(book): Reading on black theme must show some text
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusa87 committed Aug 17, 2024
1 parent 3dc8aaa commit 3799c8b
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions templates/book/reader-files-epub.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,25 @@
{% endblock %}

{% block readercss %}
{# This css is injected to the vue-book-reader component, in a shadow root, so it's not possible to use --vars. #}
html {
background: {{ isDark ? '#000' : '#fff' }};
color: {{ isDark ? '#fff' : '#000' }};
}
a {
color: #24599d;
}
{% if isDark %}
{# This css is injected to the vue-book-reader component, in a shadow root, so it's not possible to use --vars. #}
html {
background: #000;
color: #fff;
}
a {
color: #24599d;
}

a:hover {
color: #FFFFFF;
}

h1,h2,h3,h4,h5,h6,h7,h8,h9,h10 {
color: #fff !important;
}
p, pre, blockquote, code {
color: #fff !important;
}
{% endif %}
{% endblock %}

0 comments on commit 3799c8b

Please sign in to comment.