From 2a9bc87522949acfc0fb745da34e38f486b1b7aa Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Wed, 13 Aug 2025 13:46:10 +0200 Subject: [PATCH] Remove metabox spacer which is not used anymore --- assets/js/frontend.js | 20 -------------------- sass/_meta.scss | 11 ----------- 2 files changed, 31 deletions(-) diff --git a/assets/js/frontend.js b/assets/js/frontend.js index b5c648ef..d0e390d6 100644 --- a/assets/js/frontend.js +++ b/assets/js/frontend.js @@ -50,8 +50,6 @@ jQuery( function () { jQuery( 'html' ).removeClass( 'theme--default' ); } - adjustMetaboxHeight(); - addRssReadMore(); // mailto unscrambler @@ -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( '
' ); - - 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 diff --git a/sass/_meta.scss b/sass/_meta.scss index 2375d31e..d259b6e9 100644 --- a/sass/_meta.scss +++ b/sass/_meta.scss @@ -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;