Skip to content

Commit

Permalink
Fix galleries in line with TNA Frontend v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Dec 11, 2024
1 parent 0f26d06 commit 2c5a386
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 32 deletions.
3 changes: 2 additions & 1 deletion app/templates/macros/wagtail_blocks/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'body': block_value.description | tna_html,
'headingLevel': headingLevel,
'items': items,
'id': id
'id': id,
'bounded': True
}) }}
{% endmacro %}
4 changes: 2 additions & 2 deletions app/templates/whats-on/exhibition.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ <h2 class="tna-visually-hidden">About {{ page_data.title }}</h2>
</div>
</div>
{% for exhibition_highlights in page_data.exhibition_highlights %}
<section class="tna-section tna-background-contrast--simple tna-!--margin-top-l tna-!--padding-top-m">
<section class="tna-section tna-background-contrast tna-!--margin-top-l tna-!--padding-top-m">
<div class="tna-container">
<div class="tna-column tna-column--full">
<h2 id="in-this-exhibition" class="tna-background-contrast tna-heading-l tna-!--padding-top-s">In this exhibition</h2>
<h2 id="in-this-exhibition" class="tna-heading-l tna-!--padding-top-s">In this exhibition</h2>
{% set gallery_images = [] %}
{% for image in exhibition_highlights.value.images %}
{% set gallery_images = gallery_images.append({
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ python = "^3.12"
flask = "^2.3.2"
requests = "^2.31.0"
flask-caching = "^2.1.0"
tna-frontend-jinja = "0.3.0"
tna-frontend-jinja = "0.4.0"
flask-talisman = "^1.1.0"
sentry-sdk = {extras = ["flask"], version = "^2.8.0"}
pydash = "^8.0.3"
Expand Down
35 changes: 11 additions & 24 deletions src/styles/exhibition.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
padding-top: 0;
}
}

@include media.on-larger-than-mobile {
&__items {
padding-left: 0 !important;
Expand Down Expand Up @@ -140,31 +140,18 @@
}
}

.tna-background-contrast {
&--simple {
background-color: var(--contrast-background);

.tna-gallery {
background: transparent;

@include colour.contrast;

&__header {
padding: 0;
}

&__item-figure-inner {
background-color: #010101;
}
.tna-gallery {
&__item-figure-inner {
background-color: #010101;
}

&__item-description {
}
&__navigation {
margin-right: spacing.space(-1);
margin-left: spacing.space(-1);
}

&__navigation {
margin-right: spacing.space(-1);
margin-left: spacing.space(-1);
}
}
&:fullscreen {
@include colour.contrast;
}
}

Expand Down

0 comments on commit 2c5a386

Please sign in to comment.