Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

PLAT-662 Single message background image #701

Merged
merged 5 commits into from
Dec 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
@extend .bg--black;

@include breakpoint($screen-md, $no-query: true) {
min-height: 500px;
margin: 0 0 -6px;
}
@include breakpoint($screen-lg, $no-query: true) {
min-height: 500px;
}
}

.background-single-msg__inner-wrap {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% set bg_body_colour = field_bg_single_msg_bg_colour['#items'][0].value %}
{% set bg_body_layout = field_bg_single_msg_layout['#items'][0].value %}
{% set body_copy = content.field_body['#items'] %}


{%
set classes = [
Expand All @@ -20,13 +22,15 @@ bg_body_colour,
%}

<section{{ attributes.addClass(classes) }}>
<div class="background-single-msg__image">
{{ content.field_background }}
</div>
<div class="background-single-msg__image">
{{ content.field_background }}
</div>
{% if body_copy is not empty %}
<div class="background-single-msg__inner-wrap">
{{ title_suffix.contextual_links }}
<div{{ attributes.setAttribute('class', body_classes) }}>
{{ content.field_body }}
</div>
<div{{ attributes.setAttribute('class', body_classes) }}>
{{ content.field_body }}
</div>
</div>
{% endif %}
</section>