forked from wtf-eg/handbuch-gen
feat: added initial version of png cover image to epub
This commit is contained in:
@ -19,7 +19,5 @@ Sample template for the html cover page.
|
||||
{%- block footer %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="epub-cover">
|
||||
<img src="{{ image }}" alt="Cover image" />
|
||||
</div>
|
||||
<div class="epub-cover" style="background-image: url('{{ image }}');"></div>
|
||||
{% endblock %}
|
||||
|
9
sphinx/theme/wtf_epub/static/css/style.css
Normal file
9
sphinx/theme/wtf_epub/static/css/style.css
Normal file
@ -0,0 +1,9 @@
|
||||
.epub-cover {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
[theme]
|
||||
inherit = epub
|
||||
stylesheet = css/style.css
|
||||
|
Reference in New Issue
Block a user