Skip to content

Commit

Permalink
fix aspect ratio vertical height issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hemberger committed May 2, 2019
1 parent 76f587c commit d4b6b6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions assets/css/mai-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1728,23 +1728,23 @@ body.has-boxed-site-container {
}

.aspect-ratio[style*="--aspect-ratio"]::before {
display: block;
content: '';
float: left;
width: 1px;
height: 0;
margin-left: -1px;
padding-bottom: calc( 100% / (var(--aspect-ratio)) );
}

.aspect-ratio[style*="--aspect-ratio"]::after {
content: '';
display: table;
clear: both;
}

.aspect-inner {
width: 100%;
height: 100%;;
height: 100%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding: inherit;
}

/* ## Page Builders
Expand Down
2 changes: 1 addition & 1 deletion assets/css/mai-theme.min.css

Large diffs are not rendered by default.

0 comments on commit d4b6b6b

Please sign in to comment.