0.0.20 bg_color for block

This commit is contained in:
SDE
2023-11-28 13:56:21 +03:00
parent 4e53dc40ae
commit aa79cbd743
5 changed files with 5 additions and 4 deletions

View File

@@ -1 +1 @@
style="width: 100%;{% if block.bg_image %} background: {{ block.bg_color }}{% endif %}"
style="width: 100%;{% if block.bg_image %} background: url({{ MEDIA_URL }}{{ block.bg_image }}); background-size: cover; background-repeat: no-repeat; background-position: top;{% elif block.bg_color %} background: {{ block.bg_color }}{% endif %}"