Skip to content

Commit

Permalink
Change type
Browse files Browse the repository at this point in the history
  • Loading branch information
TimmersThomas committed Aug 13, 2023
1 parent 8668e5b commit dbb9d2d
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions sections/video-banner.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,35 @@
}
{% endschema %}
{% stylesheet %}
.video-wrapper {
/* Telling our absolute positioned video to
be relative to this element */
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
.video-wrapper {
/* Telling our absolute positioned video to
be relative to this element */
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;

/* Will not allow the video to overflow the
container */
overflow: hidden;
/* Will not allow the video to overflow the
container */
overflow: hidden;

/* Centering the container's content vertically
and horizontally */
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
/* Centering the container's content vertically
and horizontally */
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}

.video-wrapper video {
/** Simulationg background-size: cover */
object-fit: cover;
height: 100%;
width: 100%;
.video-wrapper video {
/** Simulationg background-size: cover */
object-fit: cover;
height: 100%;
width: 100%;

position: absolute;
top: 0;
left: 0;
}
position: absolute;
top: 0;
left: 0;
}
{% endstylesheet %}

{% javascript %}
Expand Down

0 comments on commit dbb9d2d

Please sign in to comment.