optionnal fixed background for full-picture
This commit is contained in:
parent
0ecd4cde5f
commit
b3d9b41f13
@ -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
|
||||
________________
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user