Skip to content

Commit

Permalink
Add cover position attribute
Browse files Browse the repository at this point in the history
Now it's possible to set the starting position of the cover by using
the background-position CSS values. See
http://www.w3schools.com/cssref/pr_background-position.asp

This is part of #27.
  • Loading branch information
ahaasler committed Jul 15, 2016
1 parent 1bd8b57 commit ed79f9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions theme/layout/partial/head.swig
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,12 @@
};
}
</style>
{% if page.coverPosition %}
<style>
app-header #backgroundFrontLayer {
background-position: {{ page.coverPosition }} !important;
}
</style>
{% endif %}
{% endif %}
</head>

0 comments on commit ed79f9d

Please sign in to comment.