Skip to content

Commit

Permalink
fix(STN-804): caption credit views hotfix (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
KelbelR authored Jun 25, 2021
1 parent d733a5a commit 353c52b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docroot/themes/humsci/humsci_airy/css/humsci_airy.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@
position: relative;
}
}

// This adds caption/credit positioning for the caption credit media template as well as the hb-relative utility class.
.hb-caption-credit-image,
.hb-relative article {
@include hb-relative;
}
Original file line number Diff line number Diff line change
Expand Up @@ -311,3 +311,7 @@
z-index: $hb-z-index-small-1;
}
}

@mixin hb-relative {
position: relative;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{#
/**
* This Caption Credit template overrides the standard media.html.twig file in Stable theme.
*/
#}
{%
set classes = [
'hb-caption-credit-image',
]
%}

<article{{ attributes.addClass(classes) }}>
{{ title_suffix.contextual_links }}
{% if content %}
{{ content }}
{% endif %}
</article>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 353c52b

Please sign in to comment.