optionnal fixed background for full-picture
This commit is contained in:
parent
0ecd4cde5f
commit
b3d9b41f13
@ -46,6 +46,12 @@ Without text::
|
|||||||
- type: full-picture
|
- type: full-picture
|
||||||
image: big_picture.jpg
|
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
|
Bordered picture
|
||||||
________________
|
________________
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
{% set image = Image(section.image) %}
|
{% set image = Image(section.image) %}
|
||||||
{{ image.copy() }}
|
{{ 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 %}
|
{% if section.text %}
|
||||||
<div class="picture-text">
|
<div class="picture-text">
|
||||||
<div class="picture-text-column">
|
<div class="picture-text-column">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user