diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 558654bb..de1f909c 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1634,8 +1634,8 @@ select { height: 2rem; } -.h-\[45vh\] { - height: 45vh; +.h-\[300px\] { + height: 300px; } .h-36 { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c071fced..4766d4a4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -146,10 +146,15 @@ var header = document.getElementById("single_header") var style = getComputedStyle(header); - var margin = '-'+ (parseInt(style.height) + parseInt(style.marginTop) + parseInt(style.marginBottom) + 20) + 'px' var hero = document.getElementById('hero') - if(hero) + if(hero){ + var margin = '-'+ (parseInt(style.height) + parseInt(style.marginTop) + parseInt(style.marginBottom) + 20) + 'px' + var height = (-parseInt(margin) + parseInt(getComputedStyle(hero).height)) + "px" + console.log(height) hero.style["margin-bottom"] = margin; + hero.style["height"] = height; + } +