Untitled
unknown
plain_text
10 months ago
1.8 kB
4
Indexable
<script>
function checkElementAndToggleClass() {
const element = document.querySelector('[id*=because_intelligence-top_bar]');
const body = document.body;
if (element) {
body.classList.add('because-top-bar');
} else {
body.classList.remove('because-top-bar');
}
}
// Run check every 500 milliseconds
setInterval(checkElementAndToggleClass, 500);
</script>
<style>
@media (min-width: 48rem) {
body.because-top-bar .md\:h-\[calc\(var\(--header-height-desktop\)\+var\(--promobar-height-desktop\)\)\]{
height: calc(var(--header-height-desktop) + var(--promobar-height-desktop) + 50px);
}
header.fixed.md\:h-\[var\(--header-height-desktop\)\]{
height: calc(var(--header-height-desktop) + 50px);
}
}
@media not all and (min-width: 48rem) {
body.because-top-bar .max-md\:h-\[calc\(var\(--header-height-mobile\)\+var\(--promobar-height-mobile\)\)\] {
height: calc(var(--header-height-mobile) + var(--promobar-height-mobile) + 45px) !important;
}
}
@media not all and (min-width: 48rem) {
body.because-top-bar .max-md\:pt-\[calc\(var\(--header-height-mobile\)\+var\(--promobar-height-mobile\)\)\] {
padding-top: calc(var(--header-height-mobile) + var(--promobar-height-mobile) + 45px ) !important;
}
}
@media not all and (min-width: 48rem) {
header.fixed.max-md\:h-\[var\(--header-height-mobile\)\] {
height: calc(var(--header-height-mobile) + 45px) !important;
}
}
@media (min-width: 48rem) {
}
@media (min-width: 48rem) {
body.because-top-bar .md\:pt-\[calc\(var\(--header-height-desktop\)\+var\(--promobar-height-desktop\)\)\] {
padding-top: calc(var(--header-height-desktop) + var(--promobar-height-desktop) + 50px) !important;
}
}
#because_intelligence-top_bar_afe26129ffa *{
font-size: 14px !important;
}
</style>Editor is loading...
Leave a Comment