Commit compiled CSS/JS

This commit is contained in:
benjamin melançon 2020-02-05 14:16:04 -05:00
parent bebd944698
commit 9836ea11a6
2 changed files with 9 additions and 2 deletions

View file

@ -29,3 +29,10 @@
.subtitle:not(:last-child),
.title:not(:last-child) {
margin-bottom: 0.5em; }
.tag.hidden {
display: none; }
.comment-indicator {
position: absolute;
left: -4rem; }

View file

@ -13,7 +13,7 @@
// Find and save the aspect ratio for all iframes
$iframes.each(function () {
$( this ).data( "ratio", this.height / this.width )
// Remove the hardcoded width & height attributes
// Remove the hardcoded width and height attributes
.removeAttr( "width" )
.removeAttr( "height" );
});
@ -21,7 +21,7 @@
// Resize the iframes when the window is resized
$( window ).resize( function () {
$iframes.each( function() {
// Get the parent container's width
// Get the parent container's width
var width = $( this ).parent().width();
$( this ).width( width )
.height( width * $( this ).data( "ratio" ) );