Skip to content

Commit

Permalink
ESY-6582 Tab can include src
Browse files Browse the repository at this point in the history
  • Loading branch information
m-lilja committed Mar 5, 2025
1 parent ec0f1b9 commit 4b4d406
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

{% capture card_attributes %}href="{{ to }}"{% endcapture %}

<a {{ card_attributes }} class="{{ card_class }}" target="{{target}}" >
<a {{ card_attributes }} class=" flex-fill {{ card_class }}" target="{{target}}" >
{% if image_src %}
<img src="{{image_src}}" alt="{{image_alt_text}}" class="{{image_ratio}}" />
{% endif %}
Expand Down
18 changes: 18 additions & 0 deletions _sass/swedbank-pay-design-guide-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -480,4 +480,22 @@ body {
display: block;
position: absolute;
}
}

.video-container {
width: 100%;
max-width: 330px;
padding: 0.5rem;

@media screen and (max-width: $breakpoint-lg) {
display: none !important;
}
}

.video-container video {
margin: 0;
height: 100%;
width: 100%;
aspect-ratio: 872 / 1080;
object-fit: cover;
}

0 comments on commit 4b4d406

Please sign in to comment.