Skip to content

Commit

Permalink
update responsive elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Escontrela authored and Alejandro Escontrela committed Jan 9, 2025
1 parent 093532c commit 95264ae
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _pages/photography.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ show_title: false

## C/2023 A3 over Gilmore Lake, Tahoe
<div class="row">
<div class="col-12">
<div class="embed-responsive embed-responsive-1by1">
<div class="col-lg-8 col-md-8 col-sm-12 mx-auto">
<div class="embed-responsive embed-responsive-5by7">
<video class="embed-responsive-item" id="tsuchinshan-atlas" controls ></video>
</div>
</div>
Expand Down
18 changes: 18 additions & 0 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -636,4 +636,22 @@ html.transition *:after {
width: 100%;
height: 100%;
border: 0;
}

.embed-responsive-5by7 {
position: relative;
display: block;
width: 100%;
padding-top: 140%; /* 5:7 aspect ratio */
}

.embed-responsive-5by7 .embed-responsive-item {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
border: 0;
}

0 comments on commit 95264ae

Please sign in to comment.