Square boxes by CSS (#6672)

pull/6676/head
Michael Loßin 2 years ago committed by GitHub
parent baa9c2462d
commit 578f907ab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,7 @@
.box {
aspect-ratio: 1;
}
.category-btn-outer {
padding: 12px;
}

@ -1,7 +1,4 @@
$(document).ready(function () {
// Make category buttons square
$('.box').height($('.box').width());
// Show region notice
if (window.localStorage.getItem('region-notice') !== 'hidden') $('#region-notice').collapse('show');
@ -59,9 +56,6 @@ let resizeObserver = new ResizeObserver(() => {
} else {
$('.footer').css({position: 'static'});
}
// Resize square divs
$('.box').height($('.box').width());
});
resizeObserver.observe($('body')[0]);

Loading…
Cancel
Save