Skip to content

Commit

Permalink
Video Hero Unit Content Padding
Browse files Browse the repository at this point in the history
Adding content padding for the video hero unit to extend height more easily for users.
Overrides css with inline style.
  • Loading branch information
jnicholCU committed Nov 18, 2024
1 parent 7033ad1 commit ae020c3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/block/block--video-hero-unit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
{% endif %}
{% set linkColor = content['#block_content'].field_link_color.value %}
{# Dont let twig render the links #}
<div class="ucb-hero-unit-content container">
<div class="ucb-hero-unit-content container" style="padding-top: {{ content.field_hero_top_padding }}; padding-bottom: {{ content.field_hero_bottom_padding }};">
<div class="row">
{% if content['#block_content'].field_text_align.value == "text-righthalf" %}
<div class="col-12 col-md-6"></div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{#
/**
* @file
* Theme override for Hero Unit Block Field
*
*/
#}
{% for item in items %}
{{ item.content }}px
{% endfor %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{#
/**
* @file
* Theme override for Hero Unit Block Field
*
*/
#}
{% for item in items %}
{{ item.content }}px
{% endfor %}

0 comments on commit ae020c3

Please sign in to comment.