optionnal fixed background for full-picture

This commit is contained in:
Adrien Beudin 2016-11-04 15:43:17 +01:00
parent 0ecd4cde5f
commit b3d9b41f13
2 changed files with 7 additions and 1 deletions

View File

@ -46,6 +46,12 @@ Without text::
- type: full-picture
image: big_picture.jpg
If you want fixed backgroup use can use this optionnal option (only with the exposure theme)::
- type: full-picture
fixed: true
Bordered picture
________________

View File

@ -26,7 +26,7 @@
{% else %}
{% set image = Image(section.image) %}
{{ image.copy() }}
<section class="full-picture" style="background: url('{{ image.generate_thumbnail("x2000") }}') no-repeat fixed center top / cover, url('{{ image.generate_thumbnail("x450") }}') no-repeat fixed center top / cover transparent;">
<section class="full-picture" style="background: url('{{ image.generate_thumbnail("x2000") }}') no-repeat {% if section.fixed %} fixed {% else %} scroll {% endif %} center top / cover, url('{{ image.generate_thumbnail("x450") }}') no-repeat {% if section.fixed %} fixed {% else %} scroll {% endif %} center top / cover transparent;">
{% if section.text %}
<div class="picture-text">
<div class="picture-text-column">