Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions assets/js/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ jQuery( function () {
jQuery( 'html' ).removeClass( 'theme--default' );
}

adjustMetaboxHeight();

addRssReadMore();

// mailto unscrambler
Expand Down Expand Up @@ -174,24 +172,6 @@ jQuery( '#sunflower-contact-form' ).on( 'submit', function ( e ) {
return false;
} );

function adjustMetaboxHeight() {
if ( ! jQuery( '.metabox' ).length ) {
return;
}

const tooBig =
jQuery( '.metabox' ).outerHeight() -
jQuery( '.entry-header' ).outerHeight();

if ( tooBig <= 0 ) {
return;
}

jQuery( '.entry-content' ).prepend( '<div class="metabox-spacer"></div>' );

jQuery( '.metabox-spacer' ).height( tooBig + 'px' );
}

/* add read more link to rss block items */
function addRssReadMore() {
// loop over every title with link and add it as "read more" link
Expand Down
11 changes: 0 additions & 11 deletions sass/_meta.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@
height: fit-content;
margin-bottom: 20px;

&-spacer {
display: none;

@include media-breakpoint-up(md) {
display: block;
float: right;
width: 100px;
height: 150px;
}
}

.date {
font-size: 150%;
font-weight: 700;
Expand Down