Fixing up some CSS

This commit is contained in:
Michał Gdula 2022-08-08 19:59:40 +01:00
parent d8b20c9b34
commit bf449271e6
6 changed files with 34 additions and 18 deletions

View file

@ -8,6 +8,8 @@ $(document).ready(function() {
});
function flyoutShow(header, description, actionbox) {
// Hide overflow
document.querySelector("html").style.overflow = "hidden";
// Checking if actionbox is set
if (typeof actionbox === 'undefined') {
flyoutActionbox.style.display = "none";
@ -36,6 +38,8 @@ function flyoutShow(header, description, actionbox) {
};
function flyoutClose() {
// Show overflow
document.querySelector("html").style.overflow = "auto";
// Hide the flyout
flyoutRoot.style.transform = "translateX(-50%) scale(0.5)";
flyoutRoot.style.bottom = "-20rem";