Link to image visualizing my problem
I am trying to overwrite the inline style highlighted in the picture. I have tried using CSS !important as follows:
1)
group.buttonizer-group-0-0-1 [style]{
display:flex !important;
}
group.buttonizer-group-0-0-1 div[style]{ display:flex !important; }
group.buttonizer-group-0-0-1 { display:flex !important; }
Unfortunatly, none of the above options have worked. Is there any other CSS or JS code snippet I could try to change display:block to display:flex for this element?
EDIT
I tried following CSS that works in the sense that the button is then positioned correctly:
div[id^="gb-widget"], .buttonizer-group-0-0-1{
display:flex !important;
}
However, that CSS overwrites my JS:
jQuery(document).ready(function($){
// This is a little hack: Wait until the menu button exists and then hide it
var checkExist = setInterval(function() {
if ($(".buttonizer-group-0-0-1").length) {
$(".buttonizer-group-0-0-1").hide();
clearInterval(checkExist);
}
}, 10);
// Check the scroll status of the window and fade in the menu button accordingly
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 850) {
$(".buttonizer-group-0-0-1").fadeIn();
} else {
$(".buttonizer-group-0-0-1").fadeOut();
}
});
});
});